Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001537/0.001537, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008621, allocations: 94.56 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1003/0.1012, allocations: 56.9 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.2113, allocations: 51.48 MB / 394.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3284/0.5397, allocations: 109.4 MB / 0.4923 GB, free: 300 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5401, allocations: 87.45 kB / 0.4924 GB, free: 256 kB / 362.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.7897/1.33, allocations: 245 MB / 0.7317 GB, free: 8.367 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/1.33, allocations: 8 kB / 0.7317 GB, free: 8.359 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02031/1.35, allocations: 3.479 MB / 0.7351 GB, free: 4.855 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3526/1.703, allocations: 10.93 MB / 0.7457 GB, free: 73.47 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008338/1.704, allocations: 389.7 kB / 0.7461 GB, free: 73.47 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007292/1.711, allocations: 0.6991 MB / 0.7468 GB, free: 73.47 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03966/1.751, allocations: 22.01 MB / 0.7683 GB, free: 73.41 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05814/1.809, allocations: 26.91 MB / 0.7946 GB, free: 68.67 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005616/1.81, allocations: 100.4 kB / 0.7947 GB, free: 68.67 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004893/1.814, allocations: 51.47 kB / 0.7947 GB, free: 68.67 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003553/1.818, allocations: 2.732 MB / 0.7974 GB, free: 68.65 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3512/2.169, allocations: 119.3 MB / 0.9139 GB, free: 38.45 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01292/2.182, allocations: 10.3 MB / 0.924 GB, free: 37.79 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01093/2.193, allocations: 9.147 MB / 0.9329 GB, free: 37.74 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04869/2.242, allocations: 32.69 MB / 0.9648 GB, free: 28.8 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.985e-05/2.242, allocations: 91.09 kB / 0.9649 GB, free: 28.75 MB / 458.8 MB Notification: Performance of pre-optimization done (n=483): time 1.307e-05/2.242, allocations: 0 / 0.9649 GB, free: 28.75 MB / 458.8 MB Notification: Performance of matching and sorting (n=708): time 0.3195/2.562, allocations: 108 MB / 1.07 GB, free: 5.027 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/2.562, allocations: 201.6 kB / 1.071 GB, free: 4.797 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1609/2.723, allocations: 6.163 MB / 1.077 GB, free: 114.5 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001696/2.724, allocations: 25.7 kB / 1.077 GB, free: 114.5 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003102/2.728, allocations: 6.647 MB / 1.083 GB, free: 112 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002654/2.73, allocations: 2.428 MB / 1.085 GB, free: 110.5 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001399/2.732, allocations: 2.094 kB / 1.085 GB, free: 110.5 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0006042/2.732, allocations: 0.9125 MB / 1.086 GB, free: 110.1 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01356/2.746, allocations: 9.969 MB / 1.096 GB, free: 110.1 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01658/2.762, allocations: 16.82 MB / 1.112 GB, free: 101.4 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01823/2.781, allocations: 13 MB / 1.125 GB, free: 101.3 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002053/2.781, allocations: 67.47 kB / 1.125 GB, free: 101.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.04372/2.825, allocations: 26.24 MB / 1.151 GB, free: 96.24 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/2.825, allocations: 3.094 kB / 1.151 GB, free: 96.24 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003157/2.825, allocations: 238 kB / 1.151 GB, free: 96.24 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/2.825, allocations: 365.2 kB / 1.151 GB, free: 96.24 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02056/2.846, allocations: 3.948 MB / 1.155 GB, free: 95.85 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003448/2.846, allocations: 484.6 kB / 1.156 GB, free: 95.75 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01398/2.86, allocations: 0.6972 MB / 1.156 GB, free: 95.72 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003443/2.864, allocations: 0.7672 MB / 1.157 GB, free: 95.61 MB / 490.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.003257/2.867, allocations: 0.7615 MB / 1.158 GB, free: 94.98 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/2.869, allocations: 0.7475 MB / 1.159 GB, free: 94.57 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02591/2.895, allocations: 19.17 MB / 1.177 GB, free: 86.3 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/2.895, allocations: 67.38 kB / 1.177 GB, free: 86.3 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/2.895, allocations: 0 / 1.177 GB, free: 86.3 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.129e-05/2.895, allocations: 34.12 kB / 1.177 GB, free: 86.3 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05838/2.953, allocations: 39.2 MB / 1.216 GB, free: 66.13 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.613e-05/2.953, allocations: 4 kB / 1.216 GB, free: 66.13 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01327/2.967, allocations: 1.769 MB / 1.217 GB, free: 64.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.38e-05/2.967, allocations: 24 kB / 1.218 GB, free: 64.77 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00143/2.968, allocations: 15.61 kB / 1.218 GB, free: 64.75 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-05/2.968, allocations: 24 kB / 1.218 GB, free: 64.73 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/2.968, allocations: 3.531 kB / 1.218 GB, free: 64.73 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1989/3.167, allocations: 35.18 MB / 1.252 GB, free: 102.5 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05613/3.223, allocations: 47.87 MB / 1.299 GB, free: 97.48 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006421/3.23, allocations: 2.628 MB / 1.301 GB, free: 96.44 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002831/3.233, allocations: 6.922 kB / 1.301 GB, free: 96.44 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007885/3.241, allocations: 405.8 kB / 1.302 GB, free: 96.44 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00151/3.242, allocations: 327.7 kB / 1.302 GB, free: 96.39 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009704/3.243, allocations: 171.1 kB / 1.302 GB, free: 96.35 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.006181/3.249, allocations: 4.129 MB / 1.306 GB, free: 94.87 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01334/3.263, allocations: 2.765 MB / 1.309 GB, free: 94.86 MB / 490.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.001622/3.264, allocations: 310.6 kB / 1.309 GB, free: 94.77 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02805/3.292, allocations: 22.67 MB / 1.331 GB, free: 85.98 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/3.292, allocations: 0 / 1.331 GB, free: 85.98 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01324/3.306, allocations: 9.77 MB / 1.341 GB, free: 81.74 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004414/3.31, allocations: 0.6188 MB / 1.341 GB, free: 81.46 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05572/3.366, allocations: 28.78 MB / 1.37 GB, free: 68.1 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01718/3.383, allocations: 8.975 MB / 1.378 GB, free: 61.43 MB / 490.8 MB Notification: Performance of SimCode: time 8.92e-07/3.383, allocations: 0 / 1.378 GB, free: 61.43 MB / 490.8 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1)