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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.00127/0.001271, allocations: 187 kB / 18.67 MB, free: 4.398 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.413/1.413, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001182/0.001182, allocations: 63.91 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1006, allocations: 46.61 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2435/0.3441, allocations: 10.75 MB / 385.9 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008846/0.353, allocations: 3.868 MB / 389.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002933/0.3561, allocations: 64.06 kB / 389.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004712/0.3608, allocations: 2.239 MB / 392.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006394/0.3673, allocations: 1.834 MB / 393.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002226/0.3695, allocations: 0.7134 MB / 394.6 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007452/0.377, allocations: 4.267 MB / 398.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003986/0.381, allocations: 2.918 MB / 401.8 MB, free: 72 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003003/0.384, allocations: 1.491 MB / 403.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003226/0.3873, allocations: 2.092 MB / 405.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007852/0.3881, allocations: 297 kB / 405.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.3902, allocations: 0.9289 MB / 406.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001789/0.392, allocations: 1.836 MB / 408.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.3942, allocations: 2.104 MB / 410.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007408/0.4016, allocations: 6.428 MB / 417 MB, free: 5.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4017, allocations: 0 / 417 MB, free: 5.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4017, allocations: 0 / 417 MB, free: 5.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001583/0.4018, allocations: 0 / 417 MB, free: 5.637 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.009617/0.4114, allocations: 4.623 MB / 421.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.4115, allocations: 11.89 kB / 421.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007242/0.4187, allocations: 1.915 MB / 423.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004511/0.4233, allocations: 2.391 MB / 425.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.4235, allocations: 229.6 kB / 426.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005671/0.4241, allocations: 299.7 kB / 426.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.4402, allocations: 9.635 MB / 436.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.4404, allocations: 47.53 kB / 436.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.4407, allocations: 143.9 kB / 436.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002817/0.4435, allocations: 1.923 MB / 438.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/0.4587, allocations: 7.641 MB / 445.8 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04279/0.5015, allocations: 37.59 MB / 483.4 MB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006699/0.5083, allocations: 2.891 MB / 486.3 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.5096, allocations: 0.873 MB / 487.2 MB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005324/0.5149, allocations: 3.763 MB / 490.9 MB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.515, allocations: 43.22 kB / 491 MB, free: 9.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 2.986e-06/0.515, allocations: 0 / 491 MB, free: 9.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02233/0.5373, allocations: 9.07 MB / 0.4883 GB, free: 15.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.5374, allocations: 145.5 kB / 0.4885 GB, free: 15.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/0.5427, allocations: 3.944 MB / 0.4923 GB, free: 11.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.5428, allocations: 45.7 kB / 0.4924 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.5451, allocations: 3.082 MB / 0.4954 GB, free: 8.703 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005952/0.5457, allocations: 0.6099 MB / 0.496 GB, free: 8.086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001468/0.5472, allocations: 1.163 MB / 0.4971 GB, free: 6.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.5474, allocations: 309.1 kB / 0.4974 GB, free: 6.605 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.5503, allocations: 1.585 MB / 0.4989 GB, free: 5.016 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/0.5564, allocations: 5.354 MB / 0.5042 GB, free: 13.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009372/0.5658, allocations: 7.549 MB / 0.5115 GB, free: 4.332 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/0.566, allocations: 40 kB / 0.5116 GB, free: 4.293 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01141/0.5774, allocations: 6.659 MB / 0.5181 GB, free: 13.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/0.5775, allocations: 64.94 kB / 0.5181 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001392/0.5777, allocations: 139.9 kB / 0.5183 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001554/0.5778, allocations: 176 kB / 0.5184 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00389/0.5817, allocations: 1.384 MB / 0.5198 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002137/0.582, allocations: 263 kB / 0.52 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003456/0.5854, allocations: 275.7 kB / 0.5203 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004416/0.5859, allocations: 376 kB / 0.5207 GB, free: 10.97 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 (746): * Single equations (assignments): 743 * 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.002818/0.5887, allocations: 1.982 MB / 0.5226 GB, free: 8.977 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005218/0.5893, allocations: 339.6 kB / 0.5229 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.5913, allocations: 1.246 MB / 0.5241 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/0.5913, allocations: 16 kB / 0.5242 GB, free: 7.367 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.5914, allocations: 4 kB / 0.5242 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.5914, allocations: 11.97 kB / 0.5242 GB, free: 7.352 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008944/0.6003, allocations: 5.74 MB / 0.5298 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/0.6004, allocations: 24.88 kB / 0.5298 GB, free: 1.262 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009468/0.6014, allocations: 271.5 kB / 0.5301 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.439e-05/0.6014, allocations: 32 kB / 0.5301 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/0.6015, allocations: 44 kB / 0.5301 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.231e-05/0.6015, allocations: 43.92 kB / 0.5302 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.931e-05/0.6016, allocations: 27.88 kB / 0.5302 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/0.6053, allocations: 3.22 MB / 0.5333 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.6063, allocations: 0.5163 MB / 0.5338 GB, free: 12.83 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003478/0.6067, allocations: 51.98 kB / 0.5339 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.6078, allocations: 55.97 kB / 0.534 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.608, allocations: 155.4 kB / 0.5341 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.989e-05/0.6081, allocations: 67.98 kB / 0.5342 GB, free: 12.51 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.6117, allocations: 2.454 MB / 0.5366 GB, free: 10.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6117, allocations: 0 / 0.5366 GB, free: 10.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00425/0.616, allocations: 0.8672 MB / 0.5374 GB, free: 9.207 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.0003596/0.6163, allocations: 207.5 kB / 0.5376 GB, free: 8.996 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005503/0.6218, allocations: 3.682 MB / 0.5412 GB, free: 5.344 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/0.6219, allocations: 4 kB / 0.5412 GB, free: 5.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.6229, allocations: 0.7375 MB / 0.5419 GB, free: 4.605 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.6254, allocations: 451.6 kB / 0.5424 GB, free: 4.164 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2146/0.8401, allocations: 8.535 MB / 0.5507 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004208/0.8443, allocations: 3.104 MB / 0.5537 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004635/0.849, allocations: 1.766 MB / 0.5554 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007252/0.8497, allocations: 233.2 kB / 0.5557 GB, free: 145 MB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/0.8497, allocations: 0 / 0.5557 GB, free: 145 MB / 478.1 MB Notification: Performance of Templates: time 0.05217/0.9019, allocations: 23.89 MB / 0.579 GB, free: 137.1 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/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