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.001581/0.001581, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00233/0.00233, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 51.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2547, allocations: 50.55 MB / 409.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01543/0.2702, allocations: 10.25 MB / 419.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.2797, allocations: 3.89 MB / 423.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009706/0.2807, allocations: 51.88 kB / 423.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004825/0.2856, allocations: 2.067 MB / 425.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004462/0.2901, allocations: 1.611 MB / 427.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.2914, allocations: 0.694 MB / 427.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003648/0.2951, allocations: 3.381 MB / 431.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002541/0.2976, allocations: 2.677 MB / 433.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.2989, allocations: 1.254 MB / 435.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.3008, allocations: 1.748 MB / 436.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003866/0.3012, allocations: 267.9 kB / 437.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001637/0.3028, allocations: 1.1 MB / 438.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.304, allocations: 1.558 MB / 439.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.3054, allocations: 1.844 MB / 441.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005235/0.3106, allocations: 5.91 MB / 447.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3107, allocations: 7.938 kB / 447.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3107, allocations: 0 / 447.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.294e-05/0.3108, allocations: 0 / 447.6 MB, free: 11.13 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.006714/0.3175, allocations: 4.213 MB / 451.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3175, allocations: 8.031 kB / 451.8 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006584/0.3241, allocations: 1.874 MB / 453.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003486/0.3276, allocations: 1.886 MB / 455.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.3278, allocations: 209.2 kB / 455.7 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000428/0.3282, allocations: 279.7 kB / 456 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.3453, allocations: 10 MB / 466 MB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-05/0.3454, allocations: 47.62 kB / 466.1 MB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003413/0.3458, allocations: 127.9 kB / 466.2 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/0.3487, allocations: 1.864 MB / 468.1 MB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.3655, allocations: 8.56 MB / 476.6 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03972/0.4052, allocations: 36.75 MB / 0.5013 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009608/0.4149, allocations: 3.905 MB / 0.5052 GB, free: 3.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002321/0.4172, allocations: 1.807 MB / 0.5069 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.4272, allocations: 7.62 MB / 0.5144 GB, free: 9.621 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4273, allocations: 51.5 kB / 0.5144 GB, free: 9.562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.677e-06/0.4273, allocations: 0 / 0.5144 GB, free: 9.562 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.0503/0.4776, allocations: 17.75 MB / 0.5317 GB, free: 7.707 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.4777, allocations: 153.4 kB / 0.5319 GB, free: 7.527 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.4818, allocations: 3.466 MB / 0.5353 GB, free: 4.059 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.482, allocations: 49.7 kB / 0.5353 GB, free: 4.004 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/0.4836, allocations: 2.85 MB / 0.5381 GB, free: 1.133 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005103/0.4841, allocations: 0.6746 MB / 0.5388 GB, free: 464 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2018/0.686, allocations: 1.121 MB / 0.5399 GB, free: 125.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.921e-05/0.686, allocations: 307.8 kB / 0.5401 GB, free: 125.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003143/0.6892, allocations: 1.965 MB / 0.5421 GB, free: 125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003492/0.6927, allocations: 5.387 MB / 0.5473 GB, free: 119.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005911/0.6986, allocations: 7.956 MB / 0.5551 GB, free: 113.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-05/0.6987, allocations: 31.22 kB / 0.5551 GB, free: 113.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01156/0.7102, allocations: 8.215 MB / 0.5631 GB, free: 109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/0.7103, allocations: 59.75 kB / 0.5632 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.391e-05/0.7104, allocations: 120 kB / 0.5633 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003495/0.7139, allocations: 1.298 MB / 0.5646 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.7169, allocations: 1.271 MB / 0.5658 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006941/0.7239, allocations: 6.538 MB / 0.5722 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/0.7274, allocations: 304 kB / 0.5725 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004323/0.7278, allocations: 343.8 kB / 0.5728 GB, free: 100.1 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.002135/0.7299, allocations: 1.813 MB / 0.5746 GB, free: 98.31 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004139/0.7304, allocations: 324.1 kB / 0.5749 GB, free: 98.17 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006119/0.7365, allocations: 3.381 MB / 0.5782 GB, free: 94.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.7365, allocations: 16 kB / 0.5782 GB, free: 94.76 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.7366, allocations: 12 kB / 0.5782 GB, free: 94.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.7366, allocations: 7.969 kB / 0.5782 GB, free: 94.74 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.7477, allocations: 7.581 MB / 0.5856 GB, free: 87.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.7478, allocations: 4 kB / 0.5857 GB, free: 87.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.7488, allocations: 243.7 kB / 0.5859 GB, free: 86.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003312/0.7521, allocations: 1.119 MB / 0.587 GB, free: 85.81 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.7523, allocations: 28 kB / 0.587 GB, free: 85.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006754/0.759, allocations: 6.181 MB / 0.593 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.759, allocations: 4.062 kB / 0.593 GB, free: 79.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007988/0.767, allocations: 5.766 MB / 0.5987 GB, free: 73.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/0.7675, allocations: 361.2 kB / 0.599 GB, free: 73.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000301/0.7679, allocations: 28 kB / 0.599 GB, free: 73.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.7691, allocations: 95.88 kB / 0.5991 GB, free: 73.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.7693, allocations: 92.81 kB / 0.5992 GB, free: 73.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.7694, allocations: 51.98 kB / 0.5993 GB, free: 73.19 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00232/0.7718, allocations: 2.138 MB / 0.6014 GB, free: 71.06 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7718, allocations: 0 / 0.6014 GB, free: 71.06 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003428/0.7752, allocations: 0.8978 MB / 0.6022 GB, free: 70.17 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.0003073/0.7755, allocations: 170.9 kB / 0.6024 GB, free: 70.01 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005596/0.7811, allocations: 4.822 MB / 0.6071 GB, free: 65.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.7811, allocations: 3.094 kB / 0.6071 GB, free: 65.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.783, allocations: 1.554 MB / 0.6086 GB, free: 63.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.7846, allocations: 352.4 kB / 0.609 GB, free: 63.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.7946, allocations: 8.135 MB / 0.6169 GB, free: 55.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/0.7967, allocations: 2.854 MB / 0.6197 GB, free: 52.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003004/0.7997, allocations: 1.696 MB / 0.6214 GB, free: 50.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.8002, allocations: 211.4 kB / 0.6216 GB, free: 50.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.323e-06/0.8002, allocations: 4 kB / 0.6216 GB, free: 50.35 MB / 462.1 MB Notification: Performance of Templates: time 0.04494/0.8452, allocations: 30.94 MB / 0.6518 GB, free: 19.6 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