Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000815/0.0008185, allocations: 100.6 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008749/0.000875, allocations: 192 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 8 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.137, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2888/0.4258, allocations: 68.36 MB / 426.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04053/0.4664, allocations: 14.3 MB / 441 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01748/0.4839, allocations: 339.1 kB / 441.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01323/0.4972, allocations: 3.557 MB / 444.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03437/0.5316, allocations: 10.45 MB / 455.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007405/0.539, allocations: 0.9953 MB / 456.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3964/0.9355, allocations: 91.68 MB / 0.5351 GB, free: 88.9 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01341/0.9489, allocations: 6.581 MB / 0.5416 GB, free: 88.44 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00577/0.9548, allocations: 2.012 MB / 0.5435 GB, free: 88.44 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006717/0.9615, allocations: 3.149 MB / 0.5466 GB, free: 88.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001375/0.9629, allocations: 220.6 kB / 0.5468 GB, free: 88.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003498/0.9664, allocations: 1.092 MB / 0.5479 GB, free: 88.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003275/0.9697, allocations: 2.601 MB / 0.5504 GB, free: 88.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.9719, allocations: 1.225 MB / 0.5516 GB, free: 88.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00913/0.9811, allocations: 8.117 MB / 0.5595 GB, free: 85.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.9811, allocations: 0 / 0.5595 GB, free: 85.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.9811, allocations: 0 / 0.5595 GB, free: 85.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004123/0.9816, allocations: 0 / 0.5595 GB, free: 85.9 MB / 446.1 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.01829/0.9999, allocations: 6.681 MB / 0.5661 GB, free: 82.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.9999, allocations: 9.125 kB / 0.5661 GB, free: 82.03 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00466/1.005, allocations: 1.082 MB / 0.5671 GB, free: 81.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04548/1.05, allocations: 8.635 MB / 0.5756 GB, free: 74.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/1.062, allocations: 5.311 MB / 0.5808 GB, free: 70.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/1.062, allocations: 342.2 kB / 0.5811 GB, free: 70.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002326/1.065, allocations: 466.2 kB / 0.5815 GB, free: 70.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02862/1.093, allocations: 14.46 MB / 0.5956 GB, free: 58.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002542/1.094, allocations: 70.88 kB / 0.5957 GB, free: 58.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006771/1.094, allocations: 212.6 kB / 0.5959 GB, free: 58.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004403/1.099, allocations: 2.835 MB / 0.5987 GB, free: 56.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02417/1.123, allocations: 12.98 MB / 0.6114 GB, free: 47.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06789/1.191, allocations: 58.25 MB / 0.6683 GB, free: 8.887 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0174/1.208, allocations: 7.687 MB / 0.6758 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006747/1.215, allocations: 4.997 MB / 0.6806 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02045/1.236, allocations: 12.67 MB / 0.693 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.894e-05/1.236, allocations: 71.7 kB / 0.6931 GB, free: 15.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=326): time 5.841e-06/1.236, allocations: 0 / 0.6931 GB, free: 15.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=572): time 1.88/3.116, allocations: 407.1 MB / 1.091 GB, free: 57.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.578e-05/3.116, allocations: 261.7 kB / 1.091 GB, free: 57.05 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007433/3.124, allocations: 5.466 MB / 1.096 GB, free: 51.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001961/3.126, allocations: 110.4 kB / 1.096 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002281/3.128, allocations: 4.008 MB / 1.1 GB, free: 47.51 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.003018/3.131, allocations: 2.005 MB / 1.102 GB, free: 45.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/3.132, allocations: 184 kB / 1.102 GB, free: 45.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003848/3.132, allocations: 0.6985 MB / 1.103 GB, free: 44.63 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/3.145, allocations: 10.84 MB / 1.114 GB, free: 33.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.239/3.384, allocations: 14.95 MB / 1.128 GB, free: 176.6 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02188/3.406, allocations: 12.68 MB / 1.141 GB, free: 173.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002472/3.406, allocations: 39.78 kB / 1.141 GB, free: 173.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.298/3.704, allocations: 140.4 MB / 1.278 GB, free: 66.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000126/3.705, allocations: 64 kB / 1.278 GB, free: 66.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/3.705, allocations: 140 kB / 1.278 GB, free: 66.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07161/3.776, allocations: 34.66 MB / 1.312 GB, free: 31.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005394/3.782, allocations: 1.482 MB / 1.313 GB, free: 30.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5223/4.304, allocations: 190 MB / 1.499 GB, free: 36.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01531/4.32, allocations: 1.715 MB / 1.5 GB, free: 34.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003171/4.323, allocations: 0.5299 MB / 1.501 GB, free: 33.88 MB / 0.4981 GB 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.01021/4.333, allocations: 3.084 MB / 1.504 GB, free: 30.94 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00279/4.336, allocations: 0.5818 MB / 1.505 GB, free: 30.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5327/4.869, allocations: 136.5 MB / 1.638 GB, free: 92.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.378e-05/4.869, allocations: 56.55 kB / 1.638 GB, free: 92.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001598/4.869, allocations: 60 kB / 1.638 GB, free: 92.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001253/4.869, allocations: 24.67 kB / 1.638 GB, free: 92.72 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6004/5.469, allocations: 206.2 MB / 1.839 GB, free: 95.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.787e-05/5.469, allocations: 10.22 kB / 1.839 GB, free: 95.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/5.471, allocations: 331.4 kB / 1.84 GB, free: 95.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06744/5.538, allocations: 33.76 MB / 1.873 GB, free: 61.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001773/5.54, allocations: 100.6 kB / 1.873 GB, free: 61.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4496/5.99, allocations: 173.1 MB / 2.042 GB, free: 69.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/5.99, allocations: 10.5 kB / 2.042 GB, free: 69.13 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.523/6.513, allocations: 152.2 MB / 2.19 GB, free: 99.26 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00194/6.515, allocations: 0.6369 MB / 2.191 GB, free: 98.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/6.517, allocations: 96.92 kB / 2.191 GB, free: 98.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008077/6.525, allocations: 1.483 MB / 2.193 GB, free: 97.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003179/6.529, allocations: 0.4999 MB / 2.193 GB, free: 96.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009385/6.53, allocations: 141 kB / 2.193 GB, free: 96.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005423/6.535, allocations: 3.486 MB / 2.197 GB, free: 93.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/6.535, allocations: 0 / 2.197 GB, free: 93.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01675/6.552, allocations: 3.802 MB / 2.2 GB, free: 89.46 MB / 0.4981 GB 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.5323/7.084, allocations: 152.7 MB / 2.349 GB, free: 113.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.05248/7.137, allocations: 33.35 MB / 2.382 GB, free: 82.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/7.137, allocations: 3.906 kB / 2.382 GB, free: 82.88 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.03743/7.174, allocations: 20.47 MB / 2.402 GB, free: 62.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006822/7.181, allocations: 0.799 MB / 2.403 GB, free: 61.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6234/7.804, allocations: 213.3 MB / 2.611 GB, free: 26.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005574/7.81, allocations: 5.097 MB / 2.616 GB, free: 21.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004907/7.815, allocations: 2.07 MB / 2.618 GB, free: 18.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2207/8.036, allocations: 3.025 MB / 2.621 GB, free: 155.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.523e-06/8.036, allocations: 0 / 2.621 GB, free: 155.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6108/8.647, allocations: 323.7 MB / 2.937 GB, free: 51.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/8.647, allocations: 223 kB / 2.937 GB, free: 51.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/16.54, allocations: 0 / 2.937 GB, free: 51.02 MB / 0.4981 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat