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.001078/0.001078, allocations: 114 kB / 17.28 MB, free: 6.199 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.001777/0.001778, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.325/1.325, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001378/0.001378, allocations: 56.12 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.08988, allocations: 46.63 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03435/0.1243, allocations: 38.7 MB / 365.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.1424, allocations: 8.389 MB / 374 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00684/0.1493, allocations: 167.6 kB / 374.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004535/0.1539, allocations: 2.142 MB / 376.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004542/0.1584, allocations: 1.705 MB / 378 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1599, allocations: 0.6671 MB / 378.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1826/0.3425, allocations: 4.288 MB / 382.9 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003943/0.3465, allocations: 3.083 MB / 386 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002919/0.3494, allocations: 1.516 MB / 387.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002881/0.3523, allocations: 2.318 MB / 389.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.3531, allocations: 292.9 kB / 390.1 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.3548, allocations: 0.9503 MB / 391.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.3564, allocations: 1.85 MB / 392.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002065/0.3584, allocations: 2.139 MB / 395.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00604/0.3645, allocations: 6.258 MB / 401.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3645, allocations: 0 / 401.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3645, allocations: 0 / 401.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001692/0.3647, allocations: 0 / 401.3 MB, free: 6.992 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.008292/0.373, allocations: 4.661 MB / 406 MB, free: 4.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3731, allocations: 13.41 kB / 406 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006711/0.3737, allocations: 0.6894 MB / 406.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006486/0.3802, allocations: 1.937 MB / 408.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004505/0.3847, allocations: 3.144 MB / 411.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.3849, allocations: 230.7 kB / 412 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/0.3854, allocations: 298.9 kB / 412.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.4006, allocations: 9.636 MB / 421.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.4008, allocations: 49.66 kB / 422 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007305/0.4016, allocations: 143.4 kB / 422.1 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/0.4045, allocations: 1.923 MB / 424 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01569/0.4202, allocations: 7.632 MB / 431.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04737/0.4676, allocations: 37.76 MB / 469.4 MB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006862/0.4745, allocations: 2.898 MB / 472.3 MB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.4759, allocations: 0.8694 MB / 473.2 MB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006506/0.4824, allocations: 3.755 MB / 477 MB, free: 180 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/0.4825, allocations: 53.56 kB / 477 MB, free: 120 kB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.67e-06/0.4825, allocations: 0 / 477 MB, free: 120 kB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.0235/0.506, allocations: 9.152 MB / 486.2 MB, free: 6.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.5061, allocations: 141.5 kB / 486.3 MB, free: 6.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004894/0.511, allocations: 3.966 MB / 490.3 MB, free: 2.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.5112, allocations: 49.64 kB / 490.3 MB, free: 2.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/0.5131, allocations: 3.085 MB / 493.4 MB, free: 15.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005349/0.5136, allocations: 0.615 MB / 494 MB, free: 14.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.5148, allocations: 1.16 MB / 495.2 MB, free: 13.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/0.5149, allocations: 309 kB / 495.5 MB, free: 13.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0022/0.5171, allocations: 1.561 MB / 497 MB, free: 11.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004229/0.5214, allocations: 5.335 MB / 0.4906 GB, free: 4.766 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007104/0.5285, allocations: 7.524 MB / 0.498 GB, free: 11.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-05/0.5286, allocations: 40 kB / 0.498 GB, free: 11.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009683/0.5383, allocations: 6.612 MB / 0.5044 GB, free: 5.766 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.076e-05/0.5384, allocations: 63.94 kB / 0.5045 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.5385, allocations: 136 kB / 0.5046 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.5386, allocations: 176 kB / 0.5048 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/0.5422, allocations: 1.373 MB / 0.5061 GB, free: 4.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001739/0.5424, allocations: 263 kB / 0.5064 GB, free: 3.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.5456, allocations: 279.6 kB / 0.5067 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003603/0.546, allocations: 368 kB / 0.507 GB, free: 3.133 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.002485/0.5485, allocations: 1.983 MB / 0.509 GB, free: 1.141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004212/0.5489, allocations: 343.5 kB / 0.5093 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.5507, allocations: 1.247 MB / 0.5105 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.5507, allocations: 16 kB / 0.5105 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5507, allocations: 0 / 0.5105 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.5508, allocations: 11.97 kB / 0.5105 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007405/0.5582, allocations: 5.757 MB / 0.5161 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/0.5582, allocations: 16 kB / 0.5162 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009193/0.5591, allocations: 287.6 kB / 0.5164 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.416e-05/0.5592, allocations: 24 kB / 0.5165 GB, free: 9.141 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.164e-05/0.5593, allocations: 48 kB / 0.5165 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.492e-05/0.5593, allocations: 35.86 kB / 0.5165 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-05/0.5593, allocations: 27.88 kB / 0.5166 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.5627, allocations: 3.222 MB / 0.5197 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008474/0.5636, allocations: 0.5159 MB / 0.5202 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003048/0.5639, allocations: 51.98 kB / 0.5203 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.565, allocations: 59.97 kB / 0.5203 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5651, allocations: 151.4 kB / 0.5205 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-05/0.5652, allocations: 68 kB / 0.5205 GB, free: 4.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003341/0.5686, allocations: 2.463 MB / 0.5229 GB, free: 2.207 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5686, allocations: 0 / 0.5229 GB, free: 2.207 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004262/0.5728, allocations: 0.8649 MB / 0.5238 GB, free: 1.344 MB / 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.003838/0.5767, allocations: 3.895 MB / 0.5276 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005803/0.5825, allocations: 3.788 MB / 0.5313 GB, free: 9.426 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/0.5825, allocations: 0 / 0.5313 GB, free: 9.426 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009851/0.5835, allocations: 0.7315 MB / 0.532 GB, free: 8.699 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003593/0.5871, allocations: 456.4 kB / 0.5324 GB, free: 8.254 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2322/0.8194, allocations: 47.59 MB / 0.5789 GB, free: 147.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004508/0.8239, allocations: 3.105 MB / 0.5819 GB, free: 146.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003939/0.8279, allocations: 1.767 MB / 0.5837 GB, free: 146.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/0.8297, allocations: 1.795 MB / 0.5854 GB, free: 144.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8298, allocations: 4 kB / 0.5854 GB, free: 144.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08084/0.9106, allocations: 60.02 MB / 0.644 GB, free: 85.87 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/0.9108, allocations: 219 kB / 0.6442 GB, free: 85.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.982/4.893, allocations: 0 / 0.6442 GB, free: 85.62 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