Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00147/0.00147, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000936/0.0009361, allocations: 86.36 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.779e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.09977, allocations: 47.6 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3972/0.4971, allocations: 94.42 MB / 457.6 MB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.4974, allocations: 91.19 kB / 457.7 MB, free: 1.133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2139/0.7113, allocations: 83.34 MB / 0.5284 GB, free: 3.066 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.7114, allocations: 0 / 0.5284 GB, free: 3.066 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001568/0.7115, allocations: 76 kB / 0.5284 GB, free: 2.992 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.2838/0.9953, allocations: 3.833 MB / 0.5322 GB, free: 92.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.9954, allocations: 8.781 kB / 0.5322 GB, free: 92.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/1.009, allocations: 2.442 MB / 0.5346 GB, free: 91.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/1.025, allocations: 5.055 MB / 0.5395 GB, free: 91.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003548/1.025, allocations: 133.2 kB / 0.5396 GB, free: 91.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00228/1.027, allocations: 253.8 kB / 0.5399 GB, free: 91.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01456/1.042, allocations: 5.819 MB / 0.5456 GB, free: 91.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01848/1.06, allocations: 8.991 MB / 0.5543 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001663/1.061, allocations: 59.28 kB / 0.5544 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005358/1.061, allocations: 35 kB / 0.5544 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001395/1.063, allocations: 1.007 MB / 0.5554 GB, free: 88.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04421/1.107, allocations: 44.91 MB / 0.5993 GB, free: 56.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/1.109, allocations: 1.873 MB / 0.6011 GB, free: 55.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007979/1.11, allocations: 0.7601 MB / 0.6018 GB, free: 55.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005899/1.11, allocations: 0.7817 MB / 0.6026 GB, free: 54.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/1.11, allocations: 46.72 kB / 0.6026 GB, free: 54.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 4.018e-06/1.11, allocations: 0 / 0.6026 GB, free: 54.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=149): time 0.01413/1.124, allocations: 7.057 MB / 0.6095 GB, free: 51.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/1.125, allocations: 149.2 kB / 0.6097 GB, free: 51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/1.129, allocations: 3.002 MB / 0.6126 GB, free: 49.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/1.129, allocations: 25.7 kB / 0.6126 GB, free: 49.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/1.13, allocations: 3.155 MB / 0.6157 GB, free: 47.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/1.131, allocations: 0.5778 MB / 0.6163 GB, free: 46.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/1.131, allocations: 3.5 kB / 0.6163 GB, free: 46.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002818/1.132, allocations: 0.5558 MB / 0.6168 GB, free: 46.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/1.133, allocations: 1.412 MB / 0.6182 GB, free: 46.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003315/1.137, allocations: 5.264 MB / 0.6233 GB, free: 40.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003413/1.14, allocations: 2.715 MB / 0.626 GB, free: 39.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.637e-05/1.14, allocations: 41.12 kB / 0.626 GB, free: 39.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.009223/1.149, allocations: 5.768 MB / 0.6317 GB, free: 35.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.831e-05/1.149, allocations: 64 kB / 0.6317 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/1.15, allocations: 140 kB / 0.6319 GB, free: 35.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001717/1.15, allocations: 204 kB / 0.6321 GB, free: 35.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004078/1.154, allocations: 1.448 MB / 0.6335 GB, free: 34.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001376/1.154, allocations: 275.3 kB / 0.6337 GB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/1.158, allocations: 261.6 kB / 0.634 GB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007758/1.159, allocations: 375.9 kB / 0.6343 GB, free: 33.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008571/1.16, allocations: 451.5 kB / 0.6348 GB, free: 32.92 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002787/1.163, allocations: 1.502 MB / 0.6362 GB, free: 31.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007028/1.163, allocations: 308 kB / 0.6365 GB, free: 31.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/1.165, allocations: 1.045 MB / 0.6375 GB, free: 30.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.249e-05/1.165, allocations: 17.17 kB / 0.6376 GB, free: 30.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.165, allocations: 0 / 0.6376 GB, free: 30.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/1.165, allocations: 11.78 kB / 0.6376 GB, free: 30.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00869/1.174, allocations: 4.859 MB / 0.6423 GB, free: 26.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/1.174, allocations: 16 kB / 0.6423 GB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009879/1.175, allocations: 273.1 kB / 0.6426 GB, free: 25.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.658e-05/1.175, allocations: 24 kB / 0.6426 GB, free: 25.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/1.175, allocations: 24 kB / 0.6426 GB, free: 25.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.26e-05/1.175, allocations: 35.81 kB / 0.6427 GB, free: 25.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.414e-05/1.175, allocations: 23.94 kB / 0.6427 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003401/1.179, allocations: 4.828 MB / 0.6474 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.18, allocations: 497.1 kB / 0.6479 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/1.18, allocations: 27.78 kB / 0.6479 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/1.181, allocations: 64.2 kB / 0.648 GB, free: 19.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.181, allocations: 137.5 kB / 0.6481 GB, free: 19.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/1.182, allocations: 72.19 kB / 0.6482 GB, free: 19.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002808/1.184, allocations: 1.98 MB / 0.6501 GB, free: 18.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.184, allocations: 0 / 0.6501 GB, free: 18.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005031/1.189, allocations: 0.7481 MB / 0.6508 GB, free: 17.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004235/1.194, allocations: 9.644 MB / 0.6603 GB, free: 7.359 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004916/1.199, allocations: 3.271 MB / 0.6635 GB, free: 4.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/1.199, allocations: 4 kB / 0.6635 GB, free: 4.387 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007368/1.199, allocations: 0.6654 MB / 0.6641 GB, free: 3.777 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002224/1.202, allocations: 350 kB / 0.6644 GB, free: 3.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/1.229, allocations: 8.551 MB / 0.6728 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003636/1.233, allocations: 3.174 MB / 0.6759 GB, free: 10.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004921/1.238, allocations: 1.845 MB / 0.6777 GB, free: 9.445 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002616/1.24, allocations: 1.78 MB / 0.6794 GB, free: 7.664 MB / 426.7 MB Notification: Performance of SimCode: time 1.292e-06/1.24, allocations: 0 / 0.6794 GB, free: 7.664 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3867/1.627, allocations: 60.51 MB / 0.7385 GB, free: 85.34 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/1.627, allocations: 152.8 kB / 0.7387 GB, free: 85.15 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.697/6.324, allocations: 4 kB / 0.7387 GB, free: 85.15 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat