Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 183.4 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009509/0.000951, allocations: 106.4 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08676/0.08775, allocations: 55.81 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.2634, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09332/0.3568, allocations: 92.91 MB / 479.9 MB, free: 9.828 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.3571, allocations: 87.89 kB / 480 MB, free: 9.742 MB / 362.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.3453/0.7024, allocations: 85.35 MB / 0.5521 GB, free: 56.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.7025, allocations: 8 kB / 0.5521 GB, free: 56.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02433/0.7268, allocations: 6.242 MB / 0.5582 GB, free: 50.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01305/0.7399, allocations: 5.596 MB / 0.5637 GB, free: 44.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.74, allocations: 115.9 kB / 0.5638 GB, free: 44.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.7413, allocations: 211.9 kB / 0.564 GB, free: 44.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007641/0.7489, allocations: 5.445 MB / 0.5693 GB, free: 38.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009709/0.7587, allocations: 8.388 MB / 0.5775 GB, free: 29.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.7588, allocations: 59.47 kB / 0.5776 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000419/0.7593, allocations: 28 kB / 0.5776 GB, free: 29.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000955/0.7602, allocations: 0.9583 MB / 0.5785 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.7966, allocations: 41.77 MB / 0.6193 GB, free: 1.578 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003988/0.8007, allocations: 3.223 MB / 0.6225 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002546/0.8032, allocations: 2.173 MB / 0.6246 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009827/0.8131, allocations: 6.365 MB / 0.6308 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.8131, allocations: 55.56 kB / 0.6308 GB, free: 5.328 MB / 410.7 MB Notification: Performance of pre-optimization done (n=154): time 5.932e-06/0.8131, allocations: 0 / 0.6308 GB, free: 5.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=184): time 0.03748/0.8506, allocations: 17.15 MB / 0.6476 GB, free: 4.055 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.8508, allocations: 248.6 kB / 0.6478 GB, free: 3.758 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004497/0.8553, allocations: 3.044 MB / 0.6508 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.8556, allocations: 25.7 kB / 0.6508 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1099/0.9654, allocations: 2.601 MB / 0.6534 GB, free: 138.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006873/0.9662, allocations: 0.6871 MB / 0.654 GB, free: 138.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/0.9665, allocations: 3.844 kB / 0.654 GB, free: 138.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.9667, allocations: 0.5411 MB / 0.6546 GB, free: 137.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002299/0.969, allocations: 2.018 MB / 0.6565 GB, free: 137.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003381/0.9724, allocations: 5.366 MB / 0.6618 GB, free: 133.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003673/0.9761, allocations: 3.288 MB / 0.665 GB, free: 133.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.553e-05/0.9761, allocations: 36.12 kB / 0.665 GB, free: 133.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01267/0.9888, allocations: 7.705 MB / 0.6726 GB, free: 133 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.9889, allocations: 7.75 kB / 0.6726 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/0.989, allocations: 118.1 kB / 0.6727 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004005/0.993, allocations: 1.345 MB / 0.674 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004097/0.9971, allocations: 1.249 MB / 0.6752 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/1.008, allocations: 7.501 MB / 0.6825 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/1.012, allocations: 177.6 kB / 0.6827 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005342/1.012, allocations: 344.6 kB / 0.683 GB, free: 131.4 MB / 426.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.0006764/1.013, allocations: 404 kB / 0.6834 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004326/1.013, allocations: 335.5 kB / 0.6837 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006824/1.02, allocations: 3.752 MB / 0.6874 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/1.02, allocations: 18.66 kB / 0.6874 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/1.02, allocations: 7.188 kB / 0.6874 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/1.02, allocations: 13.02 kB / 0.6874 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/1.033, allocations: 7.856 MB / 0.6951 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.033, allocations: 3.125 kB / 0.6951 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/1.035, allocations: 248.1 kB / 0.6954 GB, free: 129.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003694/1.038, allocations: 1.139 MB / 0.6965 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/1.038, allocations: 14.59 kB / 0.6965 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009717/1.048, allocations: 6.766 MB / 0.7031 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.048, allocations: 2.188 kB / 0.7031 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009619/1.058, allocations: 6.617 MB / 0.7096 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01149/1.069, allocations: 9.153 MB / 0.7185 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009136/1.07, allocations: 373.3 kB / 0.7188 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00052/1.071, allocations: 4 kB / 0.7189 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/1.072, allocations: 51.45 kB / 0.7189 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/1.073, allocations: 82.38 kB / 0.719 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/1.073, allocations: 50.27 kB / 0.719 GB, free: 116.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00252/1.075, allocations: 2.074 MB / 0.7211 GB, free: 115.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004451/1.08, allocations: 0.8495 MB / 0.7219 GB, free: 114.2 MB / 426.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.000385/1.08, allocations: 146.4 kB / 0.722 GB, free: 114.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007024/1.087, allocations: 5.064 MB / 0.727 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.087, allocations: 0 / 0.727 GB, free: 109.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002698/1.09, allocations: 1.825 MB / 0.7287 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/1.092, allocations: 372 kB / 0.7291 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/1.105, allocations: 7.557 MB / 0.7365 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003952/1.109, allocations: 3.413 MB / 0.7398 GB, free: 98.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/1.109, allocations: 0 / 0.7398 GB, free: 98.18 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)