Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",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.00092/0.0009197, allocations: 183.9 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.051/1.051, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008692/0.0008692, allocations: 93.08 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08349/0.08439, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.2391, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09789/0.337, allocations: 108.7 MB / 495.7 MB, free: 10.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.3373, allocations: 92.58 kB / 495.8 MB, free: 9.922 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.7298/1.067, allocations: 241.5 MB / 0.72 GB, free: 36.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/1.067, allocations: 7.312 kB / 0.72 GB, free: 36.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/1.082, allocations: 3.464 MB / 0.7234 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02246/1.105, allocations: 11.73 MB / 0.7349 GB, free: 34.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/1.105, allocations: 388.4 kB / 0.7352 GB, free: 34.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00294/1.108, allocations: 0.6976 MB / 0.7359 GB, free: 34.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0254/1.134, allocations: 22.01 MB / 0.7574 GB, free: 28.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02873/1.162, allocations: 26.9 MB / 0.7837 GB, free: 3.828 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/1.163, allocations: 111.5 kB / 0.7838 GB, free: 3.758 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00127/1.164, allocations: 55.62 kB / 0.7838 GB, free: 3.707 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002445/1.166, allocations: 2.722 MB / 0.7865 GB, free: 1.453 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.322/1.488, allocations: 119.9 MB / 0.9035 GB, free: 37.35 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009676/1.498, allocations: 10.28 MB / 0.9136 GB, free: 36.7 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007929/1.506, allocations: 9.155 MB / 0.9225 GB, free: 36.64 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0334/1.539, allocations: 32.69 MB / 0.9544 GB, free: 19.56 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/1.539, allocations: 88.83 kB / 0.9545 GB, free: 19.48 MB / 458.8 MB Notification: Performance of pre-optimization done (n=483): time 7.414e-06/1.539, allocations: 3.141 kB / 0.9545 GB, free: 19.48 MB / 458.8 MB Notification: Performance of matching and sorting (n=708): time 0.3644/1.904, allocations: 107.5 MB / 1.06 GB, free: 88.14 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/1.904, allocations: 206.1 kB / 1.06 GB, free: 87.97 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006683/1.911, allocations: 6.166 MB / 1.066 GB, free: 87.42 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008146/1.912, allocations: 27.14 kB / 1.066 GB, free: 87.39 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/1.914, allocations: 6.651 MB / 1.072 GB, free: 83.42 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001805/1.916, allocations: 2.422 MB / 1.075 GB, free: 81.9 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008794/1.916, allocations: 0 / 1.075 GB, free: 81.9 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004883/1.917, allocations: 0.914 MB / 1.076 GB, free: 81.56 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01054/1.927, allocations: 9.966 MB / 1.085 GB, free: 79.3 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01383/1.941, allocations: 16.82 MB / 1.102 GB, free: 66.02 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01401/1.955, allocations: 13 MB / 1.114 GB, free: 61.09 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.833e-05/1.955, allocations: 68.91 kB / 1.114 GB, free: 61.09 MB / 458.8 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.03079/1.986, allocations: 26.24 MB / 1.14 GB, free: 42.6 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.986, allocations: 4.562 kB / 1.14 GB, free: 42.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002157/1.986, allocations: 244.6 kB / 1.14 GB, free: 42.36 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002631/1.987, allocations: 364 kB / 1.141 GB, free: 42.01 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01663/2.003, allocations: 3.947 MB / 1.144 GB, free: 38.74 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002015/2.004, allocations: 481.3 kB / 1.145 GB, free: 38.32 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01024/2.014, allocations: 0.7013 MB / 1.146 GB, free: 37.81 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/2.015, allocations: 0.763 MB / 1.146 GB, free: 37.06 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1089 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1860): * Single equations (assignments): 1854 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001904/2.017, allocations: 0.7626 MB / 1.147 GB, free: 36.3 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/2.018, allocations: 0.7479 MB / 1.148 GB, free: 35.54 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1413/2.16, allocations: 19.36 MB / 1.167 GB, free: 80.41 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.801e-05/2.16, allocations: 63.69 kB / 1.167 GB, free: 80.41 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/2.16, allocations: 3.656 kB / 1.167 GB, free: 80.41 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-05/2.16, allocations: 31.69 kB / 1.167 GB, free: 80.41 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04689/2.207, allocations: 39.21 MB / 1.205 GB, free: 77.6 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/2.207, allocations: 3.562 kB / 1.205 GB, free: 77.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01176/2.219, allocations: 1.761 MB / 1.207 GB, free: 77.56 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.534e-05/2.219, allocations: 23.34 kB / 1.207 GB, free: 77.56 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007736/2.219, allocations: 17.59 kB / 1.207 GB, free: 77.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-05/2.219, allocations: 27.62 kB / 1.207 GB, free: 77.55 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/2.219, allocations: 4.156 kB / 1.207 GB, free: 77.55 MB / 458.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03288/2.252, allocations: 33.06 MB / 1.239 GB, free: 63.1 MB / 458.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04523/2.298, allocations: 47.87 MB / 1.286 GB, free: 32.05 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004995/2.303, allocations: 2.63 MB / 1.289 GB, free: 30.08 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/2.305, allocations: 0 / 1.289 GB, free: 30.08 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006497/2.311, allocations: 414.7 kB / 1.289 GB, free: 29.85 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/2.312, allocations: 329.8 kB / 1.289 GB, free: 29.66 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007749/2.313, allocations: 167.8 kB / 1.289 GB, free: 29.5 MB / 458.8 MB Notification: Performance of sort global known variables: time 0.005888/2.319, allocations: 4.123 MB / 1.293 GB, free: 25.92 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01034/2.329, allocations: 2.756 MB / 1.296 GB, free: 23.21 MB / 458.8 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 (692): * Single equations (assignments): 689 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001246/2.331, allocations: 301.2 kB / 1.296 GB, free: 23.03 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.1464/2.477, allocations: 24.05 MB / 1.32 GB, free: 85.58 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/2.477, allocations: 0 / 1.32 GB, free: 85.58 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009771/2.487, allocations: 9.771 MB / 1.329 GB, free: 85.56 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003199/2.49, allocations: 0.6304 MB / 1.33 GB, free: 85.53 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04461/2.535, allocations: 28.77 MB / 1.358 GB, free: 81.89 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01374/2.549, allocations: 8.983 MB / 1.367 GB, free: 80.89 MB / 458.8 MB Notification: Performance of SimCode: time 5.61e-07/2.549, allocations: 0 / 1.367 GB, free: 80.89 MB / 458.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1)