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.0009699/0.00097, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.32/1.32, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008315/0.0008314, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.613e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0834/0.08344, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3364/0.4199, allocations: 94.25 MB / 464.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.4202, allocations: 82.92 kB / 464.5 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5328/0.953, allocations: 123.5 MB / 0.5742 GB, free: 88.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.9531, allocations: 0 / 0.5742 GB, free: 88.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002769/0.9533, allocations: 123.9 kB / 0.5743 GB, free: 88.9 MB / 410.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.01695/0.9703, allocations: 6.52 MB / 0.5807 GB, free: 86.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.9704, allocations: 9.531 kB / 0.5807 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003404/0.9738, allocations: 1.212 MB / 0.5819 GB, free: 86.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03265/1.006, allocations: 9.436 MB / 0.5911 GB, free: 85.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01919/1.026, allocations: 8.573 MB / 0.5995 GB, free: 81.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003254/1.026, allocations: 437.1 kB / 0.5999 GB, free: 81.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002487/1.029, allocations: 0.5803 MB / 0.6004 GB, free: 81.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0297/1.058, allocations: 14.71 MB / 0.6148 GB, free: 65.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003641/1.059, allocations: 87.23 kB / 0.6149 GB, free: 65.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002019/1.061, allocations: 271.8 kB / 0.6152 GB, free: 65.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00189/1.063, allocations: 1.447 MB / 0.6166 GB, free: 63.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02524/1.088, allocations: 12.83 MB / 0.6291 GB, free: 51.03 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07108/1.159, allocations: 64.75 MB / 0.6923 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2342/1.393, allocations: 7.799 MB / 0.6999 GB, free: 96.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006337/1.4, allocations: 5.154 MB / 0.705 GB, free: 96.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01637/1.416, allocations: 12.99 MB / 0.7177 GB, free: 94.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.416, allocations: 73.69 kB / 0.7177 GB, free: 94.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 6.723e-06/1.416, allocations: 0 / 0.7177 GB, free: 94.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.2119/1.628, allocations: 79.76 MB / 0.7956 GB, free: 51.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/1.628, allocations: 269.8 kB / 0.7959 GB, free: 50.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005995/1.634, allocations: 4.74 MB / 0.8005 GB, free: 46.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001422/1.636, allocations: 117.7 kB / 0.8006 GB, free: 45.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.638, allocations: 4.017 MB / 0.8045 GB, free: 41.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002729/1.64, allocations: 2.112 MB / 0.8066 GB, free: 39.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/1.642, allocations: 190.4 kB / 0.8068 GB, free: 39.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003723/1.642, allocations: 0.7147 MB / 0.8075 GB, free: 38.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009846/1.652, allocations: 8.555 MB / 0.8158 GB, free: 30.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/1.664, allocations: 12.67 MB / 0.8282 GB, free: 15.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.677, allocations: 10.52 MB / 0.8385 GB, free: 5.188 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.088e-05/1.677, allocations: 40 kB / 0.8385 GB, free: 5.148 MB / 426.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.3012/1.978, allocations: 40.09 MB / 0.8777 GB, free: 91.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/1.979, allocations: 62.19 kB / 0.8777 GB, free: 91.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001787/1.979, allocations: 137.5 kB / 0.8779 GB, free: 91.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05908/2.038, allocations: 21.51 MB / 0.8989 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004725/2.043, allocations: 1.442 MB / 0.9003 GB, free: 88.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4095/2.452, allocations: 144.4 MB / 1.041 GB, free: 97.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01157/2.464, allocations: 0.731 MB / 1.042 GB, free: 97.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002823/2.467, allocations: 0.5325 MB / 1.043 GB, free: 97.13 MB / 458.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.003313/2.47, allocations: 0.7248 MB / 1.043 GB, free: 97.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001725/2.472, allocations: 0.6049 MB / 1.044 GB, free: 97.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07788/2.55, allocations: 36.12 MB / 1.079 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.359e-05/2.55, allocations: 59.84 kB / 1.079 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001111/2.55, allocations: 63.53 kB / 1.079 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001237/2.55, allocations: 31.69 kB / 1.079 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1066/2.657, allocations: 57.03 MB / 1.135 GB, free: 51.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.077e-05/2.657, allocations: 4 kB / 1.135 GB, free: 51.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/2.658, allocations: 275.6 kB / 1.135 GB, free: 51.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05252/2.711, allocations: 20.71 MB / 1.155 GB, free: 30.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001572/2.712, allocations: 105.5 kB / 1.156 GB, free: 30.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4247/3.137, allocations: 132.2 MB / 1.285 GB, free: 58.13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.423e-06/3.137, allocations: 3.609 kB / 1.285 GB, free: 58.13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08892/3.226, allocations: 48.56 MB / 1.332 GB, free: 18.08 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006167/3.232, allocations: 2.4 MB / 1.334 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002452/3.235, allocations: 96 kB / 1.334 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007728/3.243, allocations: 0.4933 MB / 1.335 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004538/3.247, allocations: 0.5097 MB / 1.335 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001385/3.249, allocations: 140 kB / 1.336 GB, free: 14.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005423/3.254, allocations: 3.371 MB / 1.339 GB, free: 11.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.462e-06/3.254, allocations: 0 / 1.339 GB, free: 11.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01632/3.27, allocations: 3.446 MB / 1.342 GB, free: 7.656 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 () * 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.3551/3.625, allocations: 49.18 MB / 1.39 GB, free: 97.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03889/3.664, allocations: 24.19 MB / 1.414 GB, free: 88.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/3.664, allocations: 0 / 1.414 GB, free: 88.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02487/3.689, allocations: 13.58 MB / 1.427 GB, free: 79.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005936/3.695, allocations: 0.7056 MB / 1.428 GB, free: 79.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0478/3.743, allocations: 23.32 MB / 1.451 GB, free: 58.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009039/3.752, allocations: 5.328 MB / 1.456 GB, free: 54.99 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005545/3.758, allocations: 2.091 MB / 1.458 GB, free: 53.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004223/3.762, allocations: 3.058 MB / 1.461 GB, free: 50.94 MB / 458.7 MB Notification: Performance of SimCode: time 1.793e-06/3.762, allocations: 0 / 1.461 GB, free: 50.94 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.926/4.688, allocations: 291.6 MB / 1.746 GB, free: 108.9 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/4.688, allocations: 185.4 kB / 1.746 GB, free: 108.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.851/12.54, allocations: 0 / 1.746 GB, free: 108.7 MB / 490.7 MB (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