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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001377/0.001377, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.3 MB / 214.4 MB, free: 1.664 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.0009143/0.000914, allocations: 83.95 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.944e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4356/0.5505, allocations: 107.3 MB / 470.4 MB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/0.5509, allocations: 84.89 kB / 470.5 MB, free: 4.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8207/1.372, allocations: 229.8 MB / 0.6839 GB, free: 116 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.372, allocations: 3.938 kB / 0.6839 GB, free: 112 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.3458/1.717, allocations: 227.1 kB / 0.6841 GB, free: 36.59 MB / 410.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.05554/1.773, allocations: 12.3 MB / 0.6961 GB, free: 34.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/1.773, allocations: 7.219 kB / 0.6961 GB, free: 34.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02812/1.801, allocations: 3.983 MB / 0.7 GB, free: 33.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03813/1.84, allocations: 12.2 MB / 0.7119 GB, free: 32.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009243/1.841, allocations: 386.9 kB / 0.7123 GB, free: 32.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008682/1.849, allocations: 0.6933 MB / 0.713 GB, free: 32.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04955/1.899, allocations: 21.49 MB / 0.734 GB, free: 32.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08368/1.983, allocations: 26.44 MB / 0.7598 GB, free: 25.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001408/1.984, allocations: 103.1 kB / 0.7599 GB, free: 25.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008447/1.992, allocations: 51.66 kB / 0.7599 GB, free: 25.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00506/1.998, allocations: 2.587 MB / 0.7625 GB, free: 25.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5822/2.58, allocations: 117 MB / 0.8767 GB, free: 26.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0173/2.597, allocations: 10.5 MB / 0.8869 GB, free: 26.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0116/2.609, allocations: 8.499 MB / 0.8952 GB, free: 26.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05556/2.664, allocations: 30.88 MB / 0.9254 GB, free: 18.15 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/2.665, allocations: 92.77 kB / 0.9255 GB, free: 18.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=483): time 1.328e-05/2.665, allocations: 3.25 kB / 0.9255 GB, free: 18.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=708): time 0.6559/3.321, allocations: 116.3 MB / 1.039 GB, free: 118.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/3.321, allocations: 200.9 kB / 1.039 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/3.335, allocations: 6.106 MB / 1.045 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002546/3.338, allocations: 36.78 kB / 1.045 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005843/3.343, allocations: 7.203 MB / 1.052 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005099/3.349, allocations: 2.433 MB / 1.055 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002743/3.351, allocations: 1.469 kB / 1.055 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001137/3.353, allocations: 0.9129 MB / 1.056 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01674/3.369, allocations: 9.705 MB / 1.065 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02497/3.394, allocations: 16.56 MB / 1.081 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02745/3.422, allocations: 12.91 MB / 1.094 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005691/3.422, allocations: 69.22 kB / 1.094 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.06009/3.483, allocations: 25.83 MB / 1.119 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001976/3.483, allocations: 107.5 kB / 1.119 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003623/3.483, allocations: 239.4 kB / 1.119 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003905/3.484, allocations: 367.3 kB / 1.12 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02076/3.504, allocations: 4.296 MB / 1.124 GB, free: 95.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000468/3.505, allocations: 493.6 kB / 1.124 GB, free: 95.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01765/3.522, allocations: 0.9502 MB / 1.125 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004134/3.527, allocations: 0.767 MB / 1.126 GB, free: 94.98 MB / 0.4948 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.005999/3.533, allocations: 0.7694 MB / 1.127 GB, free: 94.36 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02641/3.559, allocations: 17.32 MB / 1.144 GB, free: 86.76 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004577/3.564, allocations: 0.7494 MB / 1.145 GB, free: 86.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03391/3.598, allocations: 18.52 MB / 1.163 GB, free: 74.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.362e-05/3.598, allocations: 68 kB / 1.163 GB, free: 74.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.866e-05/3.598, allocations: 4 kB / 1.163 GB, free: 74.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001515/3.598, allocations: 34.92 kB / 1.163 GB, free: 74.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06644/3.664, allocations: 38.47 MB / 1.2 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.74e-05/3.665, allocations: 7.812 kB / 1.2 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01374/3.678, allocations: 2.115 MB / 1.202 GB, free: 41.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001273/3.678, allocations: 24 kB / 1.202 GB, free: 41.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00208/3.681, allocations: 22.34 kB / 1.202 GB, free: 41.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.678e-05/3.681, allocations: 24 kB / 1.202 GB, free: 41.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/3.681, allocations: 0 / 1.202 GB, free: 41.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4798/4.16, allocations: 33.57 MB / 1.235 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00823/4.169, allocations: 2.631 MB / 1.238 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004364/4.173, allocations: 10.08 kB / 1.238 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01035/4.183, allocations: 0.6443 MB / 1.238 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002783/4.186, allocations: 372.2 kB / 1.239 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001386/4.188, allocations: 168.8 kB / 1.239 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009361/4.197, allocations: 4.062 MB / 1.243 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/4.197, allocations: 3.609 kB / 1.243 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02065/4.218, allocations: 2.748 MB / 1.246 GB, free: 108.9 MB / 0.4948 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.04738/4.265, allocations: 32.88 MB / 1.278 GB, free: 99.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03626/4.301, allocations: 22.07 MB / 1.299 GB, free: 90.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/4.302, allocations: 3.969 kB / 1.299 GB, free: 90.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0147/4.316, allocations: 9.518 MB / 1.309 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007199/4.324, allocations: 0.6282 MB / 1.309 GB, free: 85.73 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08372/4.407, allocations: 31.61 MB / 1.34 GB, free: 61.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01862/4.426, allocations: 8.243 MB / 1.348 GB, free: 55.12 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.02181/4.448, allocations: 5.149 MB / 1.353 GB, free: 51.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01478/4.463, allocations: 5.575 MB / 1.359 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of SimCode: time 1.432e-06/4.463, allocations: 0 / 1.359 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9854/5.448, allocations: 208.7 MB / 1.562 GB, free: 46.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/5.448, allocations: 154.6 kB / 1.563 GB, free: 46.79 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.069/14.52, allocations: 0 / 1.563 GB, free: 46.79 MB / 0.4948 GB (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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat