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.001415/0.001416, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001491/0.001491, allocations: 191 kB / 18.66 MB, free: 4.441 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.324/1.324, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001209/0.001209, allocations: 55.94 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.07967, allocations: 46.61 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1889/0.2686, allocations: 10.75 MB / 385.4 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008031/0.2767, allocations: 3.874 MB / 389.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002302/0.2791, allocations: 67.09 kB / 389.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004237/0.2834, allocations: 2.235 MB / 391.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.2886, allocations: 1.835 MB / 393.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00186/0.2905, allocations: 0.7152 MB / 394.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006621/0.2971, allocations: 4.263 MB / 398.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003569/0.3007, allocations: 2.918 MB / 401.3 MB, free: 176 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0029/0.3036, allocations: 1.48 MB / 402.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003322/0.307, allocations: 2.096 MB / 404.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009345/0.3079, allocations: 296.1 kB / 405.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.3102, allocations: 0.9399 MB / 406.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002067/0.3123, allocations: 1.836 MB / 407.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002763/0.3151, allocations: 2.117 MB / 410.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0074/0.3225, allocations: 6.447 MB / 416.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3225, allocations: 0 / 416.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3225, allocations: 0 / 416.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002001/0.3228, allocations: 0 / 416.5 MB, free: 5.898 MB / 334.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.009464/0.3322, allocations: 4.665 MB / 421.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.3323, allocations: 16.03 kB / 421.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00106/0.3334, allocations: 0.6873 MB / 421.9 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007212/0.3406, allocations: 1.945 MB / 423.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006362/0.347, allocations: 3.188 MB / 427 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.3472, allocations: 225.6 kB / 427.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000678/0.3479, allocations: 303.7 kB / 427.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.3635, allocations: 9.624 MB / 437.2 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.3637, allocations: 51.53 kB / 437.2 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008656/0.3646, allocations: 151.8 kB / 437.3 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00282/0.3674, allocations: 1.919 MB / 439.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/0.3823, allocations: 7.629 MB / 446.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/0.4245, allocations: 37.61 MB / 484.5 MB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006371/0.4309, allocations: 2.897 MB / 487.4 MB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.4322, allocations: 0.873 MB / 488.3 MB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006484/0.4387, allocations: 3.759 MB / 492 MB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.4388, allocations: 47.22 kB / 492.1 MB, free: 7.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.137e-06/0.4388, allocations: 0 / 492.1 MB, free: 7.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02169/0.4605, allocations: 9.143 MB / 0.4895 GB, free: 14.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.4606, allocations: 149.6 kB / 0.4896 GB, free: 14.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005982/0.4666, allocations: 3.966 MB / 0.4935 GB, free: 10.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.4668, allocations: 45.7 kB / 0.4935 GB, free: 10.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.4687, allocations: 3.093 MB / 0.4966 GB, free: 7.211 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005738/0.4693, allocations: 0.6096 MB / 0.4972 GB, free: 6.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001607/0.4709, allocations: 1.151 MB / 0.4983 GB, free: 5.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.471, allocations: 317 kB / 0.4986 GB, free: 5.117 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.4736, allocations: 1.557 MB / 0.5001 GB, free: 3.555 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004698/0.4783, allocations: 5.334 MB / 0.5053 GB, free: 12.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007552/0.4859, allocations: 7.522 MB / 0.5127 GB, free: 2.918 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.486, allocations: 40 kB / 0.5127 GB, free: 2.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01081/0.4969, allocations: 6.609 MB / 0.5192 GB, free: 12.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.497, allocations: 64 kB / 0.5192 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001925/0.4972, allocations: 132.9 kB / 0.5193 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.4974, allocations: 180 kB / 0.5195 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003856/0.5013, allocations: 1.376 MB / 0.5209 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002326/0.5015, allocations: 259.7 kB / 0.5211 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/0.5052, allocations: 283.6 kB / 0.5214 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006206/0.5058, allocations: 360 kB / 0.5217 GB, free: 9.633 MB / 462.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.00317/0.509, allocations: 1.994 MB / 0.5237 GB, free: 7.625 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006376/0.5097, allocations: 339.6 kB / 0.524 GB, free: 7.289 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002253/0.5119, allocations: 1.246 MB / 0.5252 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.512, allocations: 16 kB / 0.5252 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.512, allocations: 8.062 kB / 0.5252 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/0.512, allocations: 11.97 kB / 0.5252 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.5229, allocations: 5.752 MB / 0.5309 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.426e-05/0.5229, allocations: 16 kB / 0.5309 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.524, allocations: 280.4 kB / 0.5311 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.978e-05/0.524, allocations: 31.94 kB / 0.5312 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.5241, allocations: 52 kB / 0.5312 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.929e-05/0.5242, allocations: 39.84 kB / 0.5313 GB, free: 15.49 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-05/0.5242, allocations: 27.88 kB / 0.5313 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/0.5281, allocations: 3.22 MB / 0.5344 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.5296, allocations: 0.5121 MB / 0.5349 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005723/0.5302, allocations: 47.98 kB / 0.535 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.5316, allocations: 59.97 kB / 0.535 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.5317, allocations: 147.4 kB / 0.5352 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.5319, allocations: 68 kB / 0.5352 GB, free: 11.13 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004448/0.5363, allocations: 2.463 MB / 0.5376 GB, free: 8.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5363, allocations: 0 / 0.5376 GB, free: 8.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00465/0.541, allocations: 0.8672 MB / 0.5385 GB, free: 7.789 MB / 478.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.004348/0.5454, allocations: 3.905 MB / 0.5423 GB, free: 3.609 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1653/0.7107, allocations: 3.665 MB / 0.5459 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.91e-05/0.7107, allocations: 2.969 kB / 0.5459 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.7119, allocations: 0.718 MB / 0.5466 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.7145, allocations: 456.5 kB / 0.547 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04691/0.7615, allocations: 40.39 MB / 0.5865 GB, free: 125.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/0.764, allocations: 3.106 MB / 0.5895 GB, free: 124.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003179/0.7672, allocations: 1.763 MB / 0.5912 GB, free: 123.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001514/0.7688, allocations: 1.8 MB / 0.593 GB, free: 122.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/0.7688, allocations: 0 / 0.593 GB, free: 122.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8522/1.621, allocations: 57.14 MB / 0.6488 GB, free: 64.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.77/21.39, allocations: 3.438 kB / 0.6488 GB, free: 64.87 MB / 478.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches