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.001645/0.001645, allocations: 179.9 kB / 16.38 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.331/1.331, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0009605/0.0009607, allocations: 88.84 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002895, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2447, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3658, allocations: 95.87 MB / 497.4 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.3661, allocations: 87.95 kB / 497.5 MB, free: 472 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4846/0.8507, allocations: 124.8 MB / 0.6078 GB, free: 3.848 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.8508, allocations: 0 / 0.6078 GB, free: 3.848 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003702/0.8512, allocations: 124 kB / 0.6079 GB, free: 3.727 MB / 378.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.02296/0.8741, allocations: 7.073 MB / 0.6148 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.8742, allocations: 12.03 kB / 0.6148 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004625/0.8788, allocations: 1.205 MB / 0.616 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03597/0.9148, allocations: 9.414 MB / 0.6252 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02575/0.9406, allocations: 8.137 MB / 0.6331 GB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006365/0.9413, allocations: 435.4 kB / 0.6336 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004133/0.9455, allocations: 0.5815 MB / 0.6341 GB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04037/0.9859, allocations: 14.82 MB / 0.6486 GB, free: 8.676 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004954/0.9864, allocations: 87.2 kB / 0.6487 GB, free: 8.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002293/0.9887, allocations: 271.9 kB / 0.6489 GB, free: 8.324 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002274/0.991, allocations: 1.451 MB / 0.6504 GB, free: 6.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3115/1.303, allocations: 13 MB / 0.6631 GB, free: 68.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07513/1.378, allocations: 64.67 MB / 0.7262 GB, free: 33.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.395, allocations: 7.868 MB / 0.7339 GB, free: 30.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02011/1.416, allocations: 12.95 MB / 0.7465 GB, free: 24.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.945e-05/1.416, allocations: 65.78 kB / 0.7466 GB, free: 24.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 6.552e-06/1.416, allocations: 0 / 0.7466 GB, free: 24.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 1.884/3.3, allocations: 266 MB / 1.006 GB, free: 104.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/3.3, allocations: 273.1 kB / 1.007 GB, free: 104.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007152/3.307, allocations: 4.726 MB / 1.011 GB, free: 103.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001985/3.309, allocations: 115.4 kB / 1.011 GB, free: 103.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003309/3.313, allocations: 4.015 MB / 1.015 GB, free: 102.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003685/3.316, allocations: 2.114 MB / 1.017 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/3.318, allocations: 187.3 kB / 1.018 GB, free: 101.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004918/3.318, allocations: 0.7116 MB / 1.018 GB, free: 101.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01221/3.33, allocations: 8.676 MB / 1.027 GB, free: 101.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01396/3.344, allocations: 12.78 MB / 1.039 GB, free: 96.08 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01434/3.359, allocations: 10.59 MB / 1.049 GB, free: 92.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001525/3.359, allocations: 40.88 kB / 1.05 GB, free: 92.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1179/3.477, allocations: 40.33 MB / 1.089 GB, free: 80.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004077/3.477, allocations: 67.03 kB / 1.089 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004847/3.478, allocations: 139.9 kB / 1.089 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06538/3.543, allocations: 21.55 MB / 1.11 GB, free: 69.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00513/3.548, allocations: 1.441 MB / 1.112 GB, free: 68.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5094/4.058, allocations: 151.1 MB / 1.259 GB, free: 67.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/4.069, allocations: 0.7253 MB / 1.26 GB, free: 66.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002967/4.072, allocations: 0.5284 MB / 1.26 GB, free: 66.27 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 () * Number of clocked 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.008831/4.081, allocations: 3.116 MB / 1.263 GB, free: 63.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/4.083, allocations: 0.5987 MB / 1.264 GB, free: 63.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07262/4.156, allocations: 36.29 MB / 1.299 GB, free: 36.51 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.533e-05/4.156, allocations: 65.89 kB / 1.3 GB, free: 36.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001586/4.156, allocations: 67.95 kB / 1.3 GB, free: 36.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/4.156, allocations: 26.53 kB / 1.3 GB, free: 36.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4161/4.572, allocations: 57.19 MB / 1.355 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001154/4.573, allocations: 7.391 kB / 1.355 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/4.574, allocations: 263.7 kB / 1.356 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06251/4.637, allocations: 20.77 MB / 1.376 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002322/4.639, allocations: 98.48 kB / 1.376 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4857/5.125, allocations: 138.9 MB / 1.512 GB, free: 97.85 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/5.125, allocations: 0 / 1.512 GB, free: 97.85 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0934/5.219, allocations: 48.79 MB / 1.559 GB, free: 96.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/5.221, allocations: 0.6146 MB / 1.56 GB, free: 96.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003202/5.224, allocations: 97.22 kB / 1.56 GB, free: 96.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007718/5.232, allocations: 0.494 MB / 1.561 GB, free: 96.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00434/5.236, allocations: 0.5102 MB / 1.561 GB, free: 96.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00127/5.237, allocations: 144.6 kB / 1.561 GB, free: 96.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006432/5.244, allocations: 3.376 MB / 1.564 GB, free: 96.37 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.81e-07/5.244, allocations: 2.406 kB / 1.564 GB, free: 96.37 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01801/5.262, allocations: 3.442 MB / 1.568 GB, free: 96.37 MB / 490.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 () * Number of clocked 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.09176/5.354, allocations: 49.45 MB / 1.616 GB, free: 71.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04054/5.394, allocations: 24.53 MB / 1.64 GB, free: 50.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/5.394, allocations: 0 / 1.64 GB, free: 50.68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02422/5.418, allocations: 13.8 MB / 1.654 GB, free: 38.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006803/5.425, allocations: 0.7016 MB / 1.654 GB, free: 38.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4799/5.905, allocations: 200.8 MB / 1.85 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007996/5.913, allocations: 5.306 MB / 1.856 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005924/5.919, allocations: 2.086 MB / 1.858 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005026/5.924, allocations: 3.042 MB / 1.861 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of SimCode: time 1.533e-06/5.924, allocations: 3.969 kB / 1.861 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9334/6.858, allocations: 291 MB / 2.145 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/6.858, allocations: 216.6 kB / 2.145 GB, free: 137 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.286/16.14, allocations: 0 / 2.145 GB, free: 137 MB / 0.5261 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