Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008311/0.0008311, allocations: 88.77 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 183.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.3 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 6.344 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1121, allocations: 50.42 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0346/0.1468, allocations: 34.98 MB / 386.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01875/0.1656, allocations: 8.012 MB / 394.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007317/0.1729, allocations: 167.6 kB / 394.5 MB, free: 348 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005643/0.1786, allocations: 1.788 MB / 396.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01479/0.1934, allocations: 5.493 MB / 401.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002662/0.1961, allocations: 0.6241 MB / 402.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006216/0.2024, allocations: 4.681 MB / 407.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004928/0.2073, allocations: 3.355 MB / 410.4 MB, free: 308 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002331/0.2097, allocations: 1.257 MB / 411.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.2125, allocations: 2.002 MB / 413.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005207/0.213, allocations: 140 kB / 413.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.2146, allocations: 0.7256 MB / 414.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001556/0.2162, allocations: 1.636 MB / 416.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009137/0.2171, allocations: 0.7804 MB / 417 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004662/0.2218, allocations: 4.863 MB / 421.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2218, allocations: 0 / 421.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.2218, allocations: 0 / 421.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001649/0.222, allocations: 0 / 421.8 MB, free: 4.863 MB / 350.1 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.007231/0.2292, allocations: 3.873 MB / 425.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.2293, allocations: 8.031 kB / 425.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00126/0.2306, allocations: 0.691 MB / 426.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2546/0.4852, allocations: 1.99 MB / 428.4 MB, free: 66.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006612/0.4918, allocations: 2.802 MB / 431.2 MB, free: 65.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/0.4921, allocations: 228.1 kB / 431.4 MB, free: 65.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006949/0.4928, allocations: 293 kB / 431.7 MB, free: 65.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/0.5103, allocations: 9.65 MB / 441.4 MB, free: 62.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.5105, allocations: 47.25 kB / 441.4 MB, free: 62.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003579/0.5108, allocations: 149.2 kB / 441.5 MB, free: 62.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002306/0.5132, allocations: 1.91 MB / 443.5 MB, free: 61.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01288/0.526, allocations: 7.609 MB / 451.1 MB, free: 54.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03439/0.5605, allocations: 37.74 MB / 488.8 MB, free: 16.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005598/0.5661, allocations: 2.877 MB / 491.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.5672, allocations: 0.8744 MB / 492.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004888/0.5721, allocations: 3.758 MB / 496.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.5722, allocations: 43.22 kB / 496.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 2.986e-06/0.5722, allocations: 0 / 496.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=152): time 0.01937/0.5916, allocations: 9.043 MB / 0.4936 GB, free: 15.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.5917, allocations: 141.5 kB / 0.4937 GB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005606/0.5973, allocations: 3.906 MB / 0.4975 GB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.5975, allocations: 45.7 kB / 0.4975 GB, free: 11.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0023/0.5998, allocations: 3.09 MB / 0.5006 GB, free: 7.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005961/0.6004, allocations: 0.6078 MB / 0.5012 GB, free: 7.367 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.6006, allocations: 112 kB / 0.5013 GB, free: 7.258 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003683/0.601, allocations: 0.5539 MB / 0.5018 GB, free: 6.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/0.6035, allocations: 1.538 MB / 0.5033 GB, free: 5.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005835/0.6094, allocations: 5.319 MB / 0.5085 GB, free: 13.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004582/0.614, allocations: 2.791 MB / 0.5112 GB, free: 11.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.441e-05/0.6141, allocations: 36 kB / 0.5113 GB, free: 11.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01257/0.6266, allocations: 6.579 MB / 0.5177 GB, free: 4.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.804e-05/0.6268, allocations: 64 kB / 0.5177 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001321/0.6269, allocations: 132 kB / 0.5179 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.6271, allocations: 200 kB / 0.5181 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/0.6308, allocations: 1.373 MB / 0.5194 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002468/0.6311, allocations: 259 kB / 0.5196 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003876/0.635, allocations: 283.6 kB / 0.5199 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005051/0.6355, allocations: 364 kB / 0.5203 GB, free: 1.887 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * 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.003608/0.6391, allocations: 1.978 MB / 0.5222 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006456/0.6398, allocations: 343.4 kB / 0.5225 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.6419, allocations: 1.238 MB / 0.5237 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.798e-05/0.6419, allocations: 19.28 kB / 0.5238 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.6419, allocations: 0 / 0.5238 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.642, allocations: 15.97 kB / 0.5238 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009256/0.6512, allocations: 5.744 MB / 0.5294 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.418e-05/0.6513, allocations: 20.47 kB / 0.5294 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009364/0.6522, allocations: 275.5 kB / 0.5297 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.606e-05/0.6522, allocations: 28 kB / 0.5297 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.394e-05/0.6523, allocations: 48 kB / 0.5297 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-05/0.6524, allocations: 35.86 kB / 0.5298 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.343e-05/0.6524, allocations: 33.19 kB / 0.5298 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.6565, allocations: 3.209 MB / 0.5329 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/0.6578, allocations: 412.6 kB / 0.5333 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000346/0.6582, allocations: 53.94 kB / 0.5334 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.6593, allocations: 55.97 kB / 0.5334 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.6596, allocations: 155.4 kB / 0.5336 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.6597, allocations: 67.98 kB / 0.5336 GB, free: 3.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004787/0.6645, allocations: 2.419 MB / 0.536 GB, free: 1.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6645, allocations: 0 / 0.536 GB, free: 1.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0061/0.6706, allocations: 0.8626 MB / 0.5368 GB, free: 340 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * 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.004623/0.6753, allocations: 3.87 MB / 0.5406 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006679/0.6819, allocations: 3.583 MB / 0.5441 GB, free: 8.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/0.682, allocations: 5.812 kB / 0.5441 GB, free: 8.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.683, allocations: 0.7222 MB / 0.5448 GB, free: 7.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/0.6866, allocations: 442.8 kB / 0.5453 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0611/0.7478, allocations: 30.39 MB / 0.5749 GB, free: 5.188 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005472/0.7533, allocations: 3.095 MB / 0.578 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005099/0.7584, allocations: 1.772 MB / 0.5797 GB, free: 288 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2264/0.9848, allocations: 1.79 MB / 0.5814 GB, free: 141.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.333e-06/0.9848, allocations: 0 / 0.5814 GB, free: 141.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/1.098, allocations: 64.9 MB / 0.6448 GB, free: 95.54 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/1.098, allocations: 211.9 kB / 0.645 GB, free: 95.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.755/4.853, allocations: 0 / 0.645 GB, free: 95.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat