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.0008976/0.0008975, allocations: 100.8 kB / 17.3 MB, free: 6.074 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.001006/0.001006, allocations: 178.5 kB / 18.21 MB, free: 5.406 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.275/1.275, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004618/0.000462, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07642/0.0769, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03355/0.1105, allocations: 37.62 MB / 366.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.1295, allocations: 8.428 MB / 375.1 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007442/0.137, allocations: 159.6 kB / 375.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.1384, allocations: 421.9 kB / 375.7 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004991/0.1434, allocations: 1.717 MB / 377.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.1452, allocations: 0.6514 MB / 378 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1974/0.3426, allocations: 5.913 MB / 384 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005446/0.3481, allocations: 3.71 MB / 387.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.3502, allocations: 1.166 MB / 388.8 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.3529, allocations: 2.03 MB / 390.9 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004324/0.3533, allocations: 141 kB / 391 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.3549, allocations: 0.8355 MB / 391.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.3562, allocations: 1.682 MB / 393.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.3577, allocations: 1.947 MB / 395.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004521/0.3623, allocations: 5.992 MB / 401.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3623, allocations: 5.312 kB / 401.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3623, allocations: 4 kB / 401.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.049e-05/0.3624, allocations: 2.344 kB / 401.5 MB, free: 5.492 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.005547/0.3679, allocations: 3.829 MB / 405.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.368, allocations: 12.34 kB / 405.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006839/0.3687, allocations: 0.6969 MB / 406 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006779/0.3755, allocations: 1.992 MB / 408 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004705/0.3802, allocations: 3.155 MB / 411.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.3803, allocations: 226.5 kB / 411.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004387/0.3808, allocations: 298.9 kB / 411.7 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.3955, allocations: 9.657 MB / 421.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.3957, allocations: 45.94 kB / 421.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008201/0.3966, allocations: 149.1 kB / 421.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003007/0.3996, allocations: 1.91 MB / 423.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0168/0.4164, allocations: 7.665 MB / 431.1 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04781/0.4643, allocations: 37.78 MB / 468.9 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007107/0.4714, allocations: 2.892 MB / 471.8 MB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.473, allocations: 0.8733 MB / 472.6 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007149/0.4801, allocations: 3.762 MB / 476.4 MB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.4802, allocations: 50.12 kB / 476.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.777e-06/0.4802, allocations: 0 / 476.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02591/0.5062, allocations: 9.156 MB / 485.6 MB, free: 8.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/0.5063, allocations: 143.9 kB / 485.7 MB, free: 8.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007656/0.514, allocations: 3.97 MB / 489.7 MB, free: 4.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/0.5142, allocations: 45.7 kB / 489.8 MB, free: 4.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002558/0.5168, allocations: 3.086 MB / 492.8 MB, free: 1.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008251/0.5177, allocations: 0.6102 MB / 493.5 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009435/0.5186, allocations: 0.495 MB / 493.9 MB, free: 128 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.5187, allocations: 305.1 kB / 494.2 MB, free: 15.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/0.5217, allocations: 1.565 MB / 495.8 MB, free: 14.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005901/0.5276, allocations: 5.337 MB / 0.4894 GB, free: 7.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009837/0.5375, allocations: 7.518 MB / 0.4967 GB, free: 14.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001531/0.5377, allocations: 39.98 kB / 0.4968 GB, free: 14.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01358/0.5513, allocations: 6.612 MB / 0.5032 GB, free: 8.148 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.5515, allocations: 64 kB / 0.5033 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002676/0.5518, allocations: 132 kB / 0.5034 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002355/0.552, allocations: 176 kB / 0.5036 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004387/0.5564, allocations: 1.377 MB / 0.5049 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002607/0.5567, allocations: 263 kB / 0.5052 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004506/0.5612, allocations: 285.7 kB / 0.5055 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008657/0.5621, allocations: 364 kB / 0.5058 GB, free: 5.516 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.004548/0.5666, allocations: 1.978 MB / 0.5077 GB, free: 3.527 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008457/0.5675, allocations: 339.7 kB / 0.5081 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/0.5701, allocations: 1.262 MB / 0.5093 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.127e-05/0.5702, allocations: 18.34 kB / 0.5093 GB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.5702, allocations: 4 kB / 0.5093 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.5702, allocations: 8.453 kB / 0.5093 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.5814, allocations: 5.751 MB / 0.5149 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.678e-05/0.5815, allocations: 20 kB / 0.515 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009893/0.5825, allocations: 283.5 kB / 0.5152 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-05/0.5825, allocations: 24 kB / 0.5153 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.5827, allocations: 47.94 kB / 0.5153 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.524e-05/0.5827, allocations: 39.86 kB / 0.5153 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.217e-05/0.5827, allocations: 27.88 kB / 0.5154 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004193/0.5869, allocations: 3.229 MB / 0.5185 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/0.5883, allocations: 0.5161 MB / 0.519 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008568/0.5892, allocations: 51.98 kB / 0.5191 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/0.5909, allocations: 68.81 kB / 0.5191 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.5911, allocations: 147.4 kB / 0.5193 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.5912, allocations: 64.94 kB / 0.5193 GB, free: 7.047 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005272/0.5965, allocations: 2.463 MB / 0.5217 GB, free: 4.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5965, allocations: 0 / 0.5217 GB, free: 4.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005728/0.6023, allocations: 0.8644 MB / 0.5226 GB, free: 3.707 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.004786/0.6071, allocations: 3.898 MB / 0.5264 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.6136, allocations: 3.601 MB / 0.5299 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/0.6137, allocations: 4 kB / 0.5299 GB, free: 11.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.6147, allocations: 0.7392 MB / 0.5306 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0122/0.6269, allocations: 441.1 kB / 0.5311 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2158/0.8428, allocations: 47.67 MB / 0.5776 GB, free: 147.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002441/0.8453, allocations: 3.11 MB / 0.5807 GB, free: 146.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003522/0.8488, allocations: 1.768 MB / 0.5824 GB, free: 146.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.8502, allocations: 1.797 MB / 0.5841 GB, free: 144.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8502, allocations: 3.875 kB / 0.5841 GB, free: 144.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.103/1.953, allocations: 58.64 MB / 0.6414 GB, free: 88.52 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/1.954, allocations: 222.1 kB / 0.6416 GB, free: 88.26 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.082/6.036, allocations: 0 / 0.6416 GB, free: 88.26 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