Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000989/0.0009888, allocations: 94.69 kB / 17.3 MB, free: 6.395 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.001021/0.001021, allocations: 178.5 kB / 18.21 MB, free: 5.547 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.457/1.457, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0005728/0.0005731, allocations: 12 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0346/0.1455, allocations: 33.77 MB / 362.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02255/0.1681, allocations: 7.857 MB / 370.6 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007837/0.176, allocations: 143.6 kB / 370.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.1777, allocations: 386 kB / 371.1 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005065/0.1828, allocations: 1.534 MB / 372.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.185, allocations: 0.6358 MB / 373.3 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008029/0.193, allocations: 4.781 MB / 378.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2178/0.4109, allocations: 3.751 MB / 381.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.414, allocations: 0.9657 MB / 382.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003898/0.4179, allocations: 1.675 MB / 384.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000996/0.4189, allocations: 124.2 kB / 384.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002949/0.4219, allocations: 1.045 MB / 385.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002335/0.4243, allocations: 1.439 MB / 387.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00255/0.4268, allocations: 1.714 MB / 388.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007624/0.4345, allocations: 5.544 MB / 394.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4345, allocations: 0 / 394.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4345, allocations: 3.25 kB / 394.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002163/0.4347, allocations: 0 / 394.3 MB, free: 8.645 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008586/0.4433, allocations: 3.37 MB / 397.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.4434, allocations: 9.156 kB / 397.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007228/0.4506, allocations: 1.911 MB / 399.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004374/0.455, allocations: 1.929 MB / 401.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.4552, allocations: 211.5 kB / 401.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006395/0.4559, allocations: 265 kB / 402 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01853/0.4744, allocations: 10 MB / 412 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.4746, allocations: 35.53 kB / 412 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003679/0.4749, allocations: 136 kB / 412.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002742/0.4777, allocations: 1.851 MB / 414 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01801/0.4957, allocations: 8.561 MB / 422.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05063/0.5464, allocations: 36.85 MB / 459.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.5567, allocations: 3.87 MB / 463.3 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/0.5595, allocations: 1.812 MB / 465.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/0.5728, allocations: 7.543 MB / 472.7 MB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.18e-05/0.5729, allocations: 51.5 kB / 472.7 MB, free: 6.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.941e-06/0.5729, allocations: 0 / 472.7 MB, free: 6.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05486/0.6278, allocations: 17.39 MB / 490.1 MB, free: 5.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.628, allocations: 147.7 kB / 490.2 MB, free: 5.188 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005986/0.634, allocations: 3.489 MB / 493.7 MB, free: 1.695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005936/0.6346, allocations: 57.53 kB / 493.8 MB, free: 1.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002367/0.637, allocations: 2.727 MB / 496.5 MB, free: 14.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/0.638, allocations: 0.6479 MB / 497.2 MB, free: 14.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006609/0.6387, allocations: 478.3 kB / 497.6 MB, free: 13.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.6388, allocations: 305.1 kB / 497.9 MB, free: 13.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003187/0.642, allocations: 1.947 MB / 499.9 MB, free: 11.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00613/0.6482, allocations: 5.376 MB / 0.4934 GB, free: 4.512 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/0.6598, allocations: 7.928 MB / 0.5011 GB, free: 11.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/0.66, allocations: 32 kB / 0.5012 GB, free: 11.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.02019/0.6802, allocations: 8.185 MB / 0.5092 GB, free: 3.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.6803, allocations: 59.98 kB / 0.5092 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/0.6805, allocations: 120 kB / 0.5093 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00447/0.685, allocations: 1.293 MB / 0.5106 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/0.6898, allocations: 1.265 MB / 0.5118 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.7, allocations: 6.11 MB / 0.5178 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00572/0.7057, allocations: 299.6 kB / 0.5181 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/0.7073, allocations: 340 kB / 0.5184 GB, free: 10.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005841/0.7131, allocations: 1.822 MB / 0.5202 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009634/0.7141, allocations: 304.1 kB / 0.5205 GB, free: 8.332 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008732/0.7229, allocations: 3.372 MB / 0.5238 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.118e-05/0.723, allocations: 23.75 kB / 0.5238 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.948e-05/0.723, allocations: 4 kB / 0.5238 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.56e-05/0.7231, allocations: 11.91 kB / 0.5238 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2456/0.9687, allocations: 7.597 MB / 0.5312 GB, free: 161.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/0.9687, allocations: 3 kB / 0.5312 GB, free: 161.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.97, allocations: 238.8 kB / 0.5315 GB, free: 161.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004353/0.9744, allocations: 1.116 MB / 0.5326 GB, free: 161.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003893/0.9748, allocations: 26.95 kB / 0.5326 GB, free: 161.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009536/0.9844, allocations: 5.72 MB / 0.5382 GB, free: 159.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.9844, allocations: 2.281 kB / 0.5382 GB, free: 159.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01194/0.9964, allocations: 5.708 MB / 0.5437 GB, free: 157.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/0.9982, allocations: 0.5789 MB / 0.5443 GB, free: 157.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008739/0.9991, allocations: 26.39 kB / 0.5443 GB, free: 157.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/1.001, allocations: 90.81 kB / 0.5444 GB, free: 157.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/1.001, allocations: 86.95 kB / 0.5445 GB, free: 157.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/1.002, allocations: 49.42 kB / 0.5446 GB, free: 157.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00375/1.005, allocations: 2.163 MB / 0.5467 GB, free: 156.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.005, allocations: 0 / 0.5467 GB, free: 156.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004979/1.01, allocations: 0.9097 MB / 0.5476 GB, free: 156.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004694/1.011, allocations: 172.9 kB / 0.5477 GB, free: 156.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007263/1.018, allocations: 4.778 MB / 0.5524 GB, free: 155 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/1.018, allocations: 3.906 kB / 0.5524 GB, free: 155 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/1.02, allocations: 1.532 MB / 0.5539 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/1.023, allocations: 338.9 kB / 0.5542 GB, free: 154.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.04, allocations: 9.931 MB / 0.5639 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002701/1.043, allocations: 2.855 MB / 0.5667 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003961/1.047, allocations: 1.715 MB / 0.5684 GB, free: 142.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000585/1.047, allocations: 219.2 kB / 0.5686 GB, free: 141.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/1.047, allocations: 4 kB / 0.5686 GB, free: 141.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05628/1.104, allocations: 32.27 MB / 0.6001 GB, free: 109.9 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches