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.002229/0.002229, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001178/0.001178, allocations: 96.41 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004207, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3366, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1763/0.513, allocations: 107.8 MB / 482.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003671/0.5134, allocations: 95.95 kB / 482.5 MB, free: 4.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453/1.966, allocations: 235.1 MB / 0.7007 GB, free: 39.08 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.966, allocations: 3.719 kB / 0.7008 GB, free: 39.08 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006757/1.967, allocations: 233.1 kB / 0.701 GB, free: 39.08 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.05894/2.026, allocations: 13.03 MB / 0.7137 GB, free: 34.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/2.026, allocations: 9.188 kB / 0.7137 GB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009547/2.036, allocations: 2.005 MB / 0.7157 GB, free: 34.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03343/2.069, allocations: 3.99 MB / 0.7196 GB, free: 33.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04483/2.114, allocations: 12.25 MB / 0.7315 GB, free: 32.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001148/2.115, allocations: 0.8859 MB / 0.7324 GB, free: 32.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007042/2.122, allocations: 1.18 MB / 0.7335 GB, free: 32.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1155/2.238, allocations: 33.82 MB / 0.7666 GB, free: 10.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007639/2.239, allocations: 108.3 kB / 0.7667 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006566/2.245, allocations: 0.5359 MB / 0.7672 GB, free: 9.918 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005353/2.251, allocations: 2.585 MB / 0.7697 GB, free: 7.738 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1197/2.37, allocations: 31.06 MB / 0.8001 GB, free: 10.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5526/2.923, allocations: 120.4 MB / 0.9177 GB, free: 32.35 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.086/3.009, allocations: 17.35 MB / 0.9346 GB, free: 27.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07019/3.079, allocations: 31.09 MB / 0.965 GB, free: 10.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/3.079, allocations: 83.48 kB / 0.9651 GB, free: 10.35 MB / 474.7 MB Notification: Performance of pre-optimization done (n=489): time 9.247e-06/3.079, allocations: 0 / 0.9651 GB, free: 10.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=726): time 1.681/4.761, allocations: 172.1 MB / 1.133 GB, free: 35.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/4.761, allocations: 205.8 kB / 1.133 GB, free: 35.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01897/4.78, allocations: 7.048 MB / 1.14 GB, free: 28.46 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002625/4.783, allocations: 137.7 kB / 1.14 GB, free: 28.32 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00615/4.789, allocations: 6.835 MB / 1.147 GB, free: 21.63 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005141/4.794, allocations: 2.586 MB / 1.15 GB, free: 19.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004012/4.798, allocations: 288 kB / 1.15 GB, free: 18.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001493/4.8, allocations: 0.9107 MB / 1.151 GB, free: 17.87 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3824/5.182, allocations: 10.31 MB / 1.161 GB, free: 93.15 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03194/5.214, allocations: 16.94 MB / 1.177 GB, free: 84.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03344/5.247, allocations: 13.02 MB / 1.19 GB, free: 84.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000274/5.248, allocations: 64.97 kB / 1.19 GB, free: 84.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.07491/5.323, allocations: 27.45 MB / 1.217 GB, free: 76.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001905/5.323, allocations: 101.2 kB / 1.217 GB, free: 76.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004111/5.323, allocations: 225.6 kB / 1.217 GB, free: 76.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/5.324, allocations: 353.8 kB / 1.218 GB, free: 76.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03773/5.362, allocations: 4.269 MB / 1.222 GB, free: 75.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006124/5.362, allocations: 464.2 kB / 1.222 GB, free: 75.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02307/5.385, allocations: 1.23 MB / 1.223 GB, free: 75.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004942/5.39, allocations: 0.7488 MB / 1.224 GB, free: 75.55 MB / 474.7 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 () * Number of clocked 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.01815/5.409, allocations: 5.46 MB / 1.229 GB, free: 73.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004131/5.413, allocations: 0.7946 MB / 1.23 GB, free: 73.07 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05491/5.468, allocations: 19.6 MB / 1.249 GB, free: 63.95 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-05/5.468, allocations: 80.42 kB / 1.249 GB, free: 63.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/5.468, allocations: 2.531 kB / 1.249 GB, free: 63.95 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001765/5.468, allocations: 33.92 kB / 1.249 GB, free: 63.95 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1138/5.582, allocations: 42.55 MB / 1.291 GB, free: 29.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.921e-05/5.582, allocations: 8 kB / 1.291 GB, free: 29.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02601/5.608, allocations: 2.157 MB / 1.293 GB, free: 27.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/5.608, allocations: 28 kB / 1.293 GB, free: 27.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002631/5.611, allocations: 125.6 kB / 1.293 GB, free: 27.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.744e-05/5.611, allocations: 31.94 kB / 1.293 GB, free: 27.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/5.611, allocations: 8 kB / 1.293 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4419/6.053, allocations: 34.99 MB / 1.327 GB, free: 81.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01041/6.063, allocations: 2.708 MB / 1.33 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004544/6.068, allocations: 120.8 kB / 1.33 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01514/6.083, allocations: 0.7577 MB / 1.331 GB, free: 81.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003282/6.086, allocations: 398.3 kB / 1.331 GB, free: 81.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001832/6.088, allocations: 180.7 kB / 1.331 GB, free: 81.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01417/6.103, allocations: 4.913 MB / 1.336 GB, free: 80.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.222e-06/6.103, allocations: 0 / 1.336 GB, free: 80.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02827/6.131, allocations: 3.166 MB / 1.339 GB, free: 80.99 MB / 474.7 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 () * Number of clocked 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.08221/6.213, allocations: 35.68 MB / 1.374 GB, free: 75.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05403/6.267, allocations: 23.24 MB / 1.397 GB, free: 66.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/6.267, allocations: 2.938 kB / 1.397 GB, free: 66.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02285/6.29, allocations: 9.832 MB / 1.407 GB, free: 62.37 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008873/6.299, allocations: 0.8705 MB / 1.407 GB, free: 61.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5286/6.828, allocations: 213.2 MB / 1.616 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02303/6.851, allocations: 8.281 MB / 1.624 GB, free: 16.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02284/6.874, allocations: 5.698 MB / 1.629 GB, free: 16.97 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/6.874, allocations: 0 / 1.629 GB, free: 16.97 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.006/13.88, allocations: 251.1 MB / 1.874 GB, free: 18.79 MB / 0.5105 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