Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001072/0.001072, allocations: 202.3 kB / 8.541 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.167/1.167, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009061/0.0009063, allocations: 94.31 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08966/0.0906, allocations: 56.91 MB / 343.2 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07976/0.1704, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.3856, allocations: 93.56 MB / 488.3 MB, free: 52 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/0.3858, allocations: 87.95 kB / 488.4 MB, free: 8 kB / 346.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.2146/0.6004, allocations: 87.65 MB / 0.5625 GB, free: 13.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.6005, allocations: 12 kB / 0.5625 GB, free: 13.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02331/0.6238, allocations: 6.249 MB / 0.5686 GB, free: 6.883 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/0.6341, allocations: 4.917 MB / 0.5734 GB, free: 1.906 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.6342, allocations: 120 kB / 0.5735 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005576/0.6348, allocations: 219.9 kB / 0.5738 GB, free: 1.574 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1146/0.7494, allocations: 5.439 MB / 0.5791 GB, free: 132 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008102/0.7576, allocations: 8.379 MB / 0.5872 GB, free: 129.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001159/0.7577, allocations: 64.8 kB / 0.5873 GB, free: 129.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003824/0.7581, allocations: 25.75 kB / 0.5873 GB, free: 129.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008302/0.7589, allocations: 0.9611 MB / 0.5883 GB, free: 129.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02916/0.7881, allocations: 41.78 MB / 0.6291 GB, free: 103.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002882/0.791, allocations: 3.217 MB / 0.6322 GB, free: 102.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001869/0.7929, allocations: 2.177 MB / 0.6343 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007135/0.8001, allocations: 6.365 MB / 0.6406 GB, free: 97.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.8001, allocations: 58.25 kB / 0.6406 GB, free: 97.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=154): time 3.366e-06/0.8001, allocations: 0 / 0.6406 GB, free: 97.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=184): time 0.03137/0.8315, allocations: 17.16 MB / 0.6574 GB, free: 91.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.8316, allocations: 253 kB / 0.6576 GB, free: 90.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003624/0.8352, allocations: 3.043 MB / 0.6606 GB, free: 89.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.8353, allocations: 28.92 kB / 0.6606 GB, free: 89.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009303/0.8363, allocations: 2.605 MB / 0.6632 GB, free: 87.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000431/0.8367, allocations: 0.6832 MB / 0.6638 GB, free: 87.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.8369, allocations: 0 / 0.6638 GB, free: 87.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.8372, allocations: 0.5427 MB / 0.6643 GB, free: 86.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.8394, allocations: 2.017 MB / 0.6663 GB, free: 86.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/0.8427, allocations: 5.364 MB / 0.6716 GB, free: 80.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/0.846, allocations: 3.295 MB / 0.6748 GB, free: 79.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.949e-05/0.846, allocations: 35.78 kB / 0.6748 GB, free: 79.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01101/0.8571, allocations: 7.702 MB / 0.6823 GB, free: 77.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.8571, allocations: 10.59 kB / 0.6823 GB, free: 77.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-05/0.8572, allocations: 119 kB / 0.6825 GB, free: 77.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003669/0.8609, allocations: 1.334 MB / 0.6838 GB, free: 77.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003463/0.8643, allocations: 1.249 MB / 0.685 GB, free: 76.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009467/0.8738, allocations: 7.493 MB / 0.6923 GB, free: 73.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003331/0.8772, allocations: 184 kB / 0.6925 GB, free: 73.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004991/0.8777, allocations: 345.2 kB / 0.6928 GB, free: 73.24 MB / 442.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.0005438/0.8782, allocations: 401 kB / 0.6932 GB, free: 72.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/0.8786, allocations: 331.8 kB / 0.6935 GB, free: 72.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006404/0.885, allocations: 3.755 MB / 0.6972 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/0.8851, allocations: 20 kB / 0.6972 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.8851, allocations: 4 kB / 0.6972 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.8851, allocations: 11.12 kB / 0.6972 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.8972, allocations: 7.868 MB / 0.7049 GB, free: 63.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.8972, allocations: 0 / 0.7049 GB, free: 63.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.8985, allocations: 245.2 kB / 0.7051 GB, free: 62.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003612/0.9021, allocations: 1.146 MB / 0.7062 GB, free: 62.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.9022, allocations: 8.609 kB / 0.7062 GB, free: 62.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008779/0.911, allocations: 6.768 MB / 0.7129 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.9111, allocations: 4 kB / 0.7129 GB, free: 56.04 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00859/0.9196, allocations: 6.623 MB / 0.7193 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01035/0.93, allocations: 9.153 MB / 0.7283 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005184/0.9305, allocations: 371.5 kB / 0.7286 GB, free: 41.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004574/0.931, allocations: 3.516 kB / 0.7286 GB, free: 41.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.9323, allocations: 61.16 kB / 0.7287 GB, free: 41.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.9326, allocations: 82.28 kB / 0.7288 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.9327, allocations: 46.5 kB / 0.7288 GB, free: 41.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002468/0.9352, allocations: 2.076 MB / 0.7308 GB, free: 39.81 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004518/0.9397, allocations: 0.8444 MB / 0.7317 GB, free: 38.98 MB / 442.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.0003424/0.9401, allocations: 153.6 kB / 0.7318 GB, free: 38.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006304/0.9464, allocations: 5.06 MB / 0.7367 GB, free: 34.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.9464, allocations: 0 / 0.7367 GB, free: 34.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.9489, allocations: 1.819 MB / 0.7385 GB, free: 32.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.9504, allocations: 376.7 kB / 0.7389 GB, free: 32.31 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.9609, allocations: 7.542 MB / 0.7462 GB, free: 25.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003321/0.9642, allocations: 3.421 MB / 0.7496 GB, free: 22.89 MB / 442.7 MB Notification: Performance of SimCode: time 4.3e-07/0.9642, allocations: 0 / 0.7496 GB, free: 22.89 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)