Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 184.3 kB / 8.481 MB, free: 1.863 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.114/1.114, allocations: 205.2 MB / 214.1 MB, free: 5.172 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.0008688/0.0008686, allocations: 86.83 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1481/0.149, allocations: 52.98 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06037/0.2094, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.4179, allocations: 91.48 MB / 454.1 MB, free: 8.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.4182, allocations: 86.33 kB / 454.2 MB, free: 8.422 MB / 314.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.2209/0.639, allocations: 84.32 MB / 0.5259 GB, free: 4.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.6391, allocations: 8 kB / 0.5259 GB, free: 4.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02502/0.6641, allocations: 6.242 MB / 0.532 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01393/0.6781, allocations: 5.905 MB / 0.5378 GB, free: 8.039 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.6783, allocations: 119.9 kB / 0.5379 GB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.6795, allocations: 207.9 kB / 0.5381 GB, free: 7.719 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008306/0.6878, allocations: 5.445 MB / 0.5434 GB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.6979, allocations: 8.379 MB / 0.5516 GB, free: 8.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001238/0.6981, allocations: 67.36 kB / 0.5516 GB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004048/0.6985, allocations: 24 kB / 0.5517 GB, free: 8.887 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001032/0.6995, allocations: 0.9661 MB / 0.5526 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1393/0.8388, allocations: 41.83 MB / 0.5935 GB, free: 119.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002944/0.8418, allocations: 3.227 MB / 0.5966 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/0.8438, allocations: 2.177 MB / 0.5987 GB, free: 119.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007236/0.851, allocations: 6.39 MB / 0.605 GB, free: 117.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.851, allocations: 53.91 kB / 0.605 GB, free: 117.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=154): time 3.987e-06/0.8511, allocations: 0 / 0.605 GB, free: 117.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=184): time 0.03197/0.883, allocations: 17.28 MB / 0.6219 GB, free: 114.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.8831, allocations: 259.7 kB / 0.6221 GB, free: 114.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/0.8865, allocations: 3.066 MB / 0.6251 GB, free: 113.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.8867, allocations: 28.89 kB / 0.6252 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009256/0.8876, allocations: 2.61 MB / 0.6277 GB, free: 112 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004407/0.8881, allocations: 0.6814 MB / 0.6284 GB, free: 111.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.8883, allocations: 0 / 0.6284 GB, free: 111.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.8885, allocations: 0.5428 MB / 0.6289 GB, free: 111.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.8908, allocations: 2.024 MB / 0.6309 GB, free: 110.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003203/0.894, allocations: 5.367 MB / 0.6361 GB, free: 105.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003307/0.8973, allocations: 3.292 MB / 0.6393 GB, free: 104.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.689e-05/0.8974, allocations: 34.5 kB / 0.6394 GB, free: 104.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01178/0.9092, allocations: 7.695 MB / 0.6469 GB, free: 102.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.9092, allocations: 4.062 kB / 0.6469 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/0.9094, allocations: 119 kB / 0.647 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003698/0.9131, allocations: 1.342 MB / 0.6483 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003701/0.9168, allocations: 1.251 MB / 0.6495 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009649/0.9265, allocations: 7.503 MB / 0.6569 GB, free: 98.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003854/0.9304, allocations: 179.7 kB / 0.657 GB, free: 98.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000424/0.9308, allocations: 342 kB / 0.6574 GB, free: 98.17 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.0006092/0.9314, allocations: 401.7 kB / 0.6577 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004104/0.9319, allocations: 328 kB / 0.6581 GB, free: 97.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006545/0.9384, allocations: 3.768 MB / 0.6617 GB, free: 95.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.335e-05/0.9385, allocations: 16 kB / 0.6618 GB, free: 95.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.9385, allocations: 8 kB / 0.6618 GB, free: 95.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.9385, allocations: 7.781 kB / 0.6618 GB, free: 95.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.9506, allocations: 7.873 MB / 0.6695 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.9506, allocations: 4 kB / 0.6695 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.9518, allocations: 235.3 kB / 0.6697 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/0.9553, allocations: 1.151 MB / 0.6708 GB, free: 88.13 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.9554, allocations: 4 kB / 0.6708 GB, free: 88.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008458/0.9639, allocations: 6.774 MB / 0.6774 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.9639, allocations: 0 / 0.6774 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008556/0.9725, allocations: 6.618 MB / 0.6839 GB, free: 76.38 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01078/0.9833, allocations: 9.165 MB / 0.6928 GB, free: 68.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.9847, allocations: 0.6429 MB / 0.6935 GB, free: 67.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007427/0.9854, allocations: 7.234 kB / 0.6935 GB, free: 67.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.9871, allocations: 55.64 kB / 0.6935 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.9874, allocations: 80.23 kB / 0.6936 GB, free: 67.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/0.9875, allocations: 47.47 kB / 0.6937 GB, free: 67.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002818/0.9903, allocations: 2.098 MB / 0.6957 GB, free: 65.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004588/0.9949, allocations: 0.8447 MB / 0.6965 GB, free: 64.86 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.0003673/0.9953, allocations: 146.9 kB / 0.6967 GB, free: 64.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006407/1.002, allocations: 5.065 MB / 0.7016 GB, free: 60.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.002, allocations: 2.844 kB / 0.7016 GB, free: 60.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/1.004, allocations: 1.824 MB / 0.7034 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/1.006, allocations: 374.7 kB / 0.7038 GB, free: 58.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.017, allocations: 7.568 MB / 0.7111 GB, free: 51.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003489/1.021, allocations: 3.427 MB / 0.7145 GB, free: 48.62 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/1.021, allocations: 0 / 0.7145 GB, free: 48.62 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)