Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001575/0.001575, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001116/0.001116, allocations: 89.55 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000517/0.0005172, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3307, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.08342/0.4141, allocations: 64.48 MB / 439.1 MB, free: 196 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04369/0.4579, allocations: 14.99 MB / 454.1 MB, free: 1.156 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01367/0.4716, allocations: 335.1 kB / 454.4 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01156/0.4832, allocations: 3.227 MB / 457.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03746/0.5207, allocations: 9.264 MB / 466.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006239/0.527, allocations: 0.9869 MB / 467.9 MB, free: 3.312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.415/0.942, allocations: 40.36 MB / 0.4964 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01375/0.9558, allocations: 6.554 MB / 0.5028 GB, free: 36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004561/0.9604, allocations: 1.676 MB / 0.5044 GB, free: 36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005655/0.9661, allocations: 2.241 MB / 0.5066 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002014/0.9682, allocations: 216.3 kB / 0.5068 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004886/0.9731, allocations: 1.073 MB / 0.5078 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004596/0.9777, allocations: 2.427 MB / 0.5102 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003131/0.9809, allocations: 1.23 MB / 0.5114 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01295/0.9939, allocations: 8.149 MB / 0.5194 GB, free: 32.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.9939, allocations: 0 / 0.5194 GB, free: 32.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.994, allocations: 0 / 0.5194 GB, free: 32.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004306/0.9944, allocations: 4 kB / 0.5194 GB, free: 32.81 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.02728/1.022, allocations: 6.952 MB / 0.5262 GB, free: 28.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/1.022, allocations: 7.438 kB / 0.5262 GB, free: 28.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004398/1.026, allocations: 1.088 MB / 0.5272 GB, free: 28.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.12/1.146, allocations: 11.2 MB / 0.5382 GB, free: 19.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/1.163, allocations: 5.527 MB / 0.5436 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/1.164, allocations: 339.1 kB / 0.5439 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002456/1.166, allocations: 461 kB / 0.5443 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03961/1.206, allocations: 14.67 MB / 0.5587 GB, free: 3.086 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003954/1.206, allocations: 74.86 kB / 0.5587 GB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002224/1.209, allocations: 213.1 kB / 0.5589 GB, free: 2.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009306/1.218, allocations: 2.836 MB / 0.5617 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04457/1.263, allocations: 13.24 MB / 0.5746 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1211/1.384, allocations: 58.5 MB / 0.6318 GB, free: 5.988 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03454/1.418, allocations: 7.998 MB / 0.6396 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03736/1.456, allocations: 12.8 MB / 0.6521 GB, free: 1.016 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.898e-05/1.456, allocations: 75.36 kB / 0.6521 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of pre-optimization done (n=326): time 7.434e-06/1.456, allocations: 4 kB / 0.6521 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of matching and sorting (n=572): time 4.342/5.798, allocations: 409.2 MB / 1.052 GB, free: 170 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/5.798, allocations: 265.6 kB / 1.052 GB, free: 169.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01328/5.812, allocations: 5.895 MB / 1.058 GB, free: 168 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002552/5.814, allocations: 114.3 kB / 1.058 GB, free: 167.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003513/5.818, allocations: 3.8 MB / 1.062 GB, free: 165.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004671/5.822, allocations: 2.005 MB / 1.064 GB, free: 164 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003019/5.826, allocations: 186.8 kB / 1.064 GB, free: 163.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007119/5.826, allocations: 0.7075 MB / 1.064 GB, free: 163.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02399/5.85, allocations: 10.84 MB / 1.075 GB, free: 159.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02689/5.877, allocations: 14.91 MB / 1.09 GB, free: 149.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02719/5.905, allocations: 12.68 MB / 1.102 GB, free: 141.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/5.905, allocations: 40 kB / 1.102 GB, free: 141.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.9543/6.859, allocations: 140.1 MB / 1.239 GB, free: 154.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/6.859, allocations: 66.03 kB / 1.239 GB, free: 154.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000268/6.859, allocations: 140.1 kB / 1.239 GB, free: 154.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1557/7.015, allocations: 34.64 MB / 1.273 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008865/7.024, allocations: 1.478 MB / 1.274 GB, free: 144.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8001/7.824, allocations: 197.5 MB / 1.467 GB, free: 123.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0229/7.847, allocations: 1.712 MB / 1.469 GB, free: 122.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003473/7.851, allocations: 0.5215 MB / 1.469 GB, free: 121.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01125/7.862, allocations: 3.098 MB / 1.472 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003276/7.865, allocations: 0.5852 MB / 1.473 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9412/8.806, allocations: 136.4 MB / 1.606 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001034/8.807, allocations: 59.38 kB / 1.606 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002055/8.807, allocations: 60.03 kB / 1.606 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001241/8.807, allocations: 27.89 kB / 1.606 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.133/9.94, allocations: 206.2 MB / 1.808 GB, free: 135.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001173/9.94, allocations: 7.375 kB / 1.808 GB, free: 135.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004219/9.944, allocations: 335 kB / 1.808 GB, free: 135.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1798/10.12, allocations: 33.75 MB / 1.841 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00226/10.13, allocations: 96 kB / 1.841 GB, free: 115.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7475/10.87, allocations: 180.6 MB / 2.017 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/10.87, allocations: 12.88 kB / 2.017 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9791/11.85, allocations: 153 MB / 2.167 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01109/11.86, allocations: 3.02 MB / 2.17 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004123/11.87, allocations: 97.31 kB / 2.17 GB, free: 107.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01787/11.89, allocations: 1.484 MB / 2.171 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006581/11.89, allocations: 0.4944 MB / 2.172 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001924/11.89, allocations: 142.3 kB / 2.172 GB, free: 105.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009074/11.9, allocations: 3.819 MB / 2.176 GB, free: 103.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.11e-07/11.9, allocations: 4 kB / 2.176 GB, free: 103.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02067/11.92, allocations: 3.824 MB / 2.179 GB, free: 99.51 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * 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 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.9819/12.91, allocations: 154.8 MB / 2.33 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.09911/13.01, allocations: 33.34 MB / 2.363 GB, free: 75.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/13.01, allocations: 3.984 kB / 2.363 GB, free: 75.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.07181/13.08, allocations: 20.47 MB / 2.383 GB, free: 55.36 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007676/13.09, allocations: 0.7081 MB / 2.384 GB, free: 54.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.476/14.56, allocations: 309.1 MB / 2.686 GB, free: 103.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01059/14.57, allocations: 5.265 MB / 2.691 GB, free: 99.35 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0064/14.58, allocations: 3.085 MB / 2.694 GB, free: 98.48 MB / 474.7 MB Notification: Performance of SimCode: time 1.352e-06/14.58, allocations: 2.969 kB / 2.694 GB, free: 98.48 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.732/22.31, allocations: 283.6 MB / 2.971 GB, free: 135.4 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat