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.001133/0.001133, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.001183/0.001183, allocations: 86.58 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.524e-05/2.527e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09518, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.4314, allocations: 107.7 MB / 477.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.4318, allocations: 91.39 kB / 477.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7238/1.156, allocations: 235.2 MB / 0.6964 GB, free: 444 kB / 426.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.156, allocations: 0 / 0.6964 GB, free: 444 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005798/1.156, allocations: 232 kB / 0.6966 GB, free: 212 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.4711/1.627, allocations: 12.3 MB / 0.7086 GB, free: 40.27 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/1.627, allocations: 7.312 kB / 0.7087 GB, free: 40.27 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01004/1.637, allocations: 1.997 MB / 0.7106 GB, free: 40.13 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02338/1.661, allocations: 3.99 MB / 0.7145 GB, free: 39.38 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0314/1.692, allocations: 12.21 MB / 0.7264 GB, free: 38.18 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001156/1.693, allocations: 0.8854 MB / 0.7273 GB, free: 38.16 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006698/1.7, allocations: 1.185 MB / 0.7284 GB, free: 38.14 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08066/1.781, allocations: 33.53 MB / 0.7612 GB, free: 33.34 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005147/1.781, allocations: 97.91 kB / 0.7613 GB, free: 33.33 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005674/1.787, allocations: 0.5334 MB / 0.7618 GB, free: 33.33 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003773/1.791, allocations: 2.593 MB / 0.7643 GB, free: 33.31 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06796/1.859, allocations: 30.6 MB / 0.7942 GB, free: 26.28 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4414/2.3, allocations: 121.6 MB / 0.9129 GB, free: 25.15 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04631/2.347, allocations: 17.26 MB / 0.9298 GB, free: 24.46 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01142/2.358, allocations: 8.729 MB / 0.9383 GB, free: 24.41 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04764/2.406, allocations: 31.08 MB / 0.9687 GB, free: 16.23 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.251e-05/2.406, allocations: 91.23 kB / 0.9688 GB, free: 16.18 MB / 474.8 MB Notification: Performance of pre-optimization done (n=489): time 8.786e-06/2.406, allocations: 0 / 0.9688 GB, free: 16.18 MB / 474.8 MB Notification: Performance of matching and sorting (n=726): time 0.6904/3.096, allocations: 124.2 MB / 1.09 GB, free: 101.9 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/3.097, allocations: 208.8 kB / 1.09 GB, free: 101.7 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/3.108, allocations: 6.927 MB / 1.097 GB, free: 101 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002125/3.11, allocations: 137.2 kB / 1.097 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004602/3.115, allocations: 7.088 MB / 1.104 GB, free: 96.95 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003484/3.119, allocations: 2.585 MB / 1.107 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/3.12, allocations: 291.1 kB / 1.107 GB, free: 95.38 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.000624/3.121, allocations: 0.9099 MB / 1.108 GB, free: 95.05 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0136/3.134, allocations: 10.09 MB / 1.118 GB, free: 95.02 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01918/3.154, allocations: 16.72 MB / 1.134 GB, free: 83.7 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01828/3.172, allocations: 12.87 MB / 1.146 GB, free: 78.72 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002719/3.172, allocations: 63.09 kB / 1.147 GB, free: 78.72 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.04935/3.222, allocations: 27.27 MB / 1.173 GB, free: 68.31 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/3.222, allocations: 100.6 kB / 1.173 GB, free: 68.31 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003206/3.222, allocations: 227.1 kB / 1.173 GB, free: 68.31 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/3.223, allocations: 351.3 kB / 1.174 GB, free: 68.31 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02023/3.243, allocations: 4.266 MB / 1.178 GB, free: 67.93 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004962/3.243, allocations: 457.8 kB / 1.178 GB, free: 67.83 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01566/3.259, allocations: 1.228 MB / 1.18 GB, free: 67.58 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003798/3.263, allocations: 0.7454 MB / 1.18 GB, free: 67.14 MB / 0.4949 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.004961/3.268, allocations: 1.147 MB / 1.181 GB, free: 66 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00249/3.27, allocations: 0.7984 MB / 1.182 GB, free: 65.2 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03219/3.302, allocations: 19.39 MB / 1.201 GB, free: 48.29 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.641e-05/3.303, allocations: 72 kB / 1.201 GB, free: 48.22 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/3.303, allocations: 4 kB / 1.201 GB, free: 48.22 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001351/3.303, allocations: 37.83 kB / 1.201 GB, free: 48.21 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.377/3.68, allocations: 42.48 MB / 1.243 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.325e-05/3.68, allocations: 4.188 kB / 1.243 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01351/3.693, allocations: 2.155 MB / 1.245 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/3.694, allocations: 32.31 kB / 1.245 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001859/3.695, allocations: 128.9 kB / 1.245 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.824e-05/3.695, allocations: 31.22 kB / 1.245 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/3.695, allocations: 14.81 kB / 1.245 GB, free: 95.41 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04414/3.74, allocations: 33.61 MB / 1.278 GB, free: 93.23 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00947/3.749, allocations: 2.715 MB / 1.281 GB, free: 92.17 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004602/3.754, allocations: 117.3 kB / 1.281 GB, free: 92.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01005/3.764, allocations: 0.763 MB / 1.281 GB, free: 92 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002578/3.767, allocations: 392.1 kB / 1.282 GB, free: 91.94 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001055/3.768, allocations: 181.8 kB / 1.282 GB, free: 91.89 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009737/3.777, allocations: 4.795 MB / 1.287 GB, free: 90.2 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.91e-07/3.777, allocations: 0 / 1.287 GB, free: 90.2 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01919/3.797, allocations: 3.169 MB / 1.29 GB, free: 89.89 MB / 0.4949 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.04405/3.841, allocations: 35.34 MB / 1.324 GB, free: 72.65 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03159/3.872, allocations: 22.93 MB / 1.347 GB, free: 59.27 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/3.872, allocations: 4 kB / 1.347 GB, free: 59.27 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01193/3.884, allocations: 9.725 MB / 1.356 GB, free: 50.39 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006081/3.89, allocations: 0.8563 MB / 1.357 GB, free: 49.66 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0662/3.957, allocations: 32.69 MB / 1.389 GB, free: 21.05 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01159/3.968, allocations: 8.273 MB / 1.397 GB, free: 15.02 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01818/3.987, allocations: 5.286 MB / 1.402 GB, free: 12.25 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2729/4.259, allocations: 6.418 MB / 1.408 GB, free: 90.62 MB / 0.4949 GB Notification: Performance of SimCode: time 2.755e-06/4.26, allocations: 1.344 kB / 1.408 GB, free: 90.62 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5067/4.766, allocations: 225.8 MB / 1.629 GB, free: 70.12 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/4.766, allocations: 172 kB / 1.629 GB, free: 69.89 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/13.01, allocations: 0 / 1.629 GB, free: 69.89 MB / 0.4949 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