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.00129/0.00129, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001404/0.001404, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.468/1.468, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.001923/0.001923, allocations: 72.11 kB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1174, allocations: 53.31 MB / 426.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2483/0.3657, allocations: 15.94 MB / 442.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.3775, allocations: 5.148 MB / 448 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004253/0.3818, allocations: 112.8 kB / 448.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009885/0.3916, allocations: 4.482 MB / 452.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008707/0.4003, allocations: 2.563 MB / 455.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003366/0.4037, allocations: 1.156 MB / 456.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.417, allocations: 8.096 MB / 464.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006603/0.4236, allocations: 4.534 MB / 468.9 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005539/0.4291, allocations: 2.474 MB / 471.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006601/0.4357, allocations: 3.614 MB / 475 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002197/0.4379, allocations: 0.5056 MB / 475.5 MB, free: 164 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004431/0.4424, allocations: 1.526 MB / 477 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004593/0.447, allocations: 3.046 MB / 480.1 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006859/0.4538, allocations: 3.414 MB / 483.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.4697, allocations: 10.55 MB / 494 MB, free: 13.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4697, allocations: 0 / 494 MB, free: 13.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4697, allocations: 0 / 494 MB, free: 13.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004011/0.4701, allocations: 4 kB / 494.1 MB, free: 13.54 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.02292/0.493, allocations: 8.102 MB / 0.4904 GB, free: 5.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.493, allocations: 12.02 kB / 0.4904 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002659/0.4957, allocations: 1.07 MB / 0.4914 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04941/0.5451, allocations: 8.566 MB / 0.4998 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01377/0.5589, allocations: 5.546 MB / 0.5052 GB, free: 6.043 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003295/0.5592, allocations: 333.1 kB / 0.5055 GB, free: 5.715 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/0.561, allocations: 479.6 kB / 0.506 GB, free: 5.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0291/0.5901, allocations: 14.46 MB / 0.5201 GB, free: 5.855 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003702/0.5904, allocations: 77.42 kB / 0.5202 GB, free: 5.781 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001371/0.5918, allocations: 215.8 kB / 0.5204 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005638/0.5975, allocations: 2.836 MB / 0.5232 GB, free: 2.727 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02804/0.6255, allocations: 13.01 MB / 0.5359 GB, free: 5.699 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09088/0.7164, allocations: 58.13 MB / 0.5926 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/0.7349, allocations: 7.344 MB / 0.5998 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006673/0.7416, allocations: 4.5 MB / 0.6042 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02705/0.7686, allocations: 12.71 MB / 0.6166 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.969e-05/0.7687, allocations: 68.64 kB / 0.6167 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 8.576e-06/0.7687, allocations: 4 kB / 0.6167 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 2.164/2.933, allocations: 411.3 MB / 1.018 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/2.933, allocations: 263.5 kB / 1.019 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009706/2.943, allocations: 5.506 MB / 1.024 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001872/2.944, allocations: 111.9 kB / 1.024 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00311/2.948, allocations: 4.154 MB / 1.028 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003043/2.951, allocations: 2.096 MB / 1.03 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005536/2.956, allocations: 2.083 MB / 1.032 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.613e-05/2.956, allocations: 307.2 kB / 1.033 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01635/2.973, allocations: 10.88 MB / 1.043 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01647/2.989, allocations: 14.98 MB / 1.058 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02881/3.018, allocations: 27.13 MB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001845/3.018, allocations: 39 kB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5326/3.551, allocations: 140.2 MB / 1.221 GB, free: 157.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/3.551, allocations: 64.59 kB / 1.221 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002945/3.551, allocations: 138.1 kB / 1.221 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07747/3.629, allocations: 34.59 MB / 1.255 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004606/3.633, allocations: 1.481 MB / 1.257 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5206/4.154, allocations: 203.2 MB / 1.455 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01343/4.167, allocations: 1.715 MB / 1.457 GB, free: 137.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002734/4.17, allocations: 0.5192 MB / 1.457 GB, free: 137.6 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.008307/4.178, allocations: 3.09 MB / 1.46 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002353/4.181, allocations: 0.6108 MB / 1.461 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2802/4.461, allocations: 136.2 MB / 1.594 GB, free: 25.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.288e-05/4.461, allocations: 63.94 kB / 1.594 GB, free: 25.49 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000162/4.461, allocations: 56 kB / 1.594 GB, free: 25.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001278/4.461, allocations: 31.89 kB / 1.594 GB, free: 25.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6019/5.063, allocations: 205.6 MB / 1.795 GB, free: 22.24 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.019e-05/5.063, allocations: 8 kB / 1.795 GB, free: 22.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/5.065, allocations: 327.5 kB / 1.795 GB, free: 21.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07127/5.136, allocations: 33.3 MB / 1.828 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002/5.138, allocations: 104 kB / 1.828 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4776/5.616, allocations: 185.9 MB / 2.009 GB, free: 47 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/5.616, allocations: 13.2 kB / 2.009 GB, free: 47 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5367/6.152, allocations: 152 MB / 2.158 GB, free: 99.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/6.154, allocations: 0.6499 MB / 2.158 GB, free: 99.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002879/6.157, allocations: 99.98 kB / 2.158 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009111/6.166, allocations: 1.485 MB / 2.16 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003885/6.17, allocations: 0.4935 MB / 2.16 GB, free: 97.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001129/6.171, allocations: 142.3 kB / 2.161 GB, free: 97.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005081/6.176, allocations: 3.513 MB / 2.164 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/6.176, allocations: 0 / 2.164 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01296/6.189, allocations: 3.787 MB / 2.168 GB, free: 90.18 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.5903/6.779, allocations: 152.5 MB / 2.317 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05297/6.832, allocations: 32.61 MB / 2.348 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/6.832, allocations: 0 / 2.348 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03475/6.867, allocations: 19.57 MB / 2.368 GB, free: 94.72 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006666/6.874, allocations: 0.8207 MB / 2.368 GB, free: 93.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.188/8.062, allocations: 352.8 MB / 2.713 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006177/8.068, allocations: 5.098 MB / 2.718 GB, free: 136 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004486/8.073, allocations: 2.065 MB / 2.72 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003234/8.076, allocations: 3.032 MB / 2.723 GB, free: 135 MB / 0.5606 GB Notification: Performance of SimCode: time 1.443e-06/8.076, allocations: 0 / 2.723 GB, free: 135 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6649/8.741, allocations: 336.2 MB / 3.051 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.2/38.94, allocations: 11.92 kB / 3.051 GB, free: 6.992 MB / 0.5606 GB " [Timeout remaining time 621] (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: 41.58787445677444] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 39.151248523034155 39.164136904 38.691200611 Calling exit ...