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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009825/0.0009824, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.0009704/0.0009704, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 47.94 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 46.62 MB / 326.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03666/0.1415, allocations: 38.69 MB / 365.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0231/0.1647, allocations: 8.498 MB / 373.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009634/0.1744, allocations: 167.6 kB / 374.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005149/0.1796, allocations: 2.201 MB / 376.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005531/0.1852, allocations: 1.721 MB / 378 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.1871, allocations: 0.6514 MB / 378.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2305/0.4176, allocations: 5.905 MB / 384.5 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005259/0.4229, allocations: 2.876 MB / 387.4 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003833/0.4268, allocations: 1.332 MB / 388.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004909/0.4317, allocations: 2.247 MB / 391 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009514/0.4327, allocations: 214.1 kB / 391.2 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.4351, allocations: 0.9055 MB / 392.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00182/0.4369, allocations: 1.778 MB / 393.9 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.4391, allocations: 2.046 MB / 395.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005585/0.4447, allocations: 6.149 MB / 402.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4447, allocations: 0 / 402.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4447, allocations: 0 / 402.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000154/0.4449, allocations: 0 / 402.1 MB, free: 6.406 MB / 318.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.008396/0.4533, allocations: 4.663 MB / 406.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.4534, allocations: 7.625 kB / 406.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007837/0.4542, allocations: 0.6982 MB / 407.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006421/0.4606, allocations: 1.94 MB / 409.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004656/0.4653, allocations: 3.146 MB / 412.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.4654, allocations: 235.7 kB / 412.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004996/0.4659, allocations: 292.7 kB / 413.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01501/0.4809, allocations: 9.634 MB / 422.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/0.4811, allocations: 52.09 kB / 422.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005348/0.4817, allocations: 145.7 kB / 422.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002831/0.4845, allocations: 1.922 MB / 424.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/0.4997, allocations: 7.632 MB / 432.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05134/0.5511, allocations: 37.77 MB / 470.2 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006579/0.5577, allocations: 2.895 MB / 473.1 MB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.5591, allocations: 0.8676 MB / 474 MB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006491/0.5656, allocations: 3.758 MB / 477.7 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.475e-05/0.5657, allocations: 49.84 kB / 477.8 MB, free: 15.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 4.638e-06/0.5657, allocations: 8 kB / 477.8 MB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=152): time 0.02365/0.5894, allocations: 9.153 MB / 486.9 MB, free: 6.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.384e-05/0.5895, allocations: 141.5 kB / 487.1 MB, free: 5.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005669/0.5952, allocations: 3.966 MB / 491 MB, free: 1.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001403/0.5953, allocations: 45.7 kB / 491.1 MB, free: 1.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/0.5973, allocations: 3.095 MB / 494.2 MB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005287/0.5978, allocations: 0.6054 MB / 494.8 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/0.5992, allocations: 1.155 MB / 495.9 MB, free: 12.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.5993, allocations: 305.1 kB / 496.2 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/0.6016, allocations: 1.565 MB / 497.8 MB, free: 11.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004591/0.6062, allocations: 5.333 MB / 0.4913 GB, free: 3.906 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007601/0.6138, allocations: 7.522 MB / 0.4987 GB, free: 11.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-05/0.6139, allocations: 40 kB / 0.4987 GB, free: 11.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009552/0.6234, allocations: 6.62 MB / 0.5052 GB, free: 4.859 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.367e-05/0.6235, allocations: 63.98 kB / 0.5052 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/0.6237, allocations: 136 kB / 0.5054 GB, free: 4.664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001501/0.6239, allocations: 176 kB / 0.5055 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/0.6275, allocations: 1.369 MB / 0.5069 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000232/0.6277, allocations: 263 kB / 0.5071 GB, free: 2.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/0.6314, allocations: 287.8 kB / 0.5074 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004967/0.6319, allocations: 364 kB / 0.5078 GB, free: 2.227 MB / 430.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003127/0.635, allocations: 1.978 MB / 0.5097 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007303/0.6358, allocations: 340.3 kB / 0.51 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.6381, allocations: 1.25 MB / 0.5112 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.6382, allocations: 19.59 kB / 0.5112 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.6382, allocations: 0 / 0.5112 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.6382, allocations: 7.969 kB / 0.5113 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009056/0.6473, allocations: 5.756 MB / 0.5169 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/0.6473, allocations: 23.94 kB / 0.5169 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009062/0.6482, allocations: 280.4 kB / 0.5172 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.138e-05/0.6483, allocations: 28 kB / 0.5172 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.041e-05/0.6483, allocations: 55.91 kB / 0.5172 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.597e-05/0.6484, allocations: 35.86 kB / 0.5173 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.791e-05/0.6484, allocations: 28.34 kB / 0.5173 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003679/0.6521, allocations: 3.214 MB / 0.5204 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6532, allocations: 0.5199 MB / 0.521 GB, free: 4.094 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003218/0.6536, allocations: 51.98 kB / 0.521 GB, free: 4.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6546, allocations: 63.95 kB / 0.5211 GB, free: 3.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.6548, allocations: 151.3 kB / 0.5212 GB, free: 3.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.521e-05/0.6549, allocations: 64 kB / 0.5213 GB, free: 3.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003459/0.6584, allocations: 2.467 MB / 0.5237 GB, free: 1.289 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.6584, allocations: 0 / 0.5237 GB, free: 1.289 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004822/0.6632, allocations: 0.8663 MB / 0.5245 GB, free: 436 kB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004682/0.6679, allocations: 3.893 MB / 0.5283 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005865/0.6738, allocations: 3.604 MB / 0.5318 GB, free: 8.691 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/0.6738, allocations: 4 kB / 0.5319 GB, free: 8.688 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008917/0.6747, allocations: 0.7263 MB / 0.5326 GB, free: 7.965 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.6773, allocations: 443.6 kB / 0.533 GB, free: 7.527 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2422/0.9195, allocations: 47.58 MB / 0.5794 GB, free: 146.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002945/0.9225, allocations: 3.111 MB / 0.5825 GB, free: 145.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004083/0.9266, allocations: 1.766 MB / 0.5842 GB, free: 145.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00243/0.929, allocations: 1.801 MB / 0.586 GB, free: 144 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.929, allocations: 0 / 0.586 GB, free: 144 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08755/1.017, allocations: 59.07 MB / 0.6437 GB, free: 85.53 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/1.017, allocations: 218.9 kB / 0.6439 GB, free: 85.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.981/4.997, allocations: 0 / 0.6439 GB, free: 85.28 MB / 462.1 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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches