Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00115/0.00115, allocations: 205.6 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009134/0.0009134, allocations: 97.19 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09293/0.09387, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.1763, allocations: 51.47 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.216/0.3923, allocations: 91.69 MB / 486.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.3926, allocations: 85.5 kB / 486.5 MB, free: 1.555 MB / 346.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.158/0.5505, allocations: 59.85 MB / 0.5335 GB, free: 10.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.5506, allocations: 8 kB / 0.5335 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007502/0.5581, allocations: 1.576 MB / 0.5351 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005947/0.564, allocations: 2.637 MB / 0.5376 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.472e-05/0.5642, allocations: 83.84 kB / 0.5377 GB, free: 6.352 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005049/0.5647, allocations: 136 kB / 0.5379 GB, free: 6.219 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005601/0.5703, allocations: 4.038 MB / 0.5418 GB, free: 2.176 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007567/0.5779, allocations: 6.316 MB / 0.548 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.06e-05/0.578, allocations: 47.53 kB / 0.548 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/0.5783, allocations: 24 kB / 0.548 GB, free: 11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009032/0.5792, allocations: 0.7654 MB / 0.5488 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1382/0.7174, allocations: 32.59 MB / 0.5806 GB, free: 125 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.7193, allocations: 2.148 MB / 0.5827 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.7204, allocations: 1.133 MB / 0.5838 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004399/0.7248, allocations: 3.63 MB / 0.5874 GB, free: 123.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.7249, allocations: 43.94 kB / 0.5874 GB, free: 123.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=92): time 2.635e-06/0.7249, allocations: 0 / 0.5874 GB, free: 123.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=101): time 0.01255/0.7374, allocations: 8.087 MB / 0.5953 GB, free: 121.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.7375, allocations: 147.4 kB / 0.5954 GB, free: 121.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.7396, allocations: 2.185 MB / 0.5976 GB, free: 120.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.7397, allocations: 25.7 kB / 0.5976 GB, free: 120.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007053/0.7404, allocations: 2.043 MB / 0.5996 GB, free: 119.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.7406, allocations: 411.9 kB / 0.6 GB, free: 119.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.7408, allocations: 0 / 0.6 GB, free: 119.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.741, allocations: 0.5491 MB / 0.6005 GB, free: 119.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.7425, allocations: 1.333 MB / 0.6018 GB, free: 119.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/0.7448, allocations: 4.258 MB / 0.606 GB, free: 115.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.7472, allocations: 2.384 MB / 0.6083 GB, free: 115.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-05/0.7473, allocations: 34.22 kB / 0.6083 GB, free: 115.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.007626/0.7549, allocations: 5.428 MB / 0.6136 GB, free: 114.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.7549, allocations: 10.94 kB / 0.6137 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-05/0.755, allocations: 103.6 kB / 0.6138 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/0.7571, allocations: 0.752 MB / 0.6145 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002699/0.7598, allocations: 1.026 MB / 0.6155 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004308/0.7641, allocations: 3.912 MB / 0.6193 GB, free: 111.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/0.7667, allocations: 186.9 kB / 0.6195 GB, free: 111.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003271/0.767, allocations: 292.2 kB / 0.6198 GB, free: 111.8 MB / 442.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.000479/0.7675, allocations: 360.1 kB / 0.6201 GB, free: 111.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002562/0.7678, allocations: 207.4 kB / 0.6203 GB, free: 111.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.7712, allocations: 1.732 MB / 0.622 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.811e-05/0.7713, allocations: 9.062 kB / 0.622 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.7713, allocations: 6.656 kB / 0.622 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.7713, allocations: 8.656 kB / 0.622 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006991/0.7783, allocations: 3.975 MB / 0.6259 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.7783, allocations: 2.344 kB / 0.6259 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006686/0.779, allocations: 130 kB / 0.626 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.781, allocations: 0.5785 MB / 0.6266 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.3e-05/0.7811, allocations: 7.188 kB / 0.6266 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003829/0.7849, allocations: 3.474 MB / 0.63 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.7849, allocations: 0 / 0.63 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004714/0.7896, allocations: 3.607 MB / 0.6335 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005633/0.7953, allocations: 5.041 MB / 0.6384 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003342/0.7956, allocations: 269.5 kB / 0.6387 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.7959, allocations: 3.25 kB / 0.6387 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009121/0.7968, allocations: 40.42 kB / 0.6387 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.797, allocations: 43.62 kB / 0.6388 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.693e-05/0.7971, allocations: 31.19 kB / 0.6388 GB, free: 103.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001648/0.7987, allocations: 1.454 MB / 0.6402 GB, free: 103.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003534/0.8023, allocations: 0.5598 MB / 0.6408 GB, free: 103.1 MB / 442.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.0003288/0.8026, allocations: 140.5 kB / 0.6409 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003745/0.8063, allocations: 3.201 MB / 0.644 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8064, allocations: 0 / 0.644 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009868/0.8074, allocations: 0.8804 MB / 0.6449 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008366/0.8082, allocations: 188.9 kB / 0.6451 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006327/0.8145, allocations: 4.412 MB / 0.6494 GB, free: 99.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/0.8167, allocations: 2.421 MB / 0.6517 GB, free: 98.91 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/0.8168, allocations: 0 / 0.6517 GB, free: 98.91 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)