Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 181.4 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 90.27 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002587, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2625, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4028, allocations: 109.5 MB / 0.4991 GB, free: 2.867 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.4032, allocations: 91.95 kB / 0.4992 GB, free: 2.777 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.049/1.453, allocations: 237.6 MB / 0.7312 GB, free: 38.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.453, allocations: 0 / 0.7312 GB, free: 38.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001001/1.454, allocations: 237.9 kB / 0.7315 GB, free: 38.72 MB / 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.05189/1.506, allocations: 12.99 MB / 0.7442 GB, free: 34.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/1.506, allocations: 10.78 kB / 0.7442 GB, free: 34.38 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01178/1.517, allocations: 2.004 MB / 0.7461 GB, free: 34.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02449/1.542, allocations: 3.989 MB / 0.75 GB, free: 33.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03779/1.58, allocations: 11.82 MB / 0.7616 GB, free: 31.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001291/1.581, allocations: 0.887 MB / 0.7624 GB, free: 31.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008056/1.589, allocations: 1.182 MB / 0.7636 GB, free: 30.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08757/1.677, allocations: 33.82 MB / 0.7966 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007409/1.678, allocations: 99.09 kB / 0.7967 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006746/1.684, allocations: 0.533 MB / 0.7972 GB, free: 14.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00439/1.689, allocations: 2.587 MB / 0.7997 GB, free: 12.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3668/2.056, allocations: 31.05 MB / 0.8301 GB, free: 61.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1706/2.226, allocations: 120.4 MB / 0.9476 GB, free: 14.17 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04722/2.274, allocations: 17.35 MB / 0.9646 GB, free: 9.707 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05581/2.329, allocations: 31.06 MB / 0.9949 GB, free: 3.777 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.007e-05/2.33, allocations: 83.95 kB / 0.995 GB, free: 3.688 MB / 490.7 MB Notification: Performance of pre-optimization done (n=489): time 8.406e-06/2.33, allocations: 0 / 0.995 GB, free: 3.688 MB / 490.7 MB Notification: Performance of matching and sorting (n=726): time 0.9661/3.296, allocations: 171.7 MB / 1.163 GB, free: 27.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/3.296, allocations: 208.2 kB / 1.163 GB, free: 27.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01559/3.311, allocations: 7.007 MB / 1.17 GB, free: 20.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002589/3.314, allocations: 137.7 kB / 1.17 GB, free: 20.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005385/3.319, allocations: 7.073 MB / 1.177 GB, free: 13.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004874/3.324, allocations: 2.576 MB / 1.179 GB, free: 10.95 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003547/3.328, allocations: 290.8 kB / 1.18 GB, free: 10.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.3259/3.654, allocations: 0.9087 MB / 1.18 GB, free: 97.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01836/3.672, allocations: 10.31 MB / 1.19 GB, free: 97.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0215/3.694, allocations: 16.94 MB / 1.207 GB, free: 89.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02029/3.714, allocations: 13.01 MB / 1.22 GB, free: 89.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004495/3.715, allocations: 63.53 kB / 1.22 GB, free: 89.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.05248/3.767, allocations: 27.69 MB / 1.247 GB, free: 78.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002706/3.768, allocations: 107.5 kB / 1.247 GB, free: 78.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00044/3.768, allocations: 227.7 kB / 1.247 GB, free: 78.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003425/3.768, allocations: 352.5 kB / 1.247 GB, free: 78.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01993/3.788, allocations: 4.262 MB / 1.252 GB, free: 77.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000461/3.789, allocations: 460.6 kB / 1.252 GB, free: 77.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01621/3.805, allocations: 1.229 MB / 1.253 GB, free: 77.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004138/3.809, allocations: 0.7492 MB / 1.254 GB, free: 77.47 MB / 490.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.01411/3.823, allocations: 5.453 MB / 1.259 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00269/3.826, allocations: 0.7964 MB / 1.26 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02968/3.856, allocations: 19.61 MB / 1.279 GB, free: 63.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.578e-05/3.856, allocations: 70.81 kB / 1.279 GB, free: 63.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.107e-05/3.856, allocations: 5.875 kB / 1.279 GB, free: 63.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.588e-05/3.856, allocations: 31.59 kB / 1.279 GB, free: 63.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07456/3.931, allocations: 42.54 MB / 1.321 GB, free: 27.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.02e-05/3.931, allocations: 11.06 kB / 1.321 GB, free: 27.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01337/3.944, allocations: 2.151 MB / 1.323 GB, free: 26.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/3.944, allocations: 32 kB / 1.323 GB, free: 26.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001961/3.946, allocations: 127.5 kB / 1.323 GB, free: 25.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.85e-05/3.946, allocations: 31.94 kB / 1.323 GB, free: 25.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/3.946, allocations: 11.7 kB / 1.323 GB, free: 25.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3836/4.33, allocations: 35.56 MB / 1.358 GB, free: 87.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009826/4.34, allocations: 2.709 MB / 1.361 GB, free: 87.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004264/4.344, allocations: 119.6 kB / 1.361 GB, free: 87.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009314/4.353, allocations: 0.7634 MB / 1.361 GB, free: 87.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00204/4.355, allocations: 389.8 kB / 1.362 GB, free: 87.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008191/4.356, allocations: 180.4 kB / 1.362 GB, free: 87.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01137/4.368, allocations: 4.883 MB / 1.367 GB, free: 87.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.62e-07/4.368, allocations: 0 / 1.367 GB, free: 87.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01865/4.386, allocations: 3.166 MB / 1.37 GB, free: 87.01 MB / 490.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.05333/4.44, allocations: 35.68 MB / 1.405 GB, free: 80.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0359/4.476, allocations: 23.24 MB / 1.427 GB, free: 71.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/4.476, allocations: 1.75 kB / 1.427 GB, free: 71.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01595/4.492, allocations: 9.835 MB / 1.437 GB, free: 67.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008817/4.5, allocations: 0.8628 MB / 1.438 GB, free: 67.05 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4556/4.956, allocations: 211.8 MB / 1.645 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02566/4.982, allocations: 8.263 MB / 1.653 GB, free: 23.42 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.02279/5.005, allocations: 5.065 MB / 1.658 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0192/5.024, allocations: 5.586 MB / 1.663 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/5.024, allocations: 0 / 1.663 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6079/5.632, allocations: 221.7 MB / 1.88 GB, free: 63.63 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/5.632, allocations: 205.7 kB / 1.88 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.831/15.46, allocations: 0 / 1.88 GB, free: 63.39 MB / 0.5261 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat