Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008893/0.0008893, allocations: 90.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 197.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.000351, allocations: 8 kB / 307.8 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 51.52 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2026/0.306, allocations: 33.51 MB / 392.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01767/0.3237, allocations: 7.788 MB / 400.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00526/0.329, allocations: 144.5 kB / 400.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.3301, allocations: 383 kB / 401.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003788/0.3339, allocations: 1.506 MB / 402.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.3354, allocations: 0.634 MB / 403.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005271/0.3407, allocations: 4.78 MB / 408 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004771/0.3454, allocations: 3.736 MB / 411.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001378/0.3468, allocations: 0.9413 MB / 412.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.3488, allocations: 1.67 MB / 414.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002585/0.3491, allocations: 128 kB / 414.5 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.3509, allocations: 1.033 MB / 415.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.3521, allocations: 1.422 MB / 416.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.3534, allocations: 1.69 MB / 418.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005419/0.3589, allocations: 5.482 MB / 424.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3589, allocations: 0 / 424.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.001e-06/0.3589, allocations: 3.984 kB / 424.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.557e-05/0.359, allocations: 0 / 424.1 MB, free: 9.852 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006437/0.3654, allocations: 3.359 MB / 427.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3655, allocations: 11.97 kB / 427.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006804/0.3723, allocations: 1.899 MB / 429.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.3754, allocations: 1.843 MB / 431.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.3755, allocations: 217.1 kB / 431.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004532/0.376, allocations: 267.8 kB / 431.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01631/0.3923, allocations: 10.03 MB / 441.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.945e-05/0.3924, allocations: 43.58 kB / 441.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.3928, allocations: 135.9 kB / 441.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/0.3958, allocations: 1.848 MB / 443.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/0.4127, allocations: 8.587 MB / 452.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04271/0.4554, allocations: 36.85 MB / 489.2 MB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009712/0.4652, allocations: 3.92 MB / 493.1 MB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002256/0.4675, allocations: 1.802 MB / 494.9 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009701/0.4772, allocations: 7.618 MB / 0.4907 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.4772, allocations: 51.44 kB / 0.4908 GB, free: 9.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.969e-06/0.4772, allocations: 0 / 0.4908 GB, free: 9.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05237/0.5296, allocations: 17.56 MB / 0.5079 GB, free: 7.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.5298, allocations: 149.5 kB / 0.5081 GB, free: 7.145 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004525/0.5343, allocations: 3.461 MB / 0.5115 GB, free: 3.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.5345, allocations: 49.64 kB / 0.5115 GB, free: 3.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.5361, allocations: 2.736 MB / 0.5142 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005431/0.5367, allocations: 0.6442 MB / 0.5148 GB, free: 204 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005353/0.5372, allocations: 474.3 kB / 0.5153 GB, free: 15.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.299e-05/0.5373, allocations: 305.1 kB / 0.5156 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002842/0.5402, allocations: 1.971 MB / 0.5175 GB, free: 13.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004832/0.545, allocations: 5.397 MB / 0.5228 GB, free: 6.336 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1783/0.7233, allocations: 7.961 MB / 0.5305 GB, free: 138.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.7235, allocations: 37.69 kB / 0.5306 GB, free: 138.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01709/0.7406, allocations: 8.208 MB / 0.5386 GB, free: 137 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.559e-05/0.7407, allocations: 58.62 kB / 0.5386 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/0.7409, allocations: 123.2 kB / 0.5388 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004496/0.7454, allocations: 1.298 MB / 0.54 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004174/0.7495, allocations: 1.274 MB / 0.5413 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0085/0.7581, allocations: 6.102 MB / 0.5472 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003838/0.7619, allocations: 309.5 kB / 0.5475 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005579/0.7625, allocations: 337.9 kB / 0.5478 GB, free: 133.7 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.002457/0.765, allocations: 1.813 MB / 0.5496 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.7654, allocations: 303.2 kB / 0.5499 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006436/0.7718, allocations: 3.399 MB / 0.5532 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.7719, allocations: 19.84 kB / 0.5532 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.7719, allocations: 3.938 kB / 0.5532 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.7719, allocations: 16.11 kB / 0.5533 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.7837, allocations: 7.636 MB / 0.5607 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.7838, allocations: 0 / 0.5607 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.7848, allocations: 248.7 kB / 0.561 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003316/0.7881, allocations: 1.118 MB / 0.562 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.7882, allocations: 29 kB / 0.5621 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006344/0.7946, allocations: 5.725 MB / 0.5677 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.7946, allocations: 7.969 kB / 0.5677 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00793/0.8025, allocations: 5.752 MB / 0.5733 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005607/0.8031, allocations: 357 kB / 0.5736 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/0.8034, allocations: 37.28 kB / 0.5737 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.8046, allocations: 99.86 kB / 0.5738 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.8048, allocations: 92.88 kB / 0.5739 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-05/0.8049, allocations: 41.48 kB / 0.5739 GB, free: 115.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.8072, allocations: 2.142 MB / 0.576 GB, free: 113.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8072, allocations: 0 / 0.576 GB, free: 113.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003732/0.811, allocations: 0.8988 MB / 0.5769 GB, free: 112.9 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.0003933/0.8114, allocations: 161.8 kB / 0.577 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005579/0.817, allocations: 4.826 MB / 0.5817 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.817, allocations: 0 / 0.5817 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.8188, allocations: 1.553 MB / 0.5832 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.8207, allocations: 345.9 kB / 0.5836 GB, free: 106 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.8317, allocations: 9.909 MB / 0.5932 GB, free: 96.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/0.834, allocations: 2.851 MB / 0.596 GB, free: 93.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003538/0.8376, allocations: 1.719 MB / 0.5977 GB, free: 91.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005272/0.8381, allocations: 215.4 kB / 0.5979 GB, free: 91.29 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.8381, allocations: 0 / 0.5979 GB, free: 91.29 MB / 446.1 MB Notification: Performance of Templates: time 0.04479/0.8829, allocations: 32.03 MB / 0.6292 GB, free: 59.42 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches