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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 179.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.256/1.256, allocations: 205.2 MB / 214.1 MB, free: 5.145 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008433/0.0008432, allocations: 97.91 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/8.065e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0764/0.07642, allocations: 47.57 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/0.3742, allocations: 98.87 MB / 461.4 MB, free: 6.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.3744, allocations: 88.41 kB / 461.5 MB, free: 6.914 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1906/0.5651, allocations: 73 MB / 0.522 GB, free: 8.355 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001754/0.5653, allocations: 75.94 kB / 0.522 GB, free: 8.281 MB / 378.7 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.009842/0.5751, allocations: 3.46 MB / 0.5254 GB, free: 4.766 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.091e-05/0.5752, allocations: 12.03 kB / 0.5254 GB, free: 4.754 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009817/0.585, allocations: 1.871 MB / 0.5273 GB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.5975, allocations: 3.975 MB / 0.5311 GB, free: 14.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.5977, allocations: 120 kB / 0.5313 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/0.5992, allocations: 215.8 kB / 0.5315 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0104/0.6096, allocations: 5.773 MB / 0.5371 GB, free: 8.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.6238, allocations: 8.728 MB / 0.5456 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001284/0.6239, allocations: 59.41 kB / 0.5457 GB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004709/0.6244, allocations: 28 kB / 0.5457 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001449/0.6259, allocations: 1.056 MB / 0.5467 GB, free: 13.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1787/0.8046, allocations: 44.51 MB / 0.5902 GB, free: 122.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003572/0.8082, allocations: 2.751 MB / 0.5929 GB, free: 121.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.8104, allocations: 1.847 MB / 0.5947 GB, free: 121.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00844/0.8189, allocations: 6.029 MB / 0.6006 GB, free: 120.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.819, allocations: 47.38 kB / 0.6006 GB, free: 120 MB / 426.7 MB Notification: Performance of pre-optimization done (n=151): time 6.452e-06/0.819, allocations: 0 / 0.6006 GB, free: 120 MB / 426.7 MB Notification: Performance of matching and sorting (n=166): time 0.03089/0.8499, allocations: 14.13 MB / 0.6144 GB, free: 117.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.85, allocations: 143.6 kB / 0.6146 GB, free: 117.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004192/0.8542, allocations: 2.658 MB / 0.6171 GB, free: 117 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002888/0.8545, allocations: 28.3 kB / 0.6172 GB, free: 117 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.8558, allocations: 2.649 MB / 0.6198 GB, free: 115.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005365/0.8563, allocations: 0.6232 MB / 0.6204 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.8565, allocations: 2.078 kB / 0.6204 GB, free: 115.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000229/0.8567, allocations: 0.5461 MB / 0.6209 GB, free: 114.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/0.8589, allocations: 1.854 MB / 0.6227 GB, free: 114.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003472/0.8624, allocations: 5.358 MB / 0.6279 GB, free: 110.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/0.8659, allocations: 3.124 MB / 0.631 GB, free: 109.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.012e-05/0.866, allocations: 36.25 kB / 0.631 GB, free: 109.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.01337/0.8793, allocations: 7.318 MB / 0.6382 GB, free: 107.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.8794, allocations: 5.625 kB / 0.6382 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000145/0.8796, allocations: 132.3 kB / 0.6383 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003929/0.8835, allocations: 1.216 MB / 0.6395 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004604/0.8881, allocations: 1.303 MB / 0.6408 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007735/0.8959, allocations: 5.715 MB / 0.6464 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005193/0.9011, allocations: 206.9 kB / 0.6466 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001389/0.9025, allocations: 353.9 kB / 0.6469 GB, free: 104.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001821/0.9044, allocations: 417.9 kB / 0.6473 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000755/0.9051, allocations: 283.3 kB / 0.6476 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007133/0.9123, allocations: 3.143 MB / 0.6506 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.975e-05/0.9124, allocations: 15.34 kB / 0.6506 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/0.9124, allocations: 5.281 kB / 0.6506 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.338e-05/0.9124, allocations: 9.094 kB / 0.6507 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.9276, allocations: 6.728 MB / 0.6572 GB, free: 98.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/0.9276, allocations: 0 / 0.6572 GB, free: 98.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.9289, allocations: 225.2 kB / 0.6574 GB, free: 98.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/0.9325, allocations: 1.019 MB / 0.6584 GB, free: 97.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002276/0.9328, allocations: 15.03 kB / 0.6584 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00709/0.9399, allocations: 5.373 MB / 0.6637 GB, free: 92.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.9399, allocations: 0 / 0.6637 GB, free: 92.88 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008264/0.9482, allocations: 5.587 MB / 0.6692 GB, free: 88.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001336/0.9496, allocations: 0.5449 MB / 0.6697 GB, free: 87.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003814/0.9499, allocations: 3.844 kB / 0.6697 GB, free: 87.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.9513, allocations: 54.66 kB / 0.6697 GB, free: 87.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.9515, allocations: 73.97 kB / 0.6698 GB, free: 87.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.9516, allocations: 47.67 kB / 0.6699 GB, free: 87.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002321/0.9539, allocations: 1.748 MB / 0.6716 GB, free: 85.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005414/0.9594, allocations: 0.7814 MB / 0.6723 GB, free: 85.13 MB / 426.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004551/0.9598, allocations: 158.5 kB / 0.6725 GB, free: 84.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006668/0.9665, allocations: 4.508 MB / 0.6769 GB, free: 80.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/0.9665, allocations: 0 / 0.6769 GB, free: 80.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.9685, allocations: 1.457 MB / 0.6783 GB, free: 79.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.9703, allocations: 249.1 kB / 0.6785 GB, free: 79.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.9849, allocations: 6.632 MB / 0.685 GB, free: 73.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/0.9883, allocations: 3.172 MB / 0.6881 GB, free: 70.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.663e-06/0.9884, allocations: 3.5 kB / 0.6881 GB, free: 70.96 MB / 426.7 MB Notification: Performance of Templates: time 0.05883/1.047, allocations: 32.69 MB / 0.72 GB, free: 41.27 MB / 426.7 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