Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002039/0.002039, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002463/0.002463, allocations: 212 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 60.78 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3098, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01822/0.3281, allocations: 15.96 MB / 447.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01192/0.34, allocations: 5.18 MB / 453.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003511/0.3435, allocations: 135.2 kB / 453.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009886/0.3534, allocations: 4.497 MB / 457.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009041/0.3624, allocations: 2.583 MB / 460.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004088/0.3665, allocations: 1.151 MB / 461.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01522/0.3817, allocations: 8.124 MB / 469.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007606/0.3893, allocations: 4.29 MB / 473.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005647/0.395, allocations: 2.508 MB / 476.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006657/0.4016, allocations: 3.606 MB / 479.9 MB, free: 6.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002191/0.4038, allocations: 0.5078 MB / 480.5 MB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004345/0.4082, allocations: 1.537 MB / 482 MB, free: 4.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004781/0.4129, allocations: 3.046 MB / 485 MB, free: 1.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006889/0.4198, allocations: 3.426 MB / 488.5 MB, free: 14.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.4368, allocations: 10.54 MB / 499 MB, free: 3.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.4368, allocations: 4 kB / 499 MB, free: 3.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4368, allocations: 0 / 499 MB, free: 3.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004519/0.4373, allocations: 0 / 499 MB, free: 3.504 MB / 398.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.0248/0.4621, allocations: 8.031 MB / 0.4952 GB, free: 11.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4621, allocations: 8.031 kB / 0.4952 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003706/0.4659, allocations: 1.082 MB / 0.4962 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05016/0.516, allocations: 8.562 MB / 0.5046 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/0.5298, allocations: 5.447 MB / 0.5099 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000392/0.5302, allocations: 344.9 kB / 0.5102 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.5323, allocations: 467.7 kB / 0.5107 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03141/0.5637, allocations: 14.47 MB / 0.5248 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003006/0.564, allocations: 67.52 kB / 0.5249 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001506/0.5655, allocations: 215.8 kB / 0.5251 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005922/0.5715, allocations: 2.836 MB / 0.5278 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2501/0.8215, allocations: 13.01 MB / 0.5405 GB, free: 91.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06448/0.886, allocations: 58.01 MB / 0.5972 GB, free: 43.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.9009, allocations: 6.907 MB / 0.6039 GB, free: 36.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004567/0.9054, allocations: 4.554 MB / 0.6084 GB, free: 32.28 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01662/0.922, allocations: 12.28 MB / 0.6204 GB, free: 20.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/0.9221, allocations: 68.7 kB / 0.6205 GB, free: 20.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.442e-06/0.9221, allocations: 0 / 0.6205 GB, free: 20.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.036/2.958, allocations: 411.2 MB / 1.022 GB, free: 140.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/2.958, allocations: 273.6 kB / 1.022 GB, free: 140.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006448/2.965, allocations: 5.5 MB / 1.028 GB, free: 135.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001608/2.966, allocations: 109.7 kB / 1.028 GB, free: 135.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001946/2.968, allocations: 4.148 MB / 1.032 GB, free: 132.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002351/2.97, allocations: 2.111 MB / 1.034 GB, free: 130.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003682/2.974, allocations: 2.073 MB / 1.036 GB, free: 128.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.691e-05/2.974, allocations: 305.1 kB / 1.036 GB, free: 127.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01154/2.986, allocations: 10.87 MB / 1.047 GB, free: 116.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0136/2.999, allocations: 15 MB / 1.061 GB, free: 100.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02733/3.027, allocations: 27.12 MB / 1.088 GB, free: 71.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/3.027, allocations: 40 kB / 1.088 GB, free: 71.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5413/3.568, allocations: 140.2 MB / 1.225 GB, free: 129.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/3.568, allocations: 67.98 kB / 1.225 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/3.568, allocations: 136 kB / 1.225 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07097/3.639, allocations: 34.59 MB / 1.259 GB, free: 94.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/3.644, allocations: 1.478 MB / 1.26 GB, free: 93.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5136/4.157, allocations: 202.8 MB / 1.458 GB, free: 95.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01237/4.17, allocations: 1.711 MB / 1.46 GB, free: 94.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002456/4.172, allocations: 0.5203 MB / 1.46 GB, free: 94.05 MB / 0.545 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006288/4.178, allocations: 3.094 MB / 1.463 GB, free: 91.56 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001866/4.18, allocations: 0.6128 MB / 1.464 GB, free: 91.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5441/4.724, allocations: 136.2 MB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.285e-05/4.724, allocations: 62.34 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001695/4.724, allocations: 60.08 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001363/4.725, allocations: 27.89 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5955/5.32, allocations: 205.6 MB / 1.798 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-05/5.32, allocations: 11.33 kB / 1.798 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/5.322, allocations: 334.9 kB / 1.798 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06791/5.39, allocations: 33.29 MB / 1.831 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001996/5.392, allocations: 96 kB / 1.831 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5205/5.912, allocations: 185.5 MB / 2.012 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/5.912, allocations: 10.66 kB / 2.012 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.307/6.219, allocations: 152 MB / 2.161 GB, free: 24.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/6.221, allocations: 0.5744 MB / 2.161 GB, free: 24.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002989/6.224, allocations: 99.98 kB / 2.161 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009345/6.233, allocations: 1.484 MB / 2.163 GB, free: 22.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004539/6.238, allocations: 0.5175 MB / 2.163 GB, free: 22.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001494/6.239, allocations: 144 kB / 2.163 GB, free: 21.87 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005496/6.245, allocations: 3.52 MB / 2.167 GB, free: 18.38 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/6.245, allocations: 0 / 2.167 GB, free: 18.38 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0148/6.259, allocations: 3.783 MB / 2.17 GB, free: 14.6 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5655/6.825, allocations: 152.5 MB / 2.319 GB, free: 70.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05249/6.877, allocations: 32.6 MB / 2.351 GB, free: 37.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/6.877, allocations: 3.984 kB / 2.351 GB, free: 37.85 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03713/6.915, allocations: 19.56 MB / 2.37 GB, free: 18.29 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009174/6.924, allocations: 0.8234 MB / 2.371 GB, free: 17.48 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.258/8.181, allocations: 352.9 MB / 2.716 GB, free: 80.52 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009559/8.191, allocations: 5.1 MB / 2.721 GB, free: 75.42 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005121/8.196, allocations: 2.061 MB / 2.723 GB, free: 73.49 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004566/8.201, allocations: 3.022 MB / 2.726 GB, free: 70.46 MB / 0.5606 GB Notification: Performance of SimCode: time 1.633e-06/8.201, allocations: 0 / 2.726 GB, free: 70.46 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9766/9.177, allocations: 344.7 MB / 3.062 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.89/42.07, allocations: 7.062 kB / 3.062 GB, free: 137.1 MB / 0.5606 GB " [Timeout remaining time 618] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 44.71427665418014] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 42.288299086969346 42.307592934 41.866050586 Calling exit ...