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.001124/0.001124, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.649/1.649, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009194/0.0009195, allocations: 86.92 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.709e-05, allocations: 4 kB / 350.7 MB, free: 2.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.137, allocations: 51.47 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.5998, allocations: 110.1 MB / 0.5002 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.6001, allocations: 91.16 kB / 0.5003 GB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9138/1.514, allocations: 241.2 MB / 0.7359 GB, free: 2.031 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.514, allocations: 0 / 0.7359 GB, free: 2.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007701/1.515, allocations: 232 kB / 0.7361 GB, free: 1.805 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.4388/1.954, allocations: 12.37 MB / 0.7482 GB, free: 33.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/1.954, allocations: 10.16 kB / 0.7482 GB, free: 33.02 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01168/1.965, allocations: 1.999 MB / 0.7502 GB, free: 32.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02585/1.991, allocations: 4.001 MB / 0.7541 GB, free: 32.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03452/2.026, allocations: 11 MB / 0.7648 GB, free: 30.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001163/2.027, allocations: 0.8933 MB / 0.7657 GB, free: 30.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007928/2.035, allocations: 1.18 MB / 0.7668 GB, free: 30.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1041/2.139, allocations: 33.52 MB / 0.7996 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008542/2.14, allocations: 106.2 kB / 0.7997 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007907/2.148, allocations: 0.5385 MB / 0.8002 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004197/2.152, allocations: 2.587 MB / 0.8027 GB, free: 26.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07021/2.223, allocations: 30.6 MB / 0.8326 GB, free: 19.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.548/2.771, allocations: 120.4 MB / 0.9502 GB, free: 21.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04802/2.819, allocations: 17.25 MB / 0.967 GB, free: 20.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01379/2.832, allocations: 8.728 MB / 0.9756 GB, free: 20.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05537/2.888, allocations: 31.07 MB / 1.006 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.43e-05/2.888, allocations: 84.98 kB / 1.006 GB, free: 28.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=489): time 1.221e-05/2.888, allocations: 0 / 1.006 GB, free: 28.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=726): time 0.7675/3.656, allocations: 122.1 MB / 1.125 GB, free: 116 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/3.656, allocations: 205.8 kB / 1.125 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0138/3.67, allocations: 6.892 MB / 1.132 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002519/3.672, allocations: 137.4 kB / 1.132 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005425/3.678, allocations: 7.082 MB / 1.139 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004386/3.682, allocations: 2.572 MB / 1.142 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001868/3.684, allocations: 287.1 kB / 1.142 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007671/3.685, allocations: 0.9122 MB / 1.143 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01831/3.703, allocations: 10.09 MB / 1.153 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0259/3.729, allocations: 16.72 MB / 1.169 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02188/3.751, allocations: 12.89 MB / 1.182 GB, free: 98.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005622/3.751, allocations: 72.05 kB / 1.182 GB, free: 98.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.05714/3.809, allocations: 27.26 MB / 1.208 GB, free: 87.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008521/3.809, allocations: 103.9 kB / 1.208 GB, free: 87.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001075/3.811, allocations: 228 kB / 1.209 GB, free: 87.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000878/3.811, allocations: 348 kB / 1.209 GB, free: 87.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02178/3.833, allocations: 4.262 MB / 1.213 GB, free: 87.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008621/3.834, allocations: 466.6 kB / 1.214 GB, free: 87.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0187/3.853, allocations: 1.229 MB / 1.215 GB, free: 86.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005023/3.858, allocations: 0.7436 MB / 1.216 GB, free: 86.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1034 * 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 (1848): * Single equations (assignments): 1842 * 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.007613/3.866, allocations: 1.142 MB / 1.217 GB, free: 85.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0038/3.869, allocations: 0.7973 MB / 1.217 GB, free: 85.47 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04118/3.911, allocations: 19.39 MB / 1.236 GB, free: 76.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.632e-05/3.911, allocations: 72 kB / 1.236 GB, free: 76.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.236e-05/3.911, allocations: 1.812 kB / 1.236 GB, free: 76.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001977/3.911, allocations: 37.09 kB / 1.236 GB, free: 76.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08681/3.998, allocations: 42.32 MB / 1.278 GB, free: 46.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.687e-05/3.998, allocations: 7.938 kB / 1.278 GB, free: 46.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01382/4.012, allocations: 2.148 MB / 1.28 GB, free: 44.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001389/4.012, allocations: 28 kB / 1.28 GB, free: 44.95 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002446/4.015, allocations: 137.2 kB / 1.28 GB, free: 44.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.911e-05/4.015, allocations: 34.75 kB / 1.28 GB, free: 44.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/4.015, allocations: 5.438 kB / 1.28 GB, free: 44.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4085/4.423, allocations: 33.6 MB / 1.313 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00855/4.432, allocations: 2.711 MB / 1.316 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003236/4.435, allocations: 121.6 kB / 1.316 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009507/4.445, allocations: 0.7627 MB / 1.316 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002174/4.447, allocations: 390.2 kB / 1.317 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001003/4.448, allocations: 184 kB / 1.317 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01205/4.46, allocations: 4.765 MB / 1.322 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/4.46, allocations: 0 / 1.322 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01913/4.479, allocations: 3.174 MB / 1.325 GB, free: 106.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (710): * Single equations (assignments): 707 * 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.05287/4.532, allocations: 35.36 MB / 1.359 GB, free: 95.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03835/4.57, allocations: 22.92 MB / 1.382 GB, free: 86.22 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/4.57, allocations: 2.5 kB / 1.382 GB, free: 86.22 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01723/4.588, allocations: 9.728 MB / 1.391 GB, free: 81.95 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009052/4.597, allocations: 0.8553 MB / 1.392 GB, free: 81.55 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1101/4.707, allocations: 32.65 MB / 1.424 GB, free: 63.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01671/4.724, allocations: 8.267 MB / 1.432 GB, free: 57.39 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.02034/4.744, allocations: 5.061 MB / 1.437 GB, free: 54.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01415/4.758, allocations: 5.585 MB / 1.442 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of SimCode: time 1.743e-06/4.758, allocations: 0 / 1.442 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.01/5.768, allocations: 225.6 MB / 1.663 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/5.769, allocations: 179 kB / 1.663 GB, free: 40.15 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/16.67, allocations: 0 / 1.663 GB, free: 40.15 MB / 0.5261 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