Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [: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 trunk/package.mo): time 0.001207/0.001207, allocations: 200.1 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 225.5 MB / 234.4 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009316/0.0009315, allocations: 88.22 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.965e-06/8.005e-06, allocations: 0 / 343.1 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.09911, allocations: 51.48 MB / 394.6 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.247/0.3462, allocations: 93.57 MB / 488.2 MB, free: 56 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.3465, allocations: 84.2 kB / 488.3 MB, free: 16 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.2159/0.5624, allocations: 83.63 MB / 0.5585 GB, free: 1.188 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002468/0.5627, allocations: 75.92 kB / 0.5586 GB, free: 1.113 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01158/0.5743, allocations: 3.944 MB / 0.5624 GB, free: 13.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5743, allocations: 8.031 kB / 0.5624 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02525/0.5996, allocations: 6.249 MB / 0.5685 GB, free: 6.836 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.6132, allocations: 4.921 MB / 0.5733 GB, free: 1.855 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.6134, allocations: 116 kB / 0.5734 GB, free: 1.742 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000959/0.6143, allocations: 215.8 kB / 0.5737 GB, free: 1.531 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.141/0.7554, allocations: 5.44 MB / 0.579 GB, free: 122.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.7679, allocations: 8.385 MB / 0.5872 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.7681, allocations: 57.91 kB / 0.5872 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004689/0.7686, allocations: 25.78 kB / 0.5872 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001066/0.7696, allocations: 0.9604 MB / 0.5882 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.806, allocations: 41.78 MB / 0.629 GB, free: 94.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003369/0.8095, allocations: 3.223 MB / 0.6321 GB, free: 93.17 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.8115, allocations: 2.176 MB / 0.6342 GB, free: 92.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007928/0.8195, allocations: 6.37 MB / 0.6405 GB, free: 88.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.8195, allocations: 49.91 kB / 0.6405 GB, free: 88.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=154): time 4.398e-06/0.8195, allocations: 3.844 kB / 0.6405 GB, free: 88.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=184): time 0.03321/0.8527, allocations: 17.16 MB / 0.6573 GB, free: 82.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.8528, allocations: 249 kB / 0.6575 GB, free: 81.81 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00469/0.8575, allocations: 3.044 MB / 0.6605 GB, free: 80.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003212/0.8579, allocations: 28.7 kB / 0.6605 GB, free: 80.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.859, allocations: 2.608 MB / 0.6631 GB, free: 78.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006753/0.8597, allocations: 0.6766 MB / 0.6637 GB, free: 78.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.86, allocations: 0 / 0.6637 GB, free: 78.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002282/0.8602, allocations: 0.5459 MB / 0.6642 GB, free: 77.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002375/0.8626, allocations: 2.017 MB / 0.6662 GB, free: 77.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003441/0.8661, allocations: 5.362 MB / 0.6715 GB, free: 71.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.8698, allocations: 3.307 MB / 0.6747 GB, free: 70.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.176e-05/0.8699, allocations: 32.66 kB / 0.6747 GB, free: 70.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01239/0.8823, allocations: 7.695 MB / 0.6822 GB, free: 68.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.8823, allocations: 7.562 kB / 0.6822 GB, free: 68.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-05/0.8824, allocations: 119 kB / 0.6824 GB, free: 68.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003579/0.886, allocations: 1.336 MB / 0.6837 GB, free: 68.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003698/0.8897, allocations: 1.247 MB / 0.6849 GB, free: 67.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009476/0.8992, allocations: 7.5 MB / 0.6922 GB, free: 64.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004597/0.9038, allocations: 184.8 kB / 0.6924 GB, free: 64.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007539/0.9046, allocations: 338.5 kB / 0.6927 GB, free: 64.31 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (672): * Single equations (assignments): 668 * 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 {(5,72.0%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007694/0.9054, allocations: 403.4 kB / 0.6931 GB, free: 63.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005788/0.906, allocations: 332.9 kB / 0.6934 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006497/0.9125, allocations: 3.751 MB / 0.6971 GB, free: 61.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.844e-05/0.9125, allocations: 20 kB / 0.6971 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.9126, allocations: 7.469 kB / 0.6971 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.9126, allocations: 12.34 kB / 0.6971 GB, free: 61.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/0.9249, allocations: 7.866 MB / 0.7048 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.9249, allocations: 3.625 kB / 0.7048 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.9261, allocations: 240.2 kB / 0.705 GB, free: 54.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003331/0.9295, allocations: 1.151 MB / 0.7061 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002365/0.9297, allocations: 4 kB / 0.7061 GB, free: 53.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00904/0.9388, allocations: 6.776 MB / 0.7128 GB, free: 47.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.9388, allocations: 7.938 kB / 0.7128 GB, free: 47.67 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009103/0.948, allocations: 6.608 MB / 0.7192 GB, free: 41.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009528/0.9489, allocations: 371.5 kB / 0.7196 GB, free: 41.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005633/0.9495, allocations: 7.422 kB / 0.7196 GB, free: 41.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.9509, allocations: 52.95 kB / 0.7196 GB, free: 41.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.9511, allocations: 81.7 kB / 0.7197 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.9513, allocations: 51.38 kB / 0.7198 GB, free: 41.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002721/0.954, allocations: 2.074 MB / 0.7218 GB, free: 39.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004499/0.9585, allocations: 0.8409 MB / 0.7226 GB, free: 38.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004278/0.959, allocations: 144.7 kB / 0.7227 GB, free: 38.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007335/0.9663, allocations: 5.062 MB / 0.7277 GB, free: 34.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.9663, allocations: 4 kB / 0.7277 GB, free: 34.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/0.969, allocations: 1.822 MB / 0.7295 GB, free: 32.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.971, allocations: 372.5 kB / 0.7298 GB, free: 32.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.985, allocations: 7.541 MB / 0.7372 GB, free: 25.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004588/0.9896, allocations: 3.413 MB / 0.7405 GB, free: 22.66 MB / 442.7 MB Notification: Performance of SimCode: time 1.163e-06/0.9896, allocations: 0 / 0.7405 GB, free: 22.66 MB / 442.7 MB Notification: Performance of Templates: time 0.1994/1.189, allocations: 39.29 MB / 0.7789 GB, free: 114.9 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches