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.001077/0.001077, allocations: 176.1 kB / 16.72 MB, free: 5.082 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.273/1.273, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007268/0.0007268, allocations: 89.03 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003195, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2159, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.04469/0.2607, allocations: 68.45 MB / 443.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02886/0.2896, allocations: 14.3 MB / 457.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01186/0.3015, allocations: 335.1 kB / 458.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01032/0.3118, allocations: 3.561 MB / 461.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02618/0.3381, allocations: 10.5 MB / 472.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005088/0.3432, allocations: 1.065 MB / 473.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2416/0.5848, allocations: 51.76 MB / 0.5128 GB, free: 30.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009591/0.5944, allocations: 7.098 MB / 0.5198 GB, free: 29.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003577/0.5981, allocations: 2.03 MB / 0.5218 GB, free: 29.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003957/0.602, allocations: 3.169 MB / 0.5249 GB, free: 29.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009045/0.603, allocations: 216 kB / 0.5251 GB, free: 28.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.6053, allocations: 1.259 MB / 0.5263 GB, free: 27.85 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002025/0.6074, allocations: 2.613 MB / 0.5288 GB, free: 25.94 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.61, allocations: 2.897 MB / 0.5317 GB, free: 24.9 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006115/0.6162, allocations: 8.163 MB / 0.5396 GB, free: 17.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.6162, allocations: 0 / 0.5396 GB, free: 17.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6162, allocations: 0 / 0.5396 GB, free: 17.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002676/0.6165, allocations: 0 / 0.5396 GB, free: 17.8 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.01331/0.6298, allocations: 6.568 MB / 0.5461 GB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.6299, allocations: 12.03 kB / 0.5461 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00246/0.6323, allocations: 1.088 MB / 0.5471 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04951/0.6819, allocations: 8.509 MB / 0.5554 GB, free: 3.152 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.6936, allocations: 6.218 MB / 0.5615 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/0.6939, allocations: 344.1 kB / 0.5618 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.6955, allocations: 474.9 kB / 0.5623 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02486/0.7203, allocations: 14.46 MB / 0.5764 GB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002223/0.7206, allocations: 71.53 kB / 0.5765 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000737/0.7213, allocations: 216.4 kB / 0.5767 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005153/0.7265, allocations: 2.831 MB / 0.5795 GB, free: 400 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/0.7522, allocations: 12.98 MB / 0.5921 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07136/0.8236, allocations: 58.33 MB / 0.6491 GB, free: 2.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01718/0.8409, allocations: 7.69 MB / 0.6566 GB, free: 10.33 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005963/0.8469, allocations: 5.004 MB / 0.6615 GB, free: 5.316 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1767/1.024, allocations: 12.7 MB / 0.6739 GB, free: 190.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/1.024, allocations: 63.45 kB / 0.674 GB, free: 190.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=326): time 6.552e-06/1.024, allocations: 0 / 0.674 GB, free: 190.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=572): time 1.867/2.89, allocations: 407.1 MB / 1.071 GB, free: 164.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/2.89, allocations: 265 kB / 1.072 GB, free: 164.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0058/2.896, allocations: 5.522 MB / 1.077 GB, free: 161.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001295/2.898, allocations: 111.4 kB / 1.077 GB, free: 161.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001704/2.899, allocations: 4.018 MB / 1.081 GB, free: 158.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001945/2.901, allocations: 1.997 MB / 1.083 GB, free: 156.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009322/2.902, allocations: 188 kB / 1.083 GB, free: 156.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003182/2.902, allocations: 0.7037 MB / 1.084 GB, free: 155.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/2.913, allocations: 10.84 MB / 1.095 GB, free: 145.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/2.926, allocations: 14.95 MB / 1.109 GB, free: 128.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02588/2.952, allocations: 27.07 MB / 1.136 GB, free: 99.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-05/2.952, allocations: 40 kB / 1.136 GB, free: 99.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.474/3.426, allocations: 140.3 MB / 1.273 GB, free: 136.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.607e-05/3.426, allocations: 64 kB / 1.273 GB, free: 136.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-05/3.426, allocations: 139.6 kB / 1.273 GB, free: 136.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0741/3.5, allocations: 34.63 MB / 1.307 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00412/3.505, allocations: 1.475 MB / 1.308 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3916/3.896, allocations: 189.9 MB / 1.494 GB, free: 89.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01199/3.908, allocations: 1.716 MB / 1.495 GB, free: 88.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/3.91, allocations: 0.5172 MB / 1.496 GB, free: 88.08 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.005391/3.916, allocations: 3.095 MB / 1.499 GB, free: 85.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/3.917, allocations: 0.5876 MB / 1.499 GB, free: 84.83 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4724/4.389, allocations: 136.4 MB / 1.633 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.768e-05/4.39, allocations: 56 kB / 1.633 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000129/4.39, allocations: 63.98 kB / 1.633 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.454e-05/4.39, allocations: 24.52 kB / 1.633 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.511/4.901, allocations: 206.2 MB / 1.834 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.222e-05/4.901, allocations: 8 kB / 1.834 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/4.902, allocations: 335.2 kB / 1.834 GB, free: 105.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06787/4.97, allocations: 33.74 MB / 1.867 GB, free: 75.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001178/4.971, allocations: 99.98 kB / 1.867 GB, free: 75.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3505/5.322, allocations: 173 MB / 2.036 GB, free: 66.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/5.322, allocations: 13.05 kB / 2.036 GB, free: 66.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4975/5.82, allocations: 152.2 MB / 2.185 GB, free: 76.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005681/5.825, allocations: 3.002 MB / 2.188 GB, free: 74.25 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001689/5.827, allocations: 95.98 kB / 2.188 GB, free: 74.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008472/5.835, allocations: 1.495 MB / 2.19 GB, free: 72.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003277/5.839, allocations: 498.6 kB / 2.19 GB, free: 72.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008064/5.84, allocations: 148.6 kB / 2.19 GB, free: 72.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004303/5.844, allocations: 3.522 MB / 2.194 GB, free: 68.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/5.844, allocations: 0 / 2.194 GB, free: 68.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01117/5.855, allocations: 3.809 MB / 2.197 GB, free: 64.74 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.479/6.334, allocations: 152.7 MB / 2.346 GB, free: 76.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05156/6.386, allocations: 33.34 MB / 2.379 GB, free: 43.55 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/6.386, allocations: 0 / 2.379 GB, free: 43.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2162/6.602, allocations: 20.45 MB / 2.399 GB, free: 152.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0118/6.614, allocations: 0.7896 MB / 2.4 GB, free: 152.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5976/7.211, allocations: 214.3 MB / 2.609 GB, free: 141 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006864/7.218, allocations: 5.119 MB / 2.614 GB, free: 139.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003351/7.222, allocations: 3.085 MB / 2.617 GB, free: 137.2 MB / 474.7 MB Notification: Performance of SimCode: time 9.01e-07/7.222, allocations: 0 / 2.617 GB, free: 137.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 15.25/22.47, allocations: 284.6 MB / 2.895 GB, free: 123.5 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