Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",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.001079/0.001079, allocations: 183.7 kB / 8.479 MB, free: 1.875 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.105/1.105, allocations: 205.2 MB / 214.1 MB, free: 5.176 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.0008892/0.0008891, allocations: 80.81 kB / 262.1 MB, free: 5.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.152/0.1529, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06336/0.2163, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/0.4518, allocations: 89.73 MB / 452.4 MB, free: 8.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.4521, allocations: 91.11 kB / 452.5 MB, free: 8.805 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.157/0.609, allocations: 58.39 MB / 0.4989 GB, free: 15.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.6091, allocations: 8 kB / 0.4989 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007878/0.617, allocations: 1.572 MB / 0.5004 GB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008171/0.6252, allocations: 3.338 MB / 0.5037 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.6253, allocations: 76 kB / 0.5038 GB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004291/0.6257, allocations: 143.9 kB / 0.5039 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005758/0.6315, allocations: 4.039 MB / 0.5078 GB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007696/0.6392, allocations: 6.302 MB / 0.514 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.054e-05/0.6393, allocations: 51.53 kB / 0.514 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003037/0.6396, allocations: 24 kB / 0.5141 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009309/0.6405, allocations: 0.7644 MB / 0.5148 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02985/0.6704, allocations: 32.62 MB / 0.5467 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/0.6729, allocations: 2.146 MB / 0.5488 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.6743, allocations: 1.132 MB / 0.5499 GB, free: 9.621 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005302/0.6796, allocations: 3.631 MB / 0.5534 GB, free: 5.859 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.6797, allocations: 46.5 kB / 0.5535 GB, free: 5.805 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 2.865e-06/0.6797, allocations: 0 / 0.5535 GB, free: 5.805 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.01493/0.6946, allocations: 8.165 MB / 0.5614 GB, free: 13.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.6947, allocations: 140.9 kB / 0.5616 GB, free: 13.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.6975, allocations: 2.192 MB / 0.5637 GB, free: 11.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/0.6975, allocations: 29.7 kB / 0.5637 GB, free: 11.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.6987, allocations: 2.046 MB / 0.5657 GB, free: 9.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.699, allocations: 414.9 kB / 0.5661 GB, free: 8.605 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.6991, allocations: 0 / 0.5661 GB, free: 8.605 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003199/0.6995, allocations: 0.5437 MB / 0.5667 GB, free: 8.051 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.7012, allocations: 1.332 MB / 0.568 GB, free: 6.711 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/0.7046, allocations: 4.261 MB / 0.5721 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1041/0.8088, allocations: 2.38 MB / 0.5744 GB, free: 158.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.051e-05/0.8089, allocations: 31.56 kB / 0.5745 GB, free: 158.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.008039/0.8169, allocations: 5.42 MB / 0.5798 GB, free: 158.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.8169, allocations: 7.688 kB / 0.5798 GB, free: 158.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.82e-05/0.817, allocations: 104.1 kB / 0.5799 GB, free: 158.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.8191, allocations: 0.7484 MB / 0.5806 GB, free: 158.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/0.8219, allocations: 1.031 MB / 0.5816 GB, free: 158.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.8263, allocations: 3.917 MB / 0.5854 GB, free: 157.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0028/0.8291, allocations: 184.2 kB / 0.5856 GB, free: 157.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/0.8294, allocations: 285.4 kB / 0.5859 GB, free: 157.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (550): * Single equations (assignments): 546 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004043/0.8298, allocations: 356.9 kB / 0.5862 GB, free: 156.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.8301, allocations: 212 kB / 0.5864 GB, free: 156.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003306/0.8334, allocations: 1.739 MB / 0.5881 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.712e-05/0.8335, allocations: 7.5 kB / 0.5881 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.8335, allocations: 6.469 kB / 0.5881 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.8335, allocations: 6.328 kB / 0.5881 GB, free: 156.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006684/0.8402, allocations: 3.989 MB / 0.592 GB, free: 156.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.8402, allocations: 1.75 kB / 0.592 GB, free: 156.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000635/0.8408, allocations: 129.9 kB / 0.5922 GB, free: 156.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.8427, allocations: 0.5785 MB / 0.5927 GB, free: 156.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.286e-05/0.8428, allocations: 9.25 kB / 0.5927 GB, free: 156.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003805/0.8466, allocations: 3.474 MB / 0.5961 GB, free: 155.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.8467, allocations: 3.719 kB / 0.5961 GB, free: 155.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004619/0.8513, allocations: 3.605 MB / 0.5997 GB, free: 154.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005546/0.8568, allocations: 5.037 MB / 0.6046 GB, free: 153.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006704/0.8575, allocations: 411.9 kB / 0.605 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/0.8578, allocations: 0 / 0.605 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009494/0.8588, allocations: 43.3 kB / 0.605 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.8589, allocations: 50.77 kB / 0.6051 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.859, allocations: 26.09 kB / 0.6051 GB, free: 153.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001843/0.8608, allocations: 1.461 MB / 0.6065 GB, free: 153.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003774/0.8646, allocations: 0.5529 MB / 0.607 GB, free: 153.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002768/0.8649, allocations: 137.3 kB / 0.6072 GB, free: 153 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003596/0.8685, allocations: 3.195 MB / 0.6103 GB, free: 151.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.8685, allocations: 0 / 0.6103 GB, free: 151.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.8696, allocations: 0.8784 MB / 0.6112 GB, free: 151.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008883/0.8706, allocations: 191.3 kB / 0.6113 GB, free: 151.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006261/0.8768, allocations: 4.428 MB / 0.6157 GB, free: 150 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/0.879, allocations: 2.426 MB / 0.618 GB, free: 149 MB / 426.7 MB Notification: Performance of SimCode: time 4.51e-07/0.879, allocations: 0 / 0.618 GB, free: 149 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)