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.001089/0.001089, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2648, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01123/0.2761, allocations: 10.25 MB / 419.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007387/0.2835, allocations: 3.882 MB / 423.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.2849, allocations: 59.81 kB / 423.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003878/0.2888, allocations: 2.071 MB / 425.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2926, allocations: 1.642 MB / 427.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.2943, allocations: 0.6901 MB / 427.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004385/0.2987, allocations: 3.389 MB / 431.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003173/0.3019, allocations: 2.688 MB / 433.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.3038, allocations: 1.246 MB / 435.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002341/0.3061, allocations: 1.748 MB / 436.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004336/0.3066, allocations: 264 kB / 437.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.3083, allocations: 1.112 MB / 438.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.3095, allocations: 1.562 MB / 439.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001614/0.3112, allocations: 1.848 MB / 441.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005461/0.3166, allocations: 5.887 MB / 447.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3167, allocations: 0 / 447.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3167, allocations: 0 / 447.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.934e-05/0.3168, allocations: 4 kB / 447.6 MB, free: 11.08 MB / 366.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.006637/0.3234, allocations: 4.102 MB / 451.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3235, allocations: 12.03 kB / 451.7 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005873/0.3293, allocations: 1.848 MB / 453.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003179/0.3325, allocations: 1.886 MB / 455.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.3327, allocations: 205.2 kB / 455.6 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004592/0.3332, allocations: 275.8 kB / 455.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/0.349, allocations: 10 MB / 465.9 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.738e-05/0.3491, allocations: 39.67 kB / 465.9 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000318/0.3494, allocations: 139.8 kB / 466.1 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002715/0.3522, allocations: 1.848 MB / 467.9 MB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/0.3689, allocations: 8.567 MB / 476.5 MB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03859/0.4075, allocations: 36.7 MB / 0.5012 GB, free: 7.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009427/0.417, allocations: 3.893 MB / 0.505 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002204/0.4192, allocations: 1.807 MB / 0.5067 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.4293, allocations: 7.618 MB / 0.5142 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.4294, allocations: 51.5 kB / 0.5142 GB, free: 9.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.208e-06/0.4294, allocations: 0 / 0.5142 GB, free: 9.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.04837/0.4778, allocations: 17.54 MB / 0.5314 GB, free: 8.051 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.4779, allocations: 145.5 kB / 0.5315 GB, free: 7.879 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004101/0.482, allocations: 3.472 MB / 0.5349 GB, free: 4.402 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.4822, allocations: 45.7 kB / 0.5349 GB, free: 4.352 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.4838, allocations: 2.732 MB / 0.5376 GB, free: 1.586 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/0.4843, allocations: 0.6518 MB / 0.5382 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2264/0.7107, allocations: 1.11 MB / 0.5393 GB, free: 126 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.7108, allocations: 305.7 kB / 0.5396 GB, free: 125.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004052/0.7149, allocations: 1.969 MB / 0.5415 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004015/0.7189, allocations: 5.382 MB / 0.5468 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006702/0.7256, allocations: 7.958 MB / 0.5546 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.313e-05/0.7257, allocations: 34.34 kB / 0.5546 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01174/0.7374, allocations: 8.197 MB / 0.5626 GB, free: 109.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.7375, allocations: 58.02 kB / 0.5627 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-05/0.7376, allocations: 120 kB / 0.5628 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003492/0.7411, allocations: 1.294 MB / 0.564 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/0.7442, allocations: 1.269 MB / 0.5653 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00693/0.7511, allocations: 6.546 MB / 0.5717 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/0.7549, allocations: 304.1 kB / 0.572 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/0.7553, allocations: 344 kB / 0.5723 GB, free: 100.8 MB / 462.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.001872/0.7572, allocations: 1.815 MB / 0.5741 GB, free: 99.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003643/0.7575, allocations: 304.6 kB / 0.5743 GB, free: 98.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005635/0.7632, allocations: 3.389 MB / 0.5777 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.7632, allocations: 19.75 kB / 0.5777 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.7632, allocations: 4 kB / 0.5777 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.7632, allocations: 11.97 kB / 0.5777 GB, free: 95.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/0.7739, allocations: 7.579 MB / 0.5851 GB, free: 87.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.7739, allocations: 0 / 0.5851 GB, free: 87.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.775, allocations: 243.7 kB / 0.5853 GB, free: 87.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003188/0.7782, allocations: 1.122 MB / 0.5864 GB, free: 86.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/0.7783, allocations: 28 kB / 0.5864 GB, free: 86.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006669/0.785, allocations: 6.169 MB / 0.5925 GB, free: 80.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.785, allocations: 0 / 0.5925 GB, free: 80.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00784/0.7929, allocations: 5.747 MB / 0.5981 GB, free: 74.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008792/0.7938, allocations: 349 kB / 0.5984 GB, free: 74.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/0.7941, allocations: 35.75 kB / 0.5985 GB, free: 74.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.7953, allocations: 91.88 kB / 0.5985 GB, free: 74.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/0.7956, allocations: 88.81 kB / 0.5986 GB, free: 74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.7958, allocations: 46.48 kB / 0.5987 GB, free: 73.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002798/0.7986, allocations: 2.146 MB / 0.6008 GB, free: 71.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7986, allocations: 0 / 0.6008 GB, free: 71.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003993/0.8026, allocations: 0.8933 MB / 0.6016 GB, free: 70.93 MB / 462.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.0003608/0.8029, allocations: 164 kB / 0.6018 GB, free: 70.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006179/0.8091, allocations: 4.823 MB / 0.6065 GB, free: 65.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.8092, allocations: 0 / 0.6065 GB, free: 65.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.8111, allocations: 1.554 MB / 0.608 GB, free: 64.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.813, allocations: 363 kB / 0.6084 GB, free: 64.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.824, allocations: 8.004 MB / 0.6162 GB, free: 56.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002065/0.8261, allocations: 2.854 MB / 0.619 GB, free: 53.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002917/0.829, allocations: 1.696 MB / 0.6206 GB, free: 51.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/0.8296, allocations: 219.4 kB / 0.6208 GB, free: 51.23 MB / 462.1 MB Notification: Performance of SimCode: time 6.62e-07/0.8296, allocations: 0.9844 kB / 0.6208 GB, free: 51.23 MB / 462.1 MB Notification: Performance of Templates: time 0.0487/0.8783, allocations: 30.92 MB / 0.651 GB, free: 20.49 MB / 462.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