Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",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.001053/0.001053, allocations: 182.5 kB / 8.131 MB, free: 2.219 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.184/1.184, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009935/0.0009935, allocations: 98.41 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08731/0.08833, allocations: 55.83 MB / 336.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.2617, allocations: 50.38 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09594/0.3577, allocations: 97.76 MB / 484.8 MB, free: 5.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.358, allocations: 92.72 kB / 484.9 MB, free: 4.945 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.3516/0.7095, allocations: 95.05 MB / 0.5663 GB, free: 42.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.7096, allocations: 8 kB / 0.5663 GB, free: 42.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02479/0.7344, allocations: 6.334 MB / 0.5725 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01274/0.7472, allocations: 5.864 MB / 0.5782 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.7473, allocations: 143.9 kB / 0.5784 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.7484, allocations: 255.9 kB / 0.5786 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008295/0.7567, allocations: 6.193 MB / 0.5847 GB, free: 23.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0114/0.7681, allocations: 9.375 MB / 0.5938 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/0.7682, allocations: 59.38 kB / 0.5939 GB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005627/0.7688, allocations: 32 kB / 0.5939 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001022/0.7698, allocations: 1.046 MB / 0.5949 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04054/0.8104, allocations: 44.46 MB / 0.6383 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003756/0.8142, allocations: 3.268 MB / 0.6415 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/0.8166, allocations: 2.217 MB / 0.6437 GB, free: 8.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009342/0.826, allocations: 6.862 MB / 0.6504 GB, free: 1.562 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.826, allocations: 55.56 kB / 0.6504 GB, free: 1.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 3.917e-06/0.826, allocations: 0 / 0.6504 GB, free: 1.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=199): time 0.1453/0.9714, allocations: 18.98 MB / 0.669 GB, free: 128 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.9715, allocations: 261.4 kB / 0.6692 GB, free: 127.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003803/0.9753, allocations: 3.223 MB / 0.6724 GB, free: 127.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001734/0.9755, allocations: 25.7 kB / 0.6724 GB, free: 127.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.9766, allocations: 2.923 MB / 0.6753 GB, free: 125.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005318/0.9771, allocations: 0.739 MB / 0.676 GB, free: 125.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.9773, allocations: 0 / 0.676 GB, free: 125.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.9776, allocations: 0.5591 MB / 0.6765 GB, free: 125 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002492/0.9801, allocations: 2.171 MB / 0.6786 GB, free: 124.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00351/0.9836, allocations: 5.738 MB / 0.6843 GB, free: 120.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003771/0.9874, allocations: 3.515 MB / 0.6877 GB, free: 120.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.17e-05/0.9874, allocations: 39.66 kB / 0.6877 GB, free: 120.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.01361/1.001, allocations: 8.626 MB / 0.6961 GB, free: 119.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.001, allocations: 7.188 kB / 0.6962 GB, free: 119.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.001, allocations: 126.1 kB / 0.6963 GB, free: 119.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005629/1.007, allocations: 1.899 MB / 0.6981 GB, free: 119.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003685/1.011, allocations: 1.289 MB / 0.6994 GB, free: 119.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/1.028, allocations: 13.63 MB / 0.7127 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004438/1.033, allocations: 192.3 kB / 0.7129 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006604/1.033, allocations: 372 kB / 0.7132 GB, free: 113 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (697): * Single equations (assignments): 691 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 33,(3,88.9%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0008189/1.034, allocations: 428.2 kB / 0.7136 GB, free: 112.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005892/1.035, allocations: 348.6 kB / 0.714 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007198/1.042, allocations: 3.998 MB / 0.7179 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.729e-05/1.042, allocations: 24.84 kB / 0.7179 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.042, allocations: 13.75 kB / 0.7179 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/1.042, allocations: 10.73 kB / 0.7179 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01371/1.056, allocations: 8.646 MB / 0.7264 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/1.056, allocations: 4 kB / 0.7264 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/1.057, allocations: 261.2 kB / 0.7266 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003512/1.061, allocations: 1.155 MB / 0.7278 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/1.061, allocations: 4 kB / 0.7278 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008726/1.07, allocations: 6.801 MB / 0.7344 GB, free: 99.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.07, allocations: 0 / 0.7344 GB, free: 99.87 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009075/1.079, allocations: 7.004 MB / 0.7412 GB, free: 93.73 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01121/1.09, allocations: 9.727 MB / 0.7507 GB, free: 85.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006748/1.091, allocations: 384 kB / 0.7511 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005255/1.091, allocations: 4 kB / 0.7511 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/1.093, allocations: 54.69 kB / 0.7512 GB, free: 84.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/1.093, allocations: 87.34 kB / 0.7512 GB, free: 84.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001608/1.093, allocations: 52 kB / 0.7513 GB, free: 84.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002725/1.096, allocations: 2.193 MB / 0.7534 GB, free: 82.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005145/1.101, allocations: 0.9465 MB / 0.7544 GB, free: 81.74 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 (145): * Single equations (assignments): 141 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003743/1.101, allocations: 160.1 kB / 0.7545 GB, free: 81.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0074/1.109, allocations: 5.722 MB / 0.7601 GB, free: 76.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.109, allocations: 0 / 0.7601 GB, free: 76.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003171/1.112, allocations: 2.002 MB / 0.7621 GB, free: 74.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/1.114, allocations: 466.6 kB / 0.7625 GB, free: 74.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/1.128, allocations: 8.449 MB / 0.7707 GB, free: 66.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004309/1.132, allocations: 3.794 MB / 0.7745 GB, free: 63.72 MB / 426.7 MB Notification: Performance of SimCode: time 6.52e-07/1.132, allocations: 0 / 0.7745 GB, free: 63.72 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)