Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00161/0.00161, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.253/1.253, allocations: 205.2 MB / 214.1 MB, free: 5.441 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.0008818/0.0008819, allocations: 90.25 kB / 262.1 MB, free: 5.52 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1766/0.1775, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.2588, allocations: 47.58 MB / 362.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2632/0.522, allocations: 106.9 MB / 469.6 MB, free: 2.289 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.5223, allocations: 90.44 kB / 469.7 MB, free: 2.242 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: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.7057/1.228, allocations: 239 MB / 0.692 GB, free: 17.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/1.228, allocations: 12 kB / 0.692 GB, free: 17.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02059/1.249, allocations: 3.468 MB / 0.6954 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03169/1.28, allocations: 12.16 MB / 0.7073 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007174/1.281, allocations: 392 kB / 0.7077 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005434/1.287, allocations: 0.6911 MB / 0.7083 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2798/1.566, allocations: 22.01 MB / 0.7298 GB, free: 81.93 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05068/1.617, allocations: 26.9 MB / 0.7561 GB, free: 77.19 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004866/1.618, allocations: 105.3 kB / 0.7562 GB, free: 77.19 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004421/1.622, allocations: 53.44 kB / 0.7563 GB, free: 77.19 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00343/1.626, allocations: 2.721 MB / 0.7589 GB, free: 77.17 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1493/1.775, allocations: 119.4 MB / 0.8755 GB, free: 23.21 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01243/1.787, allocations: 10.3 MB / 0.8855 GB, free: 18.1 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0115/1.799, allocations: 9.145 MB / 0.8945 GB, free: 10.14 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1981/1.997, allocations: 32.91 MB / 0.9266 GB, free: 97.89 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.59e-05/1.997, allocations: 90.09 kB / 0.9267 GB, free: 97.85 MB / 442.8 MB Notification: Performance of pre-optimization done (n=483): time 9.748e-06/1.997, allocations: 0 / 0.9267 GB, free: 97.85 MB / 442.8 MB Notification: Performance of matching and sorting (n=708): time 0.3135/2.311, allocations: 107.6 MB / 1.032 GB, free: 58.32 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.626e-05/2.311, allocations: 204.8 kB / 1.032 GB, free: 58.1 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01161/2.323, allocations: 6.203 MB / 1.038 GB, free: 52.77 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002037/2.325, allocations: 29.7 kB / 1.038 GB, free: 52.74 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003514/2.328, allocations: 6.64 MB / 1.045 GB, free: 46.81 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.1758/2.504, allocations: 2.427 MB / 1.047 GB, free: 96.89 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001835/2.506, allocations: 3.469 kB / 1.047 GB, free: 96.89 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0006774/2.507, allocations: 0.9136 MB / 1.048 GB, free: 96.56 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01412/2.521, allocations: 9.97 MB / 1.058 GB, free: 96.53 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01877/2.54, allocations: 16.82 MB / 1.074 GB, free: 87.85 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01938/2.559, allocations: 12.98 MB / 1.087 GB, free: 87.75 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002346/2.559, allocations: 72.34 kB / 1.087 GB, free: 87.75 MB / 442.8 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.04859/2.608, allocations: 26.25 MB / 1.112 GB, free: 82.54 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/2.608, allocations: 8.812 kB / 1.112 GB, free: 82.54 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003904/2.608, allocations: 239.2 kB / 1.113 GB, free: 82.54 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000334/2.609, allocations: 367.3 kB / 1.113 GB, free: 82.54 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02105/2.63, allocations: 3.943 MB / 1.117 GB, free: 82.15 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003221/2.63, allocations: 489.3 kB / 1.117 GB, free: 82.05 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01402/2.644, allocations: 0.6952 MB / 1.118 GB, free: 82.05 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00365/2.648, allocations: 0.7657 MB / 1.119 GB, free: 81.93 MB / 442.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.004806/2.653, allocations: 0.7571 MB / 1.119 GB, free: 81.46 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002315/2.655, allocations: 0.7545 MB / 1.12 GB, free: 81.46 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0292/2.684, allocations: 19.18 MB / 1.139 GB, free: 73.19 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001263/2.684, allocations: 66.97 kB / 1.139 GB, free: 73.19 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.157e-05/2.684, allocations: 3.719 kB / 1.139 GB, free: 73.19 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/2.684, allocations: 33.14 kB / 1.139 GB, free: 73.19 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06884/2.753, allocations: 39.21 MB / 1.177 GB, free: 43.62 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/2.753, allocations: 0 / 1.177 GB, free: 43.62 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01391/2.767, allocations: 1.764 MB / 1.179 GB, free: 42.27 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/2.767, allocations: 28.67 kB / 1.179 GB, free: 42.25 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002338/2.77, allocations: 20.97 kB / 1.179 GB, free: 42.24 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.521e-05/2.77, allocations: 23.75 kB / 1.179 GB, free: 42.22 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/2.77, allocations: 4 kB / 1.179 GB, free: 42.21 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1912/2.961, allocations: 33.07 MB / 1.211 GB, free: 84 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05662/3.018, allocations: 47.87 MB / 1.258 GB, free: 70.09 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007291/3.025, allocations: 2.634 MB / 1.261 GB, free: 69.05 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003137/3.028, allocations: 2.75 kB / 1.261 GB, free: 69.05 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00806/3.036, allocations: 412.9 kB / 1.261 GB, free: 69.05 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001805/3.038, allocations: 321.6 kB / 1.261 GB, free: 69 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001056/3.039, allocations: 168.5 kB / 1.262 GB, free: 68.96 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.009354/3.049, allocations: 4.155 MB / 1.266 GB, free: 67.47 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01781/3.067, allocations: 2.754 MB / 1.268 GB, free: 67.46 MB / 442.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.00292/3.069, allocations: 301 kB / 1.269 GB, free: 67.38 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.03394/3.103, allocations: 22.66 MB / 1.291 GB, free: 57.34 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/3.103, allocations: 0 / 1.291 GB, free: 57.34 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01376/3.117, allocations: 9.77 MB / 1.3 GB, free: 48.4 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005412/3.123, allocations: 0.6199 MB / 1.301 GB, free: 47.87 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06276/3.186, allocations: 28.81 MB / 1.329 GB, free: 22.17 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1715/3.357, allocations: 9.839 MB / 1.339 GB, free: 84.71 MB / 442.8 MB Notification: Performance of SimCode: time 2.254e-06/3.357, allocations: 1.562 kB / 1.339 GB, free: 84.71 MB / 442.8 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1)