Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 181 kB / 17.01 MB, free: 5.121 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.213/1.213, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008131/0.0008131, allocations: 86.7 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2028, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1015/0.3043, allocations: 94.35 MB / 470.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.3046, allocations: 87.95 kB / 470.3 MB, free: 2.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4218/0.7265, allocations: 123.4 MB / 0.5799 GB, free: 35.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.7265, allocations: 4 kB / 0.5799 GB, free: 35.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004286/0.727, allocations: 120 kB / 0.58 GB, free: 35.5 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.0223/0.7493, allocations: 7.128 MB / 0.587 GB, free: 28.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.7494, allocations: 12.03 kB / 0.587 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004956/0.7543, allocations: 1.209 MB / 0.5881 GB, free: 27.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0324/0.7867, allocations: 9.414 MB / 0.5973 GB, free: 17.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01946/0.8063, allocations: 8.618 MB / 0.6058 GB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004819/0.8068, allocations: 435.4 kB / 0.6062 GB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003627/0.8104, allocations: 0.5777 MB / 0.6067 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03093/0.8414, allocations: 14.83 MB / 0.6212 GB, free: 7.902 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004317/0.8419, allocations: 91.17 kB / 0.6213 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002267/0.8441, allocations: 271.9 kB / 0.6216 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002197/0.8464, allocations: 1.435 MB / 0.623 GB, free: 6.109 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02574/0.8721, allocations: 13.01 MB / 0.6357 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2682/1.14, allocations: 64.75 MB / 0.6989 GB, free: 34.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01713/1.158, allocations: 7.857 MB / 0.7066 GB, free: 34.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01847/1.176, allocations: 13 MB / 0.7193 GB, free: 30.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/1.176, allocations: 73.03 kB / 0.7193 GB, free: 30.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 5.34e-06/1.176, allocations: 0 / 0.7193 GB, free: 30.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 1.687/2.864, allocations: 266.2 MB / 0.9793 GB, free: 98.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/2.864, allocations: 270.9 kB / 0.9795 GB, free: 97.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007979/2.872, allocations: 4.78 MB / 0.9842 GB, free: 97.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001611/2.873, allocations: 120.2 kB / 0.9843 GB, free: 97.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002523/2.876, allocations: 4.017 MB / 0.9882 GB, free: 96.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002722/2.879, allocations: 2.114 MB / 0.9903 GB, free: 95.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/2.88, allocations: 190.9 kB / 0.9905 GB, free: 95.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004022/2.88, allocations: 0.7085 MB / 0.9912 GB, free: 94.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/2.892, allocations: 8.672 MB / 0.9996 GB, free: 94.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01375/2.906, allocations: 12.78 MB / 1.012 GB, free: 86.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/2.921, allocations: 10.58 MB / 1.022 GB, free: 82.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001903/2.921, allocations: 36.97 kB / 1.022 GB, free: 82.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.08874/3.01, allocations: 40.33 MB / 1.062 GB, free: 65.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001866/3.01, allocations: 64 kB / 1.062 GB, free: 64.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002301/3.01, allocations: 140 kB / 1.062 GB, free: 64.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06002/3.07, allocations: 21.56 MB / 1.083 GB, free: 44.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004579/3.075, allocations: 1.435 MB / 1.085 GB, free: 43.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4093/3.484, allocations: 151.1 MB / 1.232 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01078/3.495, allocations: 0.7317 MB / 1.233 GB, free: 42.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002594/3.498, allocations: 0.5257 MB / 1.233 GB, free: 41.59 MB / 442.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.00779/3.506, allocations: 3.123 MB / 1.236 GB, free: 39.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002137/3.508, allocations: 0.5989 MB / 1.237 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07796/3.586, allocations: 36.29 MB / 1.272 GB, free: 7.047 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.876e-05/3.586, allocations: 63.95 kB / 1.272 GB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001657/3.586, allocations: 64 kB / 1.273 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/3.586, allocations: 31.89 kB / 1.273 GB, free: 6.891 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2949/3.881, allocations: 57.19 MB / 1.328 GB, free: 95.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-05/3.881, allocations: 4.688 kB / 1.328 GB, free: 95.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/3.883, allocations: 276 kB / 1.329 GB, free: 95.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05642/3.939, allocations: 20.76 MB / 1.349 GB, free: 93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001741/3.941, allocations: 96.62 kB / 1.349 GB, free: 92.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3457/4.286, allocations: 138.9 MB / 1.485 GB, free: 91.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/4.287, allocations: 3.906 kB / 1.485 GB, free: 91.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08555/4.372, allocations: 48.8 MB / 1.532 GB, free: 79.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007152/4.379, allocations: 2.407 MB / 1.535 GB, free: 78.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001957/4.381, allocations: 93.42 kB / 1.535 GB, free: 77.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005911/4.387, allocations: 0.4942 MB / 1.535 GB, free: 77.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002703/4.39, allocations: 0.5068 MB / 1.536 GB, free: 77.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006979/4.391, allocations: 143.7 kB / 1.536 GB, free: 77.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005317/4.396, allocations: 3.426 MB / 1.539 GB, free: 75.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/4.396, allocations: 0 / 1.539 GB, free: 75.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01334/4.409, allocations: 3.435 MB / 1.543 GB, free: 72.16 MB / 458.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.08413/4.493, allocations: 49.44 MB / 1.591 GB, free: 29.85 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03782/4.531, allocations: 24.54 MB / 1.615 GB, free: 5.293 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/4.531, allocations: 4 kB / 1.615 GB, free: 5.289 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1999/4.731, allocations: 13.79 MB / 1.628 GB, free: 93.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003677/4.735, allocations: 0.7001 MB / 1.629 GB, free: 93.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3716/5.107, allocations: 201.3 MB / 1.826 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005773/5.112, allocations: 5.328 MB / 1.831 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004966/5.117, allocations: 2.084 MB / 1.833 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003331/5.121, allocations: 3.063 MB / 1.836 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/5.121, allocations: 0 / 1.836 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4913/5.612, allocations: 291.4 MB / 2.12 GB, free: 64.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/5.612, allocations: 211.6 kB / 2.121 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/13.17, allocations: 3.938 kB / 2.121 GB, free: 64.49 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat