Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002484/0.002484, allocations: 178.2 kB / 8.153 MB, free: 2.102 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.773/1.773, allocations: 205.2 MB / 213.7 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001281/0.001281, allocations: 95.94 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.731e-05/1.748e-05, allocations: 7.938 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2424, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1832/0.4257, allocations: 91.48 MB / 453.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.426, allocations: 83.95 kB / 453.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4985/0.9246, allocations: 80.33 MB / 0.5212 GB, free: 93.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002943/0.9249, allocations: 73.38 kB / 0.5213 GB, free: 93.19 MB / 394.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.0161/0.941, allocations: 3.906 MB / 0.5251 GB, free: 91.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.9411, allocations: 7.594 kB / 0.5251 GB, free: 91.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04485/0.986, allocations: 6.248 MB / 0.5312 GB, free: 91.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0232/1.009, allocations: 5.92 MB / 0.537 GB, free: 90.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/1.01, allocations: 115.1 kB / 0.5371 GB, free: 90.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002122/1.012, allocations: 214.9 kB / 0.5373 GB, free: 90.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01592/1.028, allocations: 5.447 MB / 0.5426 GB, free: 88.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02498/1.053, allocations: 8.377 MB / 0.5508 GB, free: 84.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003097/1.053, allocations: 61.84 kB / 0.5509 GB, free: 84.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001407/1.054, allocations: 26.59 kB / 0.5509 GB, free: 84.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002234/1.057, allocations: 0.9569 MB / 0.5518 GB, free: 84.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06452/1.121, allocations: 41.85 MB / 0.5927 GB, free: 43.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/1.128, allocations: 3.222 MB / 0.5958 GB, free: 40 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004099/1.132, allocations: 2.178 MB / 0.598 GB, free: 37.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/1.147, allocations: 6.39 MB / 0.6042 GB, free: 31.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/1.147, allocations: 51.5 kB / 0.6043 GB, free: 31.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=154): time 5.49e-06/1.147, allocations: 0.75 kB / 0.6043 GB, free: 31.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=184): time 0.06452/1.212, allocations: 17.29 MB / 0.6211 GB, free: 13.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/1.212, allocations: 248.6 kB / 0.6214 GB, free: 13.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007685/1.219, allocations: 3.072 MB / 0.6244 GB, free: 10.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005318/1.22, allocations: 29.7 kB / 0.6244 GB, free: 10.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001897/1.222, allocations: 2.542 MB / 0.6269 GB, free: 7.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001229/1.223, allocations: 0.6785 MB / 0.6276 GB, free: 7.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006303/1.224, allocations: 3.938 kB / 0.6276 GB, free: 7.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003706/1.224, allocations: 0.5464 MB / 0.6281 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005193/1.229, allocations: 2.018 MB / 0.6301 GB, free: 4.508 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008302/1.238, allocations: 5.363 MB / 0.6353 GB, free: 13.44 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009041/1.247, allocations: 3.291 MB / 0.6385 GB, free: 10.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/1.247, allocations: 32 kB / 0.6385 GB, free: 10.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.02811/1.275, allocations: 7.594 MB / 0.646 GB, free: 2.523 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/1.275, allocations: 8.031 kB / 0.646 GB, free: 2.516 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002299/1.275, allocations: 120 kB / 0.6461 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007432/1.283, allocations: 1.264 MB / 0.6473 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.15/1.433, allocations: 1.251 MB / 0.6485 GB, free: 136.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02324/1.456, allocations: 7.678 MB / 0.656 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005343/1.462, allocations: 175.6 kB / 0.6562 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.463, allocations: 344.6 kB / 0.6565 GB, free: 135.1 MB / 410.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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001041/1.464, allocations: 327.3 kB / 0.6568 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008771/1.465, allocations: 329.9 kB / 0.6572 GB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/1.478, allocations: 3.762 MB / 0.6608 GB, free: 135 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/1.478, allocations: 19.69 kB / 0.6609 GB, free: 135 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/1.478, allocations: 6.844 kB / 0.6609 GB, free: 135 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-05/1.478, allocations: 9.188 kB / 0.6609 GB, free: 135 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02585/1.504, allocations: 7.871 MB / 0.6686 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.844e-05/1.504, allocations: 0 / 0.6686 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002724/1.506, allocations: 242.7 kB / 0.6688 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006996/1.514, allocations: 1.143 MB / 0.6699 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004885/1.514, allocations: 9.953 kB / 0.6699 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/1.531, allocations: 6.775 MB / 0.6765 GB, free: 131.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.904e-06/1.531, allocations: 3.969 kB / 0.6765 GB, free: 131.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01818/1.55, allocations: 6.614 MB / 0.683 GB, free: 129.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/1.552, allocations: 0.6377 MB / 0.6836 GB, free: 128.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/1.553, allocations: 2.781 kB / 0.6836 GB, free: 128.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003241/1.557, allocations: 61.83 kB / 0.6837 GB, free: 128.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/1.557, allocations: 84.55 kB / 0.6838 GB, free: 128.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/1.557, allocations: 43.69 kB / 0.6838 GB, free: 128.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005548/1.563, allocations: 2.096 MB / 0.6858 GB, free: 127.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006985/1.57, allocations: 0.8427 MB / 0.6867 GB, free: 127.9 MB / 410.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.0008936/1.571, allocations: 142.5 kB / 0.6868 GB, free: 127.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01255/1.584, allocations: 4.905 MB / 0.6916 GB, free: 126.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/1.584, allocations: 0 / 0.6916 GB, free: 126.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006002/1.59, allocations: 1.83 MB / 0.6934 GB, free: 125.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003916/1.594, allocations: 378.1 kB / 0.6937 GB, free: 125.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0269/1.621, allocations: 7.989 MB / 0.7015 GB, free: 122.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009029/1.63, allocations: 3.45 MB / 0.7049 GB, free: 120.5 MB / 410.7 MB Notification: Performance of SimCode: time 2.494e-06/1.63, allocations: 0 / 0.7049 GB, free: 120.5 MB / 410.7 MB Notification: Performance of Templates: time 0.1356/1.765, allocations: 71.1 MB / 0.7743 GB, free: 57.11 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches