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.Fourbar2.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.001982/0.001982, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002553/0.002553, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.43/1.43, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001916/0.001916, allocations: 68.53 kB / 378.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3033, allocations: 53.37 MB / 431.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01807/0.3213, allocations: 15.06 MB / 447 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.3335, allocations: 4.873 MB / 451.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003216/0.3367, allocations: 107.5 kB / 452 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006935/0.3436, allocations: 3.216 MB / 455.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007812/0.3515, allocations: 2.599 MB / 457.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002703/0.3542, allocations: 0.9983 MB / 458.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01306/0.3672, allocations: 7.055 MB / 465.8 MB, free: 4.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007971/0.3752, allocations: 3.578 MB / 469.4 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005358/0.3805, allocations: 2.247 MB / 471.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006595/0.3871, allocations: 3.52 MB / 475.2 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002013/0.3892, allocations: 484 kB / 475.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004388/0.3935, allocations: 1.529 MB / 477.2 MB, free: 9.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00525/0.3988, allocations: 2.937 MB / 480.1 MB, free: 6.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00714/0.4059, allocations: 3.281 MB / 483.4 MB, free: 3.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01742/0.4234, allocations: 10.54 MB / 493.9 MB, free: 8.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.4234, allocations: 0 / 493.9 MB, free: 8.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.4234, allocations: 0 / 493.9 MB, free: 8.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003761/0.4237, allocations: 0 / 493.9 MB, free: 8.652 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02208/0.4458, allocations: 7.552 MB / 0.4897 GB, free: 1.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.4459, allocations: 8.031 kB / 0.4897 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003312/0.4492, allocations: 1.137 MB / 0.4909 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03972/0.4889, allocations: 7.547 MB / 0.4982 GB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01244/0.5013, allocations: 4.575 MB / 0.5027 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003863/0.5017, allocations: 328.2 kB / 0.503 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/0.5039, allocations: 431.7 kB / 0.5034 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/0.5362, allocations: 15.61 MB / 0.5187 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002483/0.5365, allocations: 67.5 kB / 0.5187 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001399/0.5379, allocations: 203.8 kB / 0.5189 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005719/0.5436, allocations: 3.216 MB / 0.5221 GB, free: 14.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03064/0.5742, allocations: 13.91 MB / 0.5356 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3003/0.8745, allocations: 56.98 MB / 0.5913 GB, free: 49.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.8863, allocations: 5.28 MB / 0.5965 GB, free: 44.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005326/0.8916, allocations: 3.226 MB / 0.5996 GB, free: 40.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01915/0.9107, allocations: 12.31 MB / 0.6116 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.9108, allocations: 68.5 kB / 0.6117 GB, free: 28.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.763e-06/0.9108, allocations: 0 / 0.6117 GB, free: 28.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1349/1.046, allocations: 41.76 MB / 0.6525 GB, free: 3.305 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/1.046, allocations: 213.9 kB / 0.6527 GB, free: 3.051 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00927/1.055, allocations: 5.497 MB / 0.6581 GB, free: 13.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008824/1.056, allocations: 77.69 kB / 0.6581 GB, free: 13.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004468/1.061, allocations: 4.596 MB / 0.6626 GB, free: 9.059 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002378/1.063, allocations: 1.298 MB / 0.6639 GB, free: 7.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003424/1.066, allocations: 1.79 MB / 0.6656 GB, free: 5.945 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/1.066, allocations: 301.1 kB / 0.6659 GB, free: 5.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008206/1.075, allocations: 4.624 MB / 0.6704 GB, free: 1.016 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01425/1.089, allocations: 9.587 MB / 0.6798 GB, free: 4.977 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02428/1.113, allocations: 15.26 MB / 0.6947 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/1.113, allocations: 51.94 kB / 0.6947 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04744/1.161, allocations: 18.95 MB / 0.7133 GB, free: 196 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/1.161, allocations: 80 kB / 0.7133 GB, free: 116 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002475/1.161, allocations: 172 kB / 0.7135 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02183/1.183, allocations: 5.777 MB / 0.7191 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008013/1.191, allocations: 2.051 MB / 0.7211 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2805/1.472, allocations: 25.44 MB / 0.746 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007548/1.479, allocations: 0.5483 MB / 0.7465 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001811/1.481, allocations: 0.5042 MB / 0.747 GB, free: 183.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005913/1.487, allocations: 3.084 MB / 0.75 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/1.488, allocations: 0.5269 MB / 0.7505 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.515, allocations: 12.57 MB / 0.7628 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.029e-05/1.515, allocations: 53.31 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/1.515, allocations: 11.44 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.584e-05/1.515, allocations: 11.39 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04144/1.557, allocations: 24.13 MB / 0.7865 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.991e-05/1.557, allocations: 7.5 kB / 0.7865 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002846/1.559, allocations: 0.578 MB / 0.787 GB, free: 166 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01662/1.576, allocations: 4.805 MB / 0.7917 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007821/1.577, allocations: 56 kB / 0.7918 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/1.599, allocations: 20.7 MB / 0.812 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/1.599, allocations: 10.61 kB / 0.812 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02959/1.628, allocations: 16.99 MB / 0.8286 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/1.63, allocations: 498 kB / 0.8291 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001153/1.631, allocations: 52 kB / 0.8291 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.634, allocations: 255.6 kB / 0.8294 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007247/1.635, allocations: 201.4 kB / 0.8296 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/1.635, allocations: 84.7 kB / 0.8296 GB, free: 122.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004353/1.639, allocations: 3.424 MB / 0.833 GB, free: 119.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 6e-08/1.639, allocations: 0.7656 kB / 0.833 GB, free: 119.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00759/1.647, allocations: 1.676 MB / 0.8346 GB, free: 117.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03011/1.677, allocations: 17.65 MB / 0.8519 GB, free: 99.85 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01465/1.692, allocations: 10.19 MB / 0.8618 GB, free: 89.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.692, allocations: 7.562 kB / 0.8618 GB, free: 89.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005023/1.697, allocations: 3.708 MB / 0.8654 GB, free: 86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.701, allocations: 0.6528 MB / 0.8661 GB, free: 85.37 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3699/2.071, allocations: 86.19 MB / 0.9502 GB, free: 202.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007881/2.079, allocations: 4.621 MB / 0.9548 GB, free: 202 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006946/2.085, allocations: 2.98 MB / 0.9577 GB, free: 201.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00508/2.091, allocations: 2.916 MB / 0.9605 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.363e-06/2.091, allocations: 3 kB / 0.9605 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1795/2.27, allocations: 130 MB / 1.088 GB, free: 84.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.21/42.48, allocations: 11.8 kB / 1.088 GB, free: 84.3 MB / 0.5606 GB " [Timeout remaining time 617] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 44.96678482601419] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 42.63278427068144 42.64239682 42.216441573 Calling exit ...