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.001419/0.001419, 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.001578/0.001578, allocations: 213.2 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.501/1.501, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.002025/0.002025, allocations: 68.77 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2838, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01972/0.3035, allocations: 15.96 MB / 447.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3171, allocations: 5.18 MB / 453.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00408/0.3211, allocations: 131.3 kB / 453.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.3313, allocations: 4.505 MB / 457.7 MB, free: 13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009754/0.341, allocations: 2.579 MB / 460.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003543/0.3446, allocations: 1.154 MB / 461.4 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01383/0.3584, allocations: 8.123 MB / 469.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006984/0.3654, allocations: 4.283 MB / 473.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005766/0.3712, allocations: 2.508 MB / 476.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006665/0.3778, allocations: 3.614 MB / 480 MB, free: 6.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002095/0.3799, allocations: 0.5039 MB / 480.5 MB, free: 6.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004291/0.3842, allocations: 1.537 MB / 482 MB, free: 4.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004843/0.3891, allocations: 3.05 MB / 485 MB, free: 1.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007674/0.3967, allocations: 3.414 MB / 488.5 MB, free: 14.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01833/0.4151, allocations: 10.55 MB / 499 MB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.4151, allocations: 4 kB / 499 MB, free: 3.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4151, allocations: 0 / 499 MB, free: 3.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000436/0.4155, allocations: 4 kB / 499 MB, free: 3.477 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.0241/0.4396, allocations: 8.027 MB / 0.4952 GB, free: 11.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.4397, allocations: 12.02 kB / 0.4952 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003285/0.443, allocations: 1.074 MB / 0.4962 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05178/0.4947, allocations: 8.562 MB / 0.5046 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/0.5091, allocations: 5.443 MB / 0.5099 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003709/0.5095, allocations: 344.9 kB / 0.5102 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001958/0.5115, allocations: 467.7 kB / 0.5107 GB, free: 11.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03095/0.5424, allocations: 14.48 MB / 0.5248 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002824/0.5427, allocations: 67.47 kB / 0.5249 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001116/0.5438, allocations: 219.8 kB / 0.5251 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006085/0.5499, allocations: 2.832 MB / 0.5278 GB, free: 8.844 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2524/0.8023, allocations: 13.01 MB / 0.5405 GB, free: 91.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06437/0.8667, allocations: 58.01 MB / 0.5972 GB, free: 43.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01544/0.8821, allocations: 6.904 MB / 0.6039 GB, free: 36.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004863/0.887, allocations: 4.561 MB / 0.6084 GB, free: 32.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01748/0.9045, allocations: 12.27 MB / 0.6204 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.9045, allocations: 72.62 kB / 0.6205 GB, free: 20.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.951e-06/0.9045, allocations: 0 / 0.6205 GB, free: 20.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.995/2.9, allocations: 411.2 MB / 1.022 GB, free: 140.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/2.9, allocations: 273.2 kB / 1.022 GB, free: 140.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006551/2.907, allocations: 5.502 MB / 1.028 GB, free: 135.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001609/2.908, allocations: 109.7 kB / 1.028 GB, free: 135.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002658/2.911, allocations: 4.161 MB / 1.032 GB, free: 132.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00295/2.914, allocations: 2.095 MB / 1.034 GB, free: 130.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003612/2.917, allocations: 2.08 MB / 1.036 GB, free: 128.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.546e-05/2.918, allocations: 305.1 kB / 1.036 GB, free: 127.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01224/2.93, allocations: 10.88 MB / 1.047 GB, free: 116.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01428/2.944, allocations: 14.99 MB / 1.061 GB, free: 100 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02737/2.971, allocations: 27.11 MB / 1.088 GB, free: 71.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-05/2.971, allocations: 46.44 kB / 1.088 GB, free: 71.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5577/3.529, allocations: 140.2 MB / 1.225 GB, free: 129.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.236e-05/3.529, allocations: 63.98 kB / 1.225 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001687/3.529, allocations: 141.2 kB / 1.225 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07436/3.604, allocations: 34.58 MB / 1.259 GB, free: 94.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004544/3.608, allocations: 1.479 MB / 1.26 GB, free: 93.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5227/4.131, allocations: 202.8 MB / 1.458 GB, free: 95.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01263/4.144, allocations: 1.707 MB / 1.46 GB, free: 94.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002411/4.146, allocations: 0.5254 MB / 1.46 GB, free: 94.04 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.006449/4.153, allocations: 3.094 MB / 1.463 GB, free: 91.54 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001878/4.155, allocations: 0.6094 MB / 1.464 GB, free: 91.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5307/4.685, allocations: 136.2 MB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-05/4.685, allocations: 62.5 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002056/4.685, allocations: 58.56 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000133/4.686, allocations: 31.83 kB / 1.597 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.629/5.315, allocations: 205.6 MB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.579e-05/5.315, allocations: 6.781 kB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/5.316, allocations: 331.6 kB / 1.798 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07085/5.387, allocations: 33.3 MB / 1.831 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001508/5.389, allocations: 96 kB / 1.831 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4721/5.861, allocations: 185.5 MB / 2.012 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/5.861, allocations: 4.75 kB / 2.012 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3049/6.166, allocations: 152 MB / 2.16 GB, free: 24.63 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/6.167, allocations: 0.5882 MB / 2.161 GB, free: 24.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003008/6.17, allocations: 96 kB / 2.161 GB, free: 23.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009253/6.18, allocations: 1.489 MB / 2.163 GB, free: 22.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004767/6.184, allocations: 0.5142 MB / 2.163 GB, free: 21.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001472/6.186, allocations: 144 kB / 2.163 GB, free: 21.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005236/6.191, allocations: 3.517 MB / 2.167 GB, free: 18.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.7e-07/6.191, allocations: 3.812 kB / 2.167 GB, free: 18.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01703/6.208, allocations: 3.783 MB / 2.17 GB, free: 14.55 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.5724/6.781, allocations: 152.5 MB / 2.319 GB, free: 70.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05695/6.838, allocations: 32.62 MB / 2.351 GB, free: 37.81 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/6.838, allocations: 2.531 kB / 2.351 GB, free: 37.81 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03674/6.874, allocations: 19.55 MB / 2.37 GB, free: 18.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007137/6.881, allocations: 0.8318 MB / 2.371 GB, free: 17.44 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.292/8.173, allocations: 352.9 MB / 2.716 GB, free: 80.26 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007391/8.18, allocations: 5.099 MB / 2.721 GB, free: 75.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004942/8.185, allocations: 2.065 MB / 2.723 GB, free: 73.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004003/8.189, allocations: 3.025 MB / 2.726 GB, free: 70.21 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/8.189, allocations: 0 / 2.726 GB, free: 70.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8865/9.076, allocations: 344.7 MB / 3.062 GB, free: 137 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.3/42.38, allocations: 2.75 kB / 3.062 GB, free: 137 MB / 0.5606 GB " [Timeout remaining time 617] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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: 45.04823035700247] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 42.603716333862394 42.623459679 42.203994511 Calling exit ...