Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001648/0.001648, 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.42/1.42, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.000885/0.000885, allocations: 87.86 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.232e-05, allocations: 3.984 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4653, allocations: 95.79 MB / 490.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4656, allocations: 87.94 kB / 490.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5949/1.061, allocations: 124.9 MB / 0.6007 GB, free: 93.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.061, allocations: 0 / 0.6007 GB, free: 93.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004533/1.061, allocations: 129.2 kB / 0.6008 GB, free: 93.75 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02024/1.081, allocations: 6.494 MB / 0.6072 GB, free: 90.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/1.081, allocations: 7 kB / 0.6072 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004329/1.086, allocations: 1.204 MB / 0.6084 GB, free: 89.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03452/1.12, allocations: 9.425 MB / 0.6176 GB, free: 85.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02/1.14, allocations: 8.099 MB / 0.6255 GB, free: 77.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003923/1.141, allocations: 436.5 kB / 0.6259 GB, free: 77.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003234/1.144, allocations: 0.5776 MB / 0.6265 GB, free: 76.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.179, allocations: 14.72 MB / 0.6408 GB, free: 61.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004938/1.18, allocations: 91.14 kB / 0.6409 GB, free: 60.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002589/1.183, allocations: 273.2 kB / 0.6412 GB, free: 60.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002148/1.185, allocations: 1.445 MB / 0.6426 GB, free: 59.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02523/1.21, allocations: 12.82 MB / 0.6551 GB, free: 46.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3781/1.588, allocations: 64.67 MB / 0.7183 GB, free: 88.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02201/1.61, allocations: 7.805 MB / 0.7259 GB, free: 87.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008267/1.619, allocations: 5.155 MB / 0.7309 GB, free: 87.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02224/1.641, allocations: 12.94 MB / 0.7436 GB, free: 86.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/1.641, allocations: 70.72 kB / 0.7436 GB, free: 86.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=340): time 6.803e-06/1.641, allocations: 3.281 kB / 0.7436 GB, free: 86.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=604): time 0.2406/1.881, allocations: 79.61 MB / 0.8214 GB, free: 45.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/1.882, allocations: 272.8 kB / 0.8216 GB, free: 45.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.892, allocations: 4.676 MB / 0.8262 GB, free: 40.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002328/1.895, allocations: 114.6 kB / 0.8263 GB, free: 40.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003039/1.898, allocations: 4.004 MB / 0.8302 GB, free: 36.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003381/1.901, allocations: 2.112 MB / 0.8323 GB, free: 34.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002318/1.903, allocations: 196 kB / 0.8325 GB, free: 34.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008306/1.904, allocations: 0.7069 MB / 0.8332 GB, free: 33.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01262/1.917, allocations: 8.559 MB / 0.8415 GB, free: 24.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01583/1.933, allocations: 12.67 MB / 0.8539 GB, free: 10.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01579/1.949, allocations: 10.51 MB / 0.8641 GB, free: 15.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/1.949, allocations: 40 kB / 0.8642 GB, free: 15.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.4445/2.393, allocations: 40.11 MB / 0.9033 GB, free: 109.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002488/2.394, allocations: 67.36 kB / 0.9034 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000272/2.394, allocations: 139.4 kB / 0.9035 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06578/2.46, allocations: 21.51 MB / 0.9245 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005885/2.466, allocations: 1.437 MB / 0.926 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5378/3.003, allocations: 144.4 MB / 1.067 GB, free: 98.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01306/3.017, allocations: 0.7218 MB / 1.068 GB, free: 98.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003603/3.02, allocations: 0.5303 MB / 1.068 GB, free: 98.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00499/3.025, allocations: 0.735 MB / 1.069 GB, free: 98.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002946/3.028, allocations: 0.5887 MB / 1.069 GB, free: 98.52 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09002/3.118, allocations: 36.13 MB / 1.105 GB, free: 95.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/3.118, allocations: 60.84 kB / 1.105 GB, free: 95.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000195/3.119, allocations: 63.72 kB / 1.105 GB, free: 95.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001746/3.119, allocations: 31.2 kB / 1.105 GB, free: 95.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.12/3.239, allocations: 57.02 MB / 1.161 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/3.239, allocations: 2.156 kB / 1.161 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/3.241, allocations: 272.4 kB / 1.161 GB, free: 65.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05749/3.298, allocations: 20.72 MB / 1.181 GB, free: 44.99 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001994/3.3, allocations: 93.31 kB / 1.181 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4968/3.797, allocations: 132.2 MB / 1.31 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/3.797, allocations: 7.5 kB / 1.31 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08916/3.886, allocations: 48.53 MB / 1.358 GB, free: 38.33 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/3.889, allocations: 0.6204 MB / 1.358 GB, free: 37.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003252/3.892, allocations: 99.95 kB / 1.358 GB, free: 37.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008338/3.9, allocations: 0.4935 MB / 1.359 GB, free: 37.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004591/3.905, allocations: 0.503 MB / 1.359 GB, free: 37.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00177/3.907, allocations: 143.8 kB / 1.359 GB, free: 36.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007095/3.914, allocations: 3.333 MB / 1.363 GB, free: 33.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.91e-07/3.914, allocations: 3.688 kB / 1.363 GB, free: 33.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01706/3.931, allocations: 3.428 MB / 1.366 GB, free: 30.54 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.3684/4.299, allocations: 49.19 MB / 1.414 GB, free: 94.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03762/4.337, allocations: 24.2 MB / 1.438 GB, free: 93.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/4.337, allocations: 5.281 kB / 1.438 GB, free: 93.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02373/4.361, allocations: 13.57 MB / 1.451 GB, free: 88.58 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005878/4.367, allocations: 0.7142 MB / 1.452 GB, free: 88.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06371/4.431, allocations: 23.25 MB / 1.474 GB, free: 79.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/4.443, allocations: 5.303 MB / 1.48 GB, free: 78.28 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007657/4.45, allocations: 2.093 MB / 1.482 GB, free: 78.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006147/4.457, allocations: 3.046 MB / 1.485 GB, free: 75.38 MB / 474.7 MB Notification: Performance of SimCode: time 1.442e-06/4.457, allocations: 0 / 1.485 GB, free: 75.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.024/5.481, allocations: 291.3 MB / 1.769 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/5.481, allocations: 192 kB / 1.769 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.551/15.03, allocations: 0 / 1.769 GB, free: 117.2 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat