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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.484/1.484, allocations: 221.5 MB / 230.3 MB, free: 7.539 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.00096/0.00096, allocations: 87.39 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.615e-05/2.615e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1523, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4486/0.6009, allocations: 108.8 MB / 496.3 MB, free: 1.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.6012, allocations: 87.95 kB / 496.4 MB, free: 1.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.511/2.113, allocations: 232.3 MB / 0.7117 GB, free: 34.13 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.504e-06/2.113, allocations: 0 / 0.7117 GB, free: 34.13 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.0007589/2.113, allocations: 230.9 kB / 0.7119 GB, free: 34.13 MB / 426.8 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.05134/2.165, allocations: 12.28 MB / 0.7239 GB, free: 30.61 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/2.165, allocations: 13.5 kB / 0.7239 GB, free: 30.61 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02515/2.19, allocations: 3.99 MB / 0.7278 GB, free: 29.86 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03393/2.224, allocations: 11.75 MB / 0.7393 GB, free: 28.65 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000935/2.225, allocations: 388.9 kB / 0.7396 GB, free: 28.65 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007938/2.233, allocations: 0.6993 MB / 0.7403 GB, free: 28.64 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04658/2.279, allocations: 21.49 MB / 0.7613 GB, free: 28.58 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07811/2.358, allocations: 26.44 MB / 0.7871 GB, free: 22.4 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001181/2.359, allocations: 94.72 kB / 0.7872 GB, free: 22.39 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008203/2.367, allocations: 53.25 kB / 0.7873 GB, free: 22.39 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004469/2.372, allocations: 2.586 MB / 0.7898 GB, free: 21.91 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.578/2.95, allocations: 117 MB / 0.9041 GB, free: 24.92 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01708/2.967, allocations: 10.5 MB / 0.9143 GB, free: 24.26 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01129/2.978, allocations: 8.501 MB / 0.9226 GB, free: 24.21 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05108/3.029, allocations: 30.85 MB / 0.9528 GB, free: 16.18 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/3.03, allocations: 86.03 kB / 0.9529 GB, free: 16.14 MB / 474.8 MB Notification: Performance of pre-optimization done (n=483): time 1.182e-05/3.03, allocations: 0 / 0.9529 GB, free: 16.14 MB / 474.8 MB Notification: Performance of matching and sorting (n=708): time 0.3428/3.372, allocations: 116.7 MB / 1.067 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/3.373, allocations: 203.8 kB / 1.067 GB, free: 1.227 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3286/3.701, allocations: 6.063 MB / 1.073 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003108/3.704, allocations: 27.08 kB / 1.073 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005653/3.71, allocations: 7.203 MB / 1.08 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004185/3.714, allocations: 2.436 MB / 1.082 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001835/3.716, allocations: 2.625 kB / 1.082 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008742/3.717, allocations: 0.9132 MB / 1.083 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01574/3.733, allocations: 9.705 MB / 1.093 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02512/3.758, allocations: 16.56 MB / 1.109 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02377/3.782, allocations: 12.91 MB / 1.122 GB, free: 105 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003134/3.782, allocations: 70.69 kB / 1.122 GB, free: 105 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.05343/3.836, allocations: 25.83 MB / 1.147 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000231/3.836, allocations: 110.8 kB / 1.147 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004381/3.836, allocations: 238.3 kB / 1.147 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/3.837, allocations: 366.4 kB / 1.148 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02029/3.857, allocations: 4.3 MB / 1.152 GB, free: 97.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003725/3.857, allocations: 485.4 kB / 1.152 GB, free: 97.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01558/3.873, allocations: 0.9511 MB / 1.153 GB, free: 97.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004193/3.877, allocations: 0.766 MB / 1.154 GB, free: 97.75 MB / 0.5105 GB 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.005373/3.883, allocations: 0.7708 MB / 1.155 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02556/3.908, allocations: 17.32 MB / 1.172 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005255/3.914, allocations: 0.7487 MB / 1.172 GB, free: 89.12 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03455/3.948, allocations: 18.51 MB / 1.19 GB, free: 79.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.749e-05/3.948, allocations: 72 kB / 1.19 GB, free: 79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-05/3.948, allocations: 0 / 1.19 GB, free: 79 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002027/3.948, allocations: 31.55 kB / 1.19 GB, free: 79 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07148/4.02, allocations: 38.46 MB / 1.228 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-05/4.02, allocations: 4 kB / 1.228 GB, free: 46.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01323/4.033, allocations: 2.116 MB / 1.23 GB, free: 45.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/4.033, allocations: 24 kB / 1.23 GB, free: 45.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001775/4.035, allocations: 15.94 kB / 1.23 GB, free: 45.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-05/4.035, allocations: 33.92 kB / 1.23 GB, free: 45.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/4.035, allocations: 3.938 kB / 1.23 GB, free: 45.26 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3693/4.405, allocations: 33.59 MB / 1.263 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008319/4.413, allocations: 2.629 MB / 1.266 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005014/4.418, allocations: 3.594 kB / 1.266 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01023/4.428, allocations: 0.6483 MB / 1.266 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002159/4.43, allocations: 373.4 kB / 1.266 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001779/4.432, allocations: 170.8 kB / 1.267 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01089/4.443, allocations: 4.037 MB / 1.271 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.92e-07/4.443, allocations: 0 / 1.271 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01741/4.461, allocations: 2.741 MB / 1.273 GB, free: 104.3 MB / 0.5105 GB 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.05094/4.512, allocations: 32.89 MB / 1.305 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03158/4.543, allocations: 22.06 MB / 1.327 GB, free: 89.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/4.543, allocations: 1.219 kB / 1.327 GB, free: 89.99 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01302/4.556, allocations: 9.518 MB / 1.336 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006024/4.562, allocations: 0.6369 MB / 1.337 GB, free: 85.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09417/4.657, allocations: 31.57 MB / 1.368 GB, free: 70.39 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02082/4.677, allocations: 8.238 MB / 1.376 GB, free: 64.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01935/4.697, allocations: 5.149 MB / 1.381 GB, free: 61.16 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01444/4.711, allocations: 5.564 MB / 1.386 GB, free: 55.98 MB / 0.5105 GB Notification: Performance of SimCode: time 8.12e-07/4.711, allocations: 0.875 kB / 1.386 GB, free: 55.98 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6363/5.348, allocations: 208.4 MB / 1.59 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/5.348, allocations: 159.5 kB / 1.59 GB, free: 16.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/13.46, allocations: 4 kB / 1.59 GB, free: 16.66 MB / 0.5105 GB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat