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.001123/0.001123, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001163/0.001163, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.371/1.371, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 52.02 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2775, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01133/0.2889, allocations: 10.23 MB / 411.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007657/0.2966, allocations: 3.775 MB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001738/0.2984, allocations: 55.81 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003853/0.3023, allocations: 1.954 MB / 417.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004643/0.307, allocations: 1.654 MB / 419.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001697/0.3087, allocations: 0.6082 MB / 419.7 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00549/0.3142, allocations: 3.336 MB / 423 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003718/0.3179, allocations: 2.575 MB / 425.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002496/0.3205, allocations: 1.234 MB / 426.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002776/0.3233, allocations: 1.678 MB / 428.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009514/0.3242, allocations: 252 kB / 428.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002639/0.3269, allocations: 1.038 MB / 429.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002317/0.3292, allocations: 1.574 MB / 431.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003499/0.3327, allocations: 1.829 MB / 433.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008336/0.3411, allocations: 5.829 MB / 439 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3411, allocations: 0 / 439 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3412, allocations: 0 / 439 MB, free: 3.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002324/0.3414, allocations: 0 / 439 MB, free: 3.051 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.009711/0.3511, allocations: 4.014 MB / 443 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3512, allocations: 11.89 kB / 443 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006127/0.3573, allocations: 1.778 MB / 444.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/0.3617, allocations: 1.947 MB / 446.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.3619, allocations: 192.8 kB / 447 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.363, allocations: 255.8 kB / 447.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.3789, allocations: 8.431 MB / 455.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001654/0.3791, allocations: 39.59 kB / 455.7 MB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00081/0.38, allocations: 123.9 kB / 455.8 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/0.3829, allocations: 1.695 MB / 457.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/0.3971, allocations: 7.11 MB / 464.6 MB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04425/0.4414, allocations: 34.02 MB / 498.6 MB, free: 5.641 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007365/0.4488, allocations: 3.276 MB / 0.4901 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/0.4508, allocations: 1.463 MB / 0.4916 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007147/0.458, allocations: 4.365 MB / 0.4958 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4581, allocations: 43.12 kB / 0.4959 GB, free: 12.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.118e-06/0.4581, allocations: 0 / 0.4959 GB, free: 12.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03095/0.4891, allocations: 11.51 MB / 0.5071 GB, free: 460 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.147e-05/0.4892, allocations: 145.1 kB / 0.5072 GB, free: 284 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006428/0.4956, allocations: 3.721 MB / 0.5109 GB, free: 12.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003201/0.496, allocations: 41.7 kB / 0.5109 GB, free: 12.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.4981, allocations: 2.752 MB / 0.5136 GB, free: 9.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/0.4989, allocations: 0.521 MB / 0.5141 GB, free: 9.195 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.5003, allocations: 1.075 MB / 0.5152 GB, free: 8.109 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5004, allocations: 309.1 kB / 0.5155 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002375/0.5028, allocations: 1.701 MB / 0.5171 GB, free: 6.098 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004705/0.5075, allocations: 5.131 MB / 0.5221 GB, free: 15.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009049/0.5166, allocations: 7.41 MB / 0.5294 GB, free: 6.117 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/0.5168, allocations: 35.94 kB / 0.5294 GB, free: 6.082 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.2619/0.7786, allocations: 6.725 MB / 0.536 GB, free: 124.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.7788, allocations: 58.91 kB / 0.536 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002629/0.7791, allocations: 125.4 kB / 0.5361 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008736/0.78, allocations: 323.9 kB / 0.5365 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003906/0.7839, allocations: 1.248 MB / 0.5377 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.786, allocations: 2.492 MB / 0.5401 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003587/0.7896, allocations: 287 kB / 0.5404 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005758/0.7902, allocations: 329.3 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.00219/0.7924, allocations: 1.793 MB / 0.5424 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/0.7929, allocations: 310 kB / 0.5427 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/0.7966, allocations: 2.357 MB / 0.545 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.7967, allocations: 19.06 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.7967, allocations: 7.672 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.7967, allocations: 7.312 kB / 0.5451 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009399/0.8061, allocations: 5.902 MB / 0.5508 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.8062, allocations: 0 / 0.5508 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.8069, allocations: 172.7 kB / 0.551 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/0.8089, allocations: 0.7101 MB / 0.5517 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.809, allocations: 22.47 kB / 0.5517 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004586/0.8136, allocations: 4.817 MB / 0.5564 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.8136, allocations: 0 / 0.5564 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005429/0.819, allocations: 4.331 MB / 0.5607 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008038/0.8199, allocations: 367.5 kB / 0.561 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.8202, allocations: 16 kB / 0.561 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009277/0.8211, allocations: 63.91 kB / 0.5611 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.8213, allocations: 68.14 kB / 0.5611 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.8214, allocations: 36.11 kB / 0.5612 GB, free: 112.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002801/0.8242, allocations: 2.319 MB / 0.5634 GB, free: 110.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8242, allocations: 0 / 0.5634 GB, free: 110.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004179/0.8284, allocations: 0.8264 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.0003724/0.8288, allocations: 160.3 kB / 0.5644 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006025/0.8348, allocations: 4.057 MB / 0.5684 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.8349, allocations: 0 / 0.5684 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.8363, allocations: 1.112 MB / 0.5695 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.8392, allocations: 388.2 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.01078/0.85, allocations: 7.639 MB / 0.5773 GB, free: 96.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.8521, allocations: 2.785 MB / 0.58 GB, free: 93.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008103/0.8529, allocations: 251.4 kB / 0.5802 GB, free: 93.43 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.8529, allocations: 7.938 kB / 0.5802 GB, free: 93.43 MB / 462.1 MB Notification: Performance of Templates: time 0.07139/0.9243, allocations: 64.99 MB / 0.6437 GB, free: 28.5 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