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.001749/0.00175, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.562/1.562, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009022/0.0009021, allocations: 87.61 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.04e-05/4.066e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.5343, allocations: 109.5 MB / 0.492 GB, free: 9.961 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.5346, allocations: 87.95 kB / 0.4921 GB, free: 9.875 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.401/1.936, allocations: 237.7 MB / 0.7243 GB, free: 40.21 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.724e-06/1.936, allocations: 0 / 0.7243 GB, free: 40.21 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.000638/1.937, allocations: 232.2 kB / 0.7245 GB, free: 40.21 MB / 442.8 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.04405/1.981, allocations: 12.29 MB / 0.7365 GB, free: 36.76 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/1.981, allocations: 9.453 kB / 0.7365 GB, free: 36.76 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01083/1.992, allocations: 2.001 MB / 0.7384 GB, free: 36.62 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02637/2.018, allocations: 3.988 MB / 0.7423 GB, free: 35.87 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03287/2.051, allocations: 11.76 MB / 0.7538 GB, free: 34.67 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/2.052, allocations: 0.8837 MB / 0.7547 GB, free: 34.64 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007654/2.06, allocations: 1.191 MB / 0.7558 GB, free: 34.62 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09458/2.155, allocations: 33.53 MB / 0.7886 GB, free: 29.82 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007002/2.155, allocations: 100.1 kB / 0.7887 GB, free: 29.82 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007045/2.162, allocations: 0.5323 MB / 0.7892 GB, free: 29.82 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004043/2.166, allocations: 2.588 MB / 0.7917 GB, free: 29.8 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07456/2.241, allocations: 30.61 MB / 0.8216 GB, free: 22.66 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5537/2.795, allocations: 120.6 MB / 0.9394 GB, free: 23.73 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0496/2.844, allocations: 17.25 MB / 0.9562 GB, free: 23.04 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01235/2.857, allocations: 8.73 MB / 0.9648 GB, free: 22.99 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05658/2.913, allocations: 31.04 MB / 0.9951 GB, free: 15.09 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.048e-05/2.914, allocations: 81.92 kB / 0.9952 GB, free: 15.05 MB / 490.8 MB Notification: Performance of pre-optimization done (n=489): time 1.122e-05/2.914, allocations: 3.469 kB / 0.9952 GB, free: 15.05 MB / 490.8 MB Notification: Performance of matching and sorting (n=726): time 0.7829/3.697, allocations: 122.5 MB / 1.115 GB, free: 122.8 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/3.697, allocations: 214.2 kB / 1.115 GB, free: 122.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01975/3.717, allocations: 6.893 MB / 1.122 GB, free: 122.2 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002574/3.719, allocations: 142.5 kB / 1.122 GB, free: 122.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.006905/3.726, allocations: 7.07 MB / 1.129 GB, free: 119.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00529/3.731, allocations: 2.578 MB / 1.131 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004583/3.736, allocations: 289.8 kB / 1.132 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001924/3.738, allocations: 0.9084 MB / 1.132 GB, free: 117.4 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01922/3.757, allocations: 10.09 MB / 1.142 GB, free: 117.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02411/3.781, allocations: 16.73 MB / 1.159 GB, free: 109.1 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02151/3.803, allocations: 12.88 MB / 1.171 GB, free: 106.7 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003669/3.803, allocations: 64.31 kB / 1.171 GB, free: 106.7 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.05811/3.862, allocations: 27.27 MB / 1.198 GB, free: 96.35 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007015/3.862, allocations: 104.6 kB / 1.198 GB, free: 96.35 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006031/3.863, allocations: 227.3 kB / 1.198 GB, free: 96.35 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004568/3.863, allocations: 349.8 kB / 1.199 GB, free: 96.35 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02225/3.886, allocations: 4.268 MB / 1.203 GB, free: 95.96 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/3.887, allocations: 455.8 kB / 1.203 GB, free: 95.87 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01888/3.906, allocations: 1.226 MB / 1.204 GB, free: 95.62 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00585/3.912, allocations: 0.7554 MB / 1.205 GB, free: 95.5 MB / 0.5262 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.008336/3.92, allocations: 1.13 MB / 1.206 GB, free: 94.59 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004643/3.925, allocations: 0.8014 MB / 1.207 GB, free: 94.16 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04248/3.967, allocations: 19.39 MB / 1.226 GB, free: 85.39 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001029/3.967, allocations: 73.66 kB / 1.226 GB, free: 85.39 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.459e-05/3.967, allocations: 2.469 kB / 1.226 GB, free: 85.39 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002012/3.968, allocations: 33.52 kB / 1.226 GB, free: 85.39 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09166/4.059, allocations: 42.31 MB / 1.267 GB, free: 54.26 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.274e-05/4.059, allocations: 15.31 kB / 1.267 GB, free: 54.25 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01476/4.074, allocations: 2.147 MB / 1.269 GB, free: 52.75 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/4.074, allocations: 33.91 kB / 1.269 GB, free: 52.72 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002764/4.077, allocations: 128.4 kB / 1.27 GB, free: 52.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001157/4.077, allocations: 31.94 kB / 1.27 GB, free: 52.57 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/4.077, allocations: 11.94 kB / 1.27 GB, free: 52.56 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.452/4.529, allocations: 36.13 MB / 1.305 GB, free: 112 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01039/4.54, allocations: 2.7 MB / 1.308 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004505/4.544, allocations: 121.6 kB / 1.308 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01175/4.556, allocations: 0.7642 MB / 1.308 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002995/4.559, allocations: 392.9 kB / 1.309 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001585/4.561, allocations: 187.5 kB / 1.309 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01152/4.572, allocations: 4.766 MB / 1.314 GB, free: 111.6 MB / 0.5262 GB Notification: Performance of sort global known variables: time 4.21e-07/4.572, allocations: 0 / 1.314 GB, free: 111.6 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01831/4.591, allocations: 3.168 MB / 1.317 GB, free: 111.6 MB / 0.5262 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.04833/4.639, allocations: 35.34 MB / 1.351 GB, free: 103.9 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03398/4.673, allocations: 22.92 MB / 1.374 GB, free: 94.96 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/4.673, allocations: 7.25 kB / 1.374 GB, free: 94.96 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01611/4.689, allocations: 9.724 MB / 1.383 GB, free: 90.68 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007577/4.697, allocations: 0.8587 MB / 1.384 GB, free: 90.28 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08161/4.779, allocations: 32.65 MB / 1.416 GB, free: 74.61 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01537/4.794, allocations: 8.26 MB / 1.424 GB, free: 68.59 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.01795/4.812, allocations: 5.062 MB / 1.429 GB, free: 65.39 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0136/4.826, allocations: 5.588 MB / 1.434 GB, free: 60.19 MB / 0.5262 GB Notification: Performance of SimCode: time 1.192e-06/4.826, allocations: 8.797 kB / 1.434 GB, free: 60.19 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9504/5.776, allocations: 225.4 MB / 1.654 GB, free: 45.39 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/5.776, allocations: 180.4 kB / 1.655 GB, free: 45.16 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.752/15.53, allocations: 1.219 kB / 1.655 GB, free: 45.16 MB / 0.5262 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