Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 114.9 kB / 17.75 MB, free: 5.312 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.001965/0.001965, allocations: 188.4 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3078, allocations: 49.42 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01132/0.3191, allocations: 10.23 MB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008804/0.328, allocations: 3.783 MB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.3303, allocations: 55.88 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003907/0.3343, allocations: 1.946 MB / 417.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004788/0.3392, allocations: 1.657 MB / 419.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.3409, allocations: 0.616 MB / 419.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005123/0.3461, allocations: 3.326 MB / 423 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003524/0.3496, allocations: 2.569 MB / 425.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00232/0.352, allocations: 1.246 MB / 426.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.3549, allocations: 1.67 MB / 428.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009399/0.3559, allocations: 252 kB / 428.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.3584, allocations: 1.045 MB / 429.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002068/0.3605, allocations: 1.57 MB / 431.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003089/0.3636, allocations: 1.833 MB / 433.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008184/0.3718, allocations: 5.823 MB / 439 MB, free: 3.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3719, allocations: 0 / 439 MB, free: 3.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3719, allocations: 0 / 439 MB, free: 3.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002963/0.3722, allocations: 0 / 439 MB, free: 3.066 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.013/0.3852, allocations: 4.014 MB / 443 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.3853, allocations: 15.88 kB / 443 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007078/0.3924, allocations: 1.774 MB / 444.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0046/0.397, allocations: 1.955 MB / 446.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.3972, allocations: 188.8 kB / 447 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001036/0.3983, allocations: 255.8 kB / 447.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.413, allocations: 8.423 MB / 455.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-05/0.4132, allocations: 43.58 kB / 455.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003239/0.4135, allocations: 131.9 kB / 455.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00288/0.4164, allocations: 1.692 MB / 457.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01284/0.4293, allocations: 7.098 MB / 464.6 MB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04177/0.4711, allocations: 34.02 MB / 498.6 MB, free: 5.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007407/0.4785, allocations: 3.284 MB / 0.4901 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00202/0.4806, allocations: 1.472 MB / 0.4916 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006708/0.4873, allocations: 4.361 MB / 0.4958 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.4874, allocations: 43.12 kB / 0.4959 GB, free: 12.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 5.149e-06/0.4874, allocations: 0 / 0.4959 GB, free: 12.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02869/0.5161, allocations: 11.51 MB / 0.5071 GB, free: 472 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5163, allocations: 149.1 kB / 0.5073 GB, free: 292 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005174/0.5215, allocations: 3.721 MB / 0.5109 GB, free: 12.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/0.5218, allocations: 41.7 kB / 0.5109 GB, free: 12.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001883/0.5236, allocations: 2.752 MB / 0.5136 GB, free: 9.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/0.5242, allocations: 0.5171 MB / 0.5141 GB, free: 9.207 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.5255, allocations: 1.083 MB / 0.5152 GB, free: 8.113 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5257, allocations: 305.1 kB / 0.5155 GB, free: 7.812 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.5279, allocations: 1.705 MB / 0.5171 GB, free: 6.102 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004552/0.5325, allocations: 5.128 MB / 0.5221 GB, free: 15.24 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008694/0.5412, allocations: 7.413 MB / 0.5294 GB, free: 6.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.574e-05/0.5413, allocations: 36 kB / 0.5294 GB, free: 6.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.2656/0.8069, allocations: 6.723 MB / 0.536 GB, free: 124.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.8071, allocations: 58.02 kB / 0.536 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002827/0.8074, allocations: 121.6 kB / 0.5361 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009443/0.8084, allocations: 317.5 kB / 0.5365 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/0.8127, allocations: 1.251 MB / 0.5377 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002395/0.8151, allocations: 2.493 MB / 0.5401 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/0.8192, allocations: 277.8 kB / 0.5404 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/0.8202, allocations: 336.5 kB / 0.5407 GB, free: 123.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003191/0.8234, allocations: 1.797 MB / 0.5425 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005873/0.824, allocations: 305.7 kB / 0.5427 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.8282, allocations: 2.36 MB / 0.545 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-05/0.8282, allocations: 14.62 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.8283, allocations: 3.812 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.8283, allocations: 7.406 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.8391, allocations: 5.904 MB / 0.5508 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.8391, allocations: 0 / 0.5508 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.8399, allocations: 179.8 kB / 0.551 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.8418, allocations: 0.7101 MB / 0.5517 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.842, allocations: 19.62 kB / 0.5517 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0048/0.8468, allocations: 4.817 MB / 0.5564 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.8468, allocations: 4.562 kB / 0.5564 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005824/0.8526, allocations: 4.322 MB / 0.5606 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009894/0.8537, allocations: 363.5 kB / 0.561 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004029/0.8541, allocations: 20 kB / 0.561 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.8552, allocations: 72.03 kB / 0.5611 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.8554, allocations: 72.09 kB / 0.5612 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.512e-05/0.8555, allocations: 38.16 kB / 0.5612 GB, free: 112.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002895/0.8584, allocations: 2.319 MB / 0.5635 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8584, allocations: 0 / 0.5635 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004151/0.8625, allocations: 0.821 MB / 0.5643 GB, free: 109.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003656/0.8629, allocations: 165.6 kB / 0.5644 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0052/0.8681, allocations: 4.045 MB / 0.5684 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.8682, allocations: 8.188 kB / 0.5684 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.8694, allocations: 1.104 MB / 0.5694 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/0.8717, allocations: 395.9 kB / 0.5698 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.8823, allocations: 7.629 MB / 0.5773 GB, free: 96.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/0.8844, allocations: 2.795 MB / 0.58 GB, free: 93.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008459/0.8853, allocations: 251.4 kB / 0.5802 GB, free: 93.47 MB / 462.1 MB Notification: Performance of SimCode: time 1.193e-06/0.8853, allocations: 0 / 0.5802 GB, free: 93.47 MB / 462.1 MB Notification: Performance of Templates: time 0.07835/0.9636, allocations: 64.47 MB / 0.6432 GB, free: 29.07 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches