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.001219/0.001219, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001279/0.001279, allocations: 190.9 kB / 18.67 MB, free: 4.402 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.381/1.381, 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.001792/0.001792, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.09012, allocations: 46.61 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1799/0.27, allocations: 10.74 MB / 385.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008082/0.2781, allocations: 3.872 MB / 389.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002171/0.2804, allocations: 62.97 kB / 389.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004702/0.2852, allocations: 2.24 MB / 391.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005457/0.2906, allocations: 1.838 MB / 393.4 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.2924, allocations: 0.7143 MB / 394.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006632/0.299, allocations: 4.264 MB / 398.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003434/0.3025, allocations: 2.916 MB / 401.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003019/0.3056, allocations: 1.488 MB / 402.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004169/0.3097, allocations: 2.094 MB / 404.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.3109, allocations: 291.9 kB / 405.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002427/0.3133, allocations: 0.937 MB / 406.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002381/0.3157, allocations: 1.816 MB / 407.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003187/0.3189, allocations: 2.112 MB / 410 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009635/0.3286, allocations: 6.488 MB / 416.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3286, allocations: 0 / 416.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.549e-06/0.3286, allocations: 0 / 416.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002289/0.3289, allocations: 3.938 kB / 416.5 MB, free: 5.754 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.01002/0.3389, allocations: 4.775 MB / 421.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.339, allocations: 11.97 kB / 421.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001261/0.3402, allocations: 0.699 MB / 422 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007661/0.3479, allocations: 1.967 MB / 424 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005846/0.3538, allocations: 3.201 MB / 427.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.354, allocations: 226.3 kB / 427.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006757/0.3547, allocations: 295.8 kB / 427.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/0.3713, allocations: 9.635 MB / 437.3 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.3715, allocations: 55.61 kB / 437.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004058/0.3719, allocations: 143.8 kB / 437.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003022/0.3749, allocations: 1.919 MB / 439.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01568/0.3906, allocations: 7.637 MB / 447.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04705/0.4377, allocations: 37.69 MB / 484.8 MB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006936/0.4447, allocations: 2.887 MB / 487.7 MB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.4463, allocations: 0.8733 MB / 488.5 MB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006681/0.453, allocations: 3.78 MB / 492.3 MB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/0.4531, allocations: 47.2 kB / 492.4 MB, free: 7.461 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 5.47e-06/0.4531, allocations: 0 / 492.4 MB, free: 7.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02277/0.4758, allocations: 9.373 MB / 0.49 GB, free: 13.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.476, allocations: 141.5 kB / 0.4901 GB, free: 13.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005925/0.4819, allocations: 3.978 MB / 0.494 GB, free: 9.809 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/0.4822, allocations: 45.7 kB / 0.494 GB, free: 9.758 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002519/0.4847, allocations: 3.221 MB / 0.4972 GB, free: 6.508 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007512/0.4854, allocations: 0.6281 MB / 0.4978 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001557/0.487, allocations: 1.163 MB / 0.4989 GB, free: 4.699 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4872, allocations: 305.1 kB / 0.4992 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/0.4898, allocations: 1.569 MB / 0.5008 GB, free: 2.824 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005816/0.4956, allocations: 5.33 MB / 0.506 GB, free: 11.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009201/0.5048, allocations: 7.53 MB / 0.5133 GB, free: 2.184 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.772e-05/0.505, allocations: 36 kB / 0.5133 GB, free: 2.148 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01229/0.5173, allocations: 6.634 MB / 0.5198 GB, free: 11.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.038e-05/0.5174, allocations: 60 kB / 0.5199 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/0.5175, allocations: 136.1 kB / 0.52 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.5177, allocations: 176 kB / 0.5202 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004103/0.5218, allocations: 1.373 MB / 0.5215 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002547/0.5221, allocations: 259 kB / 0.5218 GB, free: 9.516 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003828/0.526, allocations: 291.6 kB / 0.522 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006508/0.5266, allocations: 368 kB / 0.5224 GB, free: 8.871 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.003366/0.53, allocations: 1.978 MB / 0.5243 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00064/0.5306, allocations: 353.6 kB / 0.5247 GB, free: 6.531 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002279/0.5329, allocations: 1.254 MB / 0.5259 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.744e-05/0.533, allocations: 16 kB / 0.5259 GB, free: 5.242 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.533, allocations: 0 / 0.5259 GB, free: 5.242 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.533, allocations: 3.984 kB / 0.5259 GB, free: 5.238 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009772/0.5428, allocations: 5.765 MB / 0.5315 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.451e-05/0.5428, allocations: 16 kB / 0.5316 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.5438, allocations: 283.5 kB / 0.5318 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.789e-05/0.5439, allocations: 24 kB / 0.5318 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.869e-05/0.544, allocations: 52.59 kB / 0.5319 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.414e-05/0.544, allocations: 47.91 kB / 0.5319 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.85e-05/0.544, allocations: 27.88 kB / 0.532 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004082/0.5481, allocations: 3.237 MB / 0.5351 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5493, allocations: 0.522 MB / 0.5356 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003931/0.5497, allocations: 51.98 kB / 0.5357 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.5508, allocations: 55.97 kB / 0.5357 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.551, allocations: 151.4 kB / 0.5359 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5511, allocations: 72.36 kB / 0.536 GB, free: 10.33 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004079/0.5552, allocations: 2.467 MB / 0.5384 GB, free: 7.852 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5552, allocations: 0 / 0.5384 GB, free: 7.852 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004925/0.5601, allocations: 0.8632 MB / 0.5392 GB, free: 6.988 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.004675/0.5648, allocations: 3.93 MB / 0.543 GB, free: 2.785 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1771/0.7419, allocations: 3.656 MB / 0.5466 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.06e-05/0.742, allocations: 5.219 kB / 0.5466 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.7434, allocations: 0.7273 MB / 0.5473 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003249/0.7467, allocations: 448.5 kB / 0.5478 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05658/0.8033, allocations: 40.56 MB / 0.5874 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002833/0.8062, allocations: 3.102 MB / 0.5904 GB, free: 121.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003102/0.8093, allocations: 1.765 MB / 0.5921 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.8109, allocations: 1.796 MB / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.8109, allocations: 0 / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3449/1.156, allocations: 56.37 MB / 0.6489 GB, free: 61.76 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.7, allocations: 8.109 kB / 0.6489 GB, free: 61.76 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