Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 183.5 kB / 8.135 MB, free: 2.223 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.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.001006/0.001006, allocations: 97.91 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09468/0.09572, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.2838, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09309/0.3769, allocations: 91.02 MB / 478 MB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.3772, allocations: 95.86 kB / 478.1 MB, free: 11.68 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.2921/0.6693, allocations: 59.07 MB / 0.5246 GB, free: 84.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.6694, allocations: 8 kB / 0.5246 GB, free: 84.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007797/0.6772, allocations: 1.58 MB / 0.5262 GB, free: 82.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007834/0.685, allocations: 3.184 MB / 0.5293 GB, free: 79.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.6852, allocations: 76 kB / 0.5293 GB, free: 79.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007858/0.686, allocations: 139.9 kB / 0.5295 GB, free: 79.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00578/0.6918, allocations: 4.041 MB / 0.5334 GB, free: 75.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007466/0.6992, allocations: 6.309 MB / 0.5396 GB, free: 68.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.911e-05/0.6994, allocations: 47.53 kB / 0.5396 GB, free: 68.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004683/0.6998, allocations: 24 kB / 0.5396 GB, free: 68.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008643/0.7007, allocations: 0.7653 MB / 0.5404 GB, free: 67.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02577/0.7265, allocations: 32.6 MB / 0.5722 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.7286, allocations: 2.145 MB / 0.5743 GB, free: 31.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/0.7298, allocations: 1.132 MB / 0.5754 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005011/0.7348, allocations: 3.625 MB / 0.579 GB, free: 26.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.7349, allocations: 46.5 kB / 0.579 GB, free: 26.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.768e-06/0.7349, allocations: 0 / 0.579 GB, free: 26.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.0146/0.7495, allocations: 8.091 MB / 0.5869 GB, free: 18.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.7496, allocations: 141 kB / 0.587 GB, free: 18.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.7527, allocations: 2.191 MB / 0.5892 GB, free: 16.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.7529, allocations: 25.7 kB / 0.5892 GB, free: 16.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008531/0.7537, allocations: 2.042 MB / 0.5912 GB, free: 13.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.7541, allocations: 414.8 kB / 0.5916 GB, free: 13.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.7543, allocations: 3.938 kB / 0.5916 GB, free: 13.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002763/0.7546, allocations: 0.5437 MB / 0.5921 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.7563, allocations: 1.336 MB / 0.5934 GB, free: 11.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.7589, allocations: 4.25 MB / 0.5976 GB, free: 5.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00269/0.7616, allocations: 2.393 MB / 0.5999 GB, free: 3.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.367e-05/0.7617, allocations: 28 kB / 0.6 GB, free: 3.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.009289/0.771, allocations: 5.427 MB / 0.6053 GB, free: 14.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.771, allocations: 7.938 kB / 0.6053 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/0.7712, allocations: 108.1 kB / 0.6054 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.7736, allocations: 0.7617 MB / 0.6061 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003348/0.777, allocations: 1.024 MB / 0.6071 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005535/0.7825, allocations: 3.906 MB / 0.6109 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00325/0.7858, allocations: 183.6 kB / 0.6111 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006383/0.7864, allocations: 291.7 kB / 0.6114 GB, free: 7.648 MB / 394.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.0006719/0.7871, allocations: 352.2 kB / 0.6117 GB, free: 7.297 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.7875, allocations: 213.2 kB / 0.6119 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.7915, allocations: 1.741 MB / 0.6136 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.63e-05/0.7916, allocations: 11.91 kB / 0.6136 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.7916, allocations: 4 kB / 0.6136 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.7916, allocations: 3.984 kB / 0.6136 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008078/0.7997, allocations: 3.969 MB / 0.6175 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.7997, allocations: 3.938 kB / 0.6175 GB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007297/0.8004, allocations: 131.8 kB / 0.6176 GB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.8026, allocations: 0.5821 MB / 0.6182 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.03e-05/0.8028, allocations: 4 kB / 0.6182 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00473/0.8075, allocations: 3.484 MB / 0.6216 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.8075, allocations: 0 / 0.6216 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005725/0.8132, allocations: 3.602 MB / 0.6251 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007249/0.8205, allocations: 5.04 MB / 0.6301 GB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005683/0.8211, allocations: 270.2 kB / 0.6303 GB, free: 3.914 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.8214, allocations: 0 / 0.6303 GB, free: 3.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009782/0.8224, allocations: 40.42 kB / 0.6303 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.8226, allocations: 44.38 kB / 0.6304 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.788e-05/0.8226, allocations: 31.66 kB / 0.6304 GB, free: 3.805 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002337/0.825, allocations: 1.451 MB / 0.6318 GB, free: 2.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003849/0.8289, allocations: 0.5546 MB / 0.6324 GB, free: 1.781 MB / 410.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.0003558/0.8292, allocations: 136.4 kB / 0.6325 GB, free: 1.637 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004915/0.8341, allocations: 3.207 MB / 0.6356 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8342, allocations: 0 / 0.6356 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.8354, allocations: 0.874 MB / 0.6365 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.8366, allocations: 197.8 kB / 0.6367 GB, free: 13.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007915/0.8445, allocations: 4.417 MB / 0.641 GB, free: 8.875 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002858/0.8474, allocations: 2.422 MB / 0.6434 GB, free: 6.422 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.8474, allocations: 0 / 0.6434 GB, free: 6.422 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)