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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.599/1.599, allocations: 225.6 MB / 234.8 MB, free: 3.184 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 99.47 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.552e-05/2.57e-05, allocations: 4 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1344, allocations: 51.49 MB / 395.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4722/0.6067, allocations: 109.4 MB / 0.4929 GB, free: 15.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.607, allocations: 89.75 kB / 0.493 GB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8819/1.489, allocations: 235.9 MB / 0.7233 GB, free: 17.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.489, allocations: 4 kB / 0.7233 GB, free: 17.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006589/1.49, allocations: 238.4 kB / 0.7235 GB, free: 17.07 MB / 442.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.04378/1.533, allocations: 12.36 MB / 0.7356 GB, free: 4.625 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/1.534, allocations: 12.03 kB / 0.7356 GB, free: 4.613 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02269/1.556, allocations: 3.994 MB / 0.7395 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6261/2.182, allocations: 11 MB / 0.7503 GB, free: 34.91 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006116/2.183, allocations: 387.1 kB / 0.7506 GB, free: 34.91 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005753/2.189, allocations: 0.6912 MB / 0.7513 GB, free: 34.9 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04006/2.229, allocations: 21.49 MB / 0.7723 GB, free: 34.84 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06772/2.297, allocations: 26.44 MB / 0.7981 GB, free: 29.4 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006556/2.297, allocations: 96.78 kB / 0.7982 GB, free: 29.39 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006964/2.304, allocations: 55.25 kB / 0.7983 GB, free: 29.39 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003752/2.308, allocations: 2.589 MB / 0.8008 GB, free: 28.91 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1608/2.469, allocations: 116.9 MB / 0.9149 GB, free: 10.47 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/2.484, allocations: 10.5 MB / 0.9252 GB, free: 0.6836 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3171/2.801, allocations: 10.08 MB / 0.935 GB, free: 94.21 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.043/2.844, allocations: 30.85 MB / 0.9652 GB, free: 86.29 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.19e-05/2.844, allocations: 91.19 kB / 0.9652 GB, free: 86.25 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=483): time 8.256e-06/2.844, allocations: 0 / 0.9652 GB, free: 86.25 MB / 0.4949 GB Notification: Performance of matching and sorting (n=708): time 0.2881/3.132, allocations: 114.5 MB / 1.077 GB, free: 43.12 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/3.132, allocations: 203.7 kB / 1.077 GB, free: 42.89 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009506/3.142, allocations: 6.065 MB / 1.083 GB, free: 37.59 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002433/3.144, allocations: 29.7 kB / 1.083 GB, free: 37.55 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003949/3.148, allocations: 7.203 MB / 1.09 GB, free: 31.06 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003681/3.152, allocations: 2.434 MB / 1.093 GB, free: 28.85 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/3.153, allocations: 0 / 1.093 GB, free: 28.85 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005802/3.154, allocations: 0.9118 MB / 1.094 GB, free: 28.11 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01225/3.166, allocations: 9.701 MB / 1.103 GB, free: 19.22 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3244/3.491, allocations: 18.27 MB / 1.121 GB, free: 79.25 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02964/3.52, allocations: 14.38 MB / 1.135 GB, free: 79.15 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004004/3.521, allocations: 68.81 kB / 1.135 GB, free: 79.15 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.06291/3.584, allocations: 27.3 MB / 1.162 GB, free: 78.62 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002836/3.584, allocations: 111.7 kB / 1.162 GB, free: 78.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004965/3.584, allocations: 240.9 kB / 1.162 GB, free: 78.62 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/3.585, allocations: 364.9 kB / 1.162 GB, free: 78.62 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02153/3.607, allocations: 4.302 MB / 1.166 GB, free: 78.34 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005496/3.607, allocations: 486.3 kB / 1.167 GB, free: 78.24 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01544/3.623, allocations: 0.951 MB / 1.168 GB, free: 78.24 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00401/3.627, allocations: 0.7704 MB / 1.169 GB, free: 78.24 MB / 0.4949 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.004829/3.632, allocations: 0.7669 MB / 1.169 GB, free: 77.85 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02722/3.659, allocations: 17.33 MB / 1.186 GB, free: 75.42 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003451/3.662, allocations: 0.7425 MB / 1.187 GB, free: 75.42 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02802/3.69, allocations: 18.51 MB / 1.205 GB, free: 67.13 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.881e-05/3.69, allocations: 78.03 kB / 1.205 GB, free: 67.13 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/3.69, allocations: 3.656 kB / 1.205 GB, free: 67.13 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/3.691, allocations: 34.45 kB / 1.205 GB, free: 67.13 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07393/3.765, allocations: 38.46 MB / 1.243 GB, free: 49.36 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/3.765, allocations: 0 / 1.243 GB, free: 49.36 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01377/3.778, allocations: 2.12 MB / 1.245 GB, free: 47.89 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001185/3.779, allocations: 24 kB / 1.245 GB, free: 47.86 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001805/3.78, allocations: 18.62 kB / 1.245 GB, free: 47.85 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.016e-05/3.78, allocations: 27.95 kB / 1.245 GB, free: 47.82 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/3.78, allocations: 7.516 kB / 1.245 GB, free: 47.82 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04285/3.823, allocations: 31.89 MB / 1.276 GB, free: 18.97 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006893/3.83, allocations: 2.627 MB / 1.279 GB, free: 16.59 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003244/3.834, allocations: 4 kB / 1.279 GB, free: 16.59 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008747/3.842, allocations: 0.6495 MB / 1.279 GB, free: 16.25 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00199/3.844, allocations: 363.9 kB / 1.28 GB, free: 16.03 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001529/3.846, allocations: 174.4 kB / 1.28 GB, free: 15.86 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009207/3.855, allocations: 4.028 MB / 1.284 GB, free: 12.38 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.11e-07/3.855, allocations: 0 / 1.284 GB, free: 12.38 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01745/3.873, allocations: 2.766 MB / 1.286 GB, free: 9.656 MB / 0.4949 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.4258/4.298, allocations: 34.12 MB / 1.32 GB, free: 79.69 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03535/4.334, allocations: 22.07 MB / 1.341 GB, free: 78.83 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/4.334, allocations: 7.281 kB / 1.341 GB, free: 78.83 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01371/4.348, allocations: 9.515 MB / 1.351 GB, free: 74.58 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005478/4.353, allocations: 0.6237 MB / 1.351 GB, free: 74.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07633/4.429, allocations: 31.58 MB / 1.382 GB, free: 62.84 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01457/4.444, allocations: 8.233 MB / 1.39 GB, free: 60.27 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01791/4.462, allocations: 5.145 MB / 1.395 GB, free: 60.19 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01325/4.475, allocations: 5.563 MB / 1.401 GB, free: 55.54 MB / 0.4949 GB Notification: Performance of SimCode: time 1.393e-06/4.475, allocations: 0 / 1.401 GB, free: 55.54 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6519/5.127, allocations: 208.5 MB / 1.604 GB, free: 33.47 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/5.127, allocations: 162.1 kB / 1.604 GB, free: 33.28 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.572/13.7, allocations: 0 / 1.604 GB, free: 33.28 MB / 0.4949 GB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat