Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002074/0.002074, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.315/2.315, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.837e-05/3.856e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1272, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4653/0.5925, allocations: 107.7 MB / 476.9 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.5928, allocations: 87.08 kB / 476.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.174/1.767, allocations: 235.2 MB / 0.6955 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.767, allocations: 0 / 0.6955 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008385/1.768, allocations: 236 kB / 0.6957 GB, free: 468 kB / 426.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.6873/2.455, allocations: 12.3 MB / 0.7077 GB, free: 40.27 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/2.455, allocations: 12.19 kB / 0.7077 GB, free: 40.27 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01231/2.467, allocations: 1.995 MB / 0.7097 GB, free: 40.13 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03704/2.504, allocations: 3.985 MB / 0.7136 GB, free: 39.38 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04989/2.554, allocations: 12.21 MB / 0.7255 GB, free: 38.18 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001376/2.556, allocations: 0.8878 MB / 0.7264 GB, free: 38.16 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007869/2.564, allocations: 1.185 MB / 0.7275 GB, free: 38.14 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1218/2.685, allocations: 33.53 MB / 0.7603 GB, free: 33.34 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008255/2.686, allocations: 96.97 kB / 0.7604 GB, free: 33.33 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006743/2.693, allocations: 0.5333 MB / 0.7609 GB, free: 33.33 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005749/2.699, allocations: 2.588 MB / 0.7634 GB, free: 33.31 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1077/2.807, allocations: 30.6 MB / 0.7933 GB, free: 26.39 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6292/3.436, allocations: 121.5 MB / 0.912 GB, free: 26.84 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08658/3.523, allocations: 17.27 MB / 0.9288 GB, free: 26.15 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01884/3.541, allocations: 8.723 MB / 0.9374 GB, free: 26.1 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07447/3.616, allocations: 31.08 MB / 0.9677 GB, free: 18.06 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.394e-05/3.616, allocations: 99.59 kB / 0.9678 GB, free: 18.02 MB / 474.8 MB Notification: Performance of pre-optimization done (n=489): time 8.517e-06/3.616, allocations: 0 / 0.9678 GB, free: 18.02 MB / 474.8 MB Notification: Performance of matching and sorting (n=726): time 1.105/4.721, allocations: 123.6 MB / 1.088 GB, free: 87.4 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/4.721, allocations: 207.4 kB / 1.089 GB, free: 87.23 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01853/4.74, allocations: 6.934 MB / 1.095 GB, free: 86.47 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002769/4.742, allocations: 139.9 kB / 1.096 GB, free: 86.44 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006299/4.749, allocations: 6.845 MB / 1.102 GB, free: 82.41 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00551/4.754, allocations: 2.571 MB / 1.105 GB, free: 80.85 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004077/4.759, allocations: 293.4 kB / 1.105 GB, free: 80.85 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001719/4.76, allocations: 0.9226 MB / 1.106 GB, free: 80.5 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02596/4.786, allocations: 10.09 MB / 1.116 GB, free: 78.24 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03089/4.817, allocations: 16.72 MB / 1.132 GB, free: 65.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03005/4.847, allocations: 12.88 MB / 1.145 GB, free: 60.32 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000284/4.848, allocations: 63.81 kB / 1.145 GB, free: 60.32 MB / 490.8 MB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.07833/4.926, allocations: 27.01 MB / 1.171 GB, free: 49.31 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/4.926, allocations: 100 kB / 1.171 GB, free: 49.21 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003018/4.927, allocations: 231.6 kB / 1.171 GB, free: 48.99 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/4.927, allocations: 348 kB / 1.172 GB, free: 48.65 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.036/4.963, allocations: 4.268 MB / 1.176 GB, free: 45.28 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005502/4.964, allocations: 460 kB / 1.176 GB, free: 44.88 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02255/4.986, allocations: 1.23 MB / 1.178 GB, free: 44 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004158/4.99, allocations: 0.7475 MB / 1.178 GB, free: 43.27 MB / 490.8 MB 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.007363/4.998, allocations: 1.126 MB / 1.179 GB, free: 42.14 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004228/5.002, allocations: 0.8083 MB / 1.18 GB, free: 41.33 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05434/5.056, allocations: 19.39 MB / 1.199 GB, free: 24.42 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/5.057, allocations: 74.89 kB / 1.199 GB, free: 24.35 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.218e-05/5.057, allocations: 0 / 1.199 GB, free: 24.35 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000189/5.057, allocations: 37.52 kB / 1.199 GB, free: 24.34 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4998/5.557, allocations: 42.34 MB / 1.241 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/5.557, allocations: 7.594 kB / 1.241 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02573/5.582, allocations: 2.153 MB / 1.243 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/5.583, allocations: 33.03 kB / 1.243 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002787/5.585, allocations: 124.6 kB / 1.243 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001029/5.586, allocations: 32.19 kB / 1.243 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/5.586, allocations: 14.55 kB / 1.243 GB, free: 80.98 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07838/5.664, allocations: 33.61 MB / 1.276 GB, free: 74.11 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01152/5.676, allocations: 2.707 MB / 1.278 GB, free: 73.06 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005174/5.681, allocations: 124.1 kB / 1.279 GB, free: 72.97 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01592/5.697, allocations: 0.7628 MB / 1.279 GB, free: 72.88 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00343/5.7, allocations: 384 kB / 1.28 GB, free: 72.82 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002357/5.703, allocations: 180.3 kB / 1.28 GB, free: 72.78 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01414/5.717, allocations: 4.796 MB / 1.284 GB, free: 71.09 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.232e-06/5.717, allocations: 0 / 1.284 GB, free: 71.09 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02093/5.738, allocations: 3.173 MB / 1.288 GB, free: 70.77 MB / 490.8 MB 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.08306/5.821, allocations: 35.35 MB / 1.322 GB, free: 53.44 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.05215/5.873, allocations: 22.92 MB / 1.344 GB, free: 34.41 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/5.873, allocations: 4 kB / 1.344 GB, free: 34.41 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02334/5.897, allocations: 9.724 MB / 1.354 GB, free: 25.53 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009513/5.906, allocations: 0.848 MB / 1.355 GB, free: 24.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4842/6.39, allocations: 34.22 MB / 1.388 GB, free: 100 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0253/6.416, allocations: 8.278 MB / 1.396 GB, free: 99.02 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02441/6.44, allocations: 5.698 MB / 1.402 GB, free: 99.02 MB / 0.4949 GB Notification: Performance of SimCode: time 4.859e-06/6.44, allocations: 0 / 1.402 GB, free: 99.02 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.355/13.8, allocations: 254.7 MB / 1.651 GB, free: 54.48 MB / 0.4949 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat