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.001574/0.001574, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001926/0.001926, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.595/1.595, allocations: 230.5 MB / 254.8 MB, free: 15.07 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.00197/0.00197, allocations: 75.81 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.107, allocations: 53.32 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2537/0.3607, allocations: 15.94 MB / 442.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01292/0.3736, allocations: 5.157 MB / 448.1 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004545/0.3781, allocations: 137 kB / 448.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01022/0.3884, allocations: 4.476 MB / 452.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.399, allocations: 2.569 MB / 455.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003727/0.4027, allocations: 1.148 MB / 456.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01472/0.4174, allocations: 8.097 MB / 464.5 MB, free: 6.973 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007277/0.4247, allocations: 4.534 MB / 469.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006218/0.4309, allocations: 2.506 MB / 471.6 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007134/0.438, allocations: 3.616 MB / 475.2 MB, free: 500 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002156/0.4402, allocations: 0.5079 MB / 475.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004496/0.4447, allocations: 1.522 MB / 477.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004276/0.449, allocations: 3.046 MB / 480.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006/0.455, allocations: 3.426 MB / 483.7 MB, free: 7.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01653/0.4715, allocations: 10.54 MB / 494.2 MB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.4715, allocations: 3.938 kB / 494.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4715, allocations: 0 / 494.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000386/0.4719, allocations: 0 / 494.2 MB, free: 13.36 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.02218/0.4941, allocations: 8.103 MB / 0.4906 GB, free: 5.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4941, allocations: 16.03 kB / 0.4906 GB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001954/0.4961, allocations: 1.074 MB / 0.4916 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05532/0.5514, allocations: 8.558 MB / 0.5 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/0.565, allocations: 5.542 MB / 0.5054 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003521/0.5654, allocations: 337.1 kB / 0.5057 GB, free: 5.535 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001835/0.5672, allocations: 475.6 kB / 0.5062 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02952/0.5967, allocations: 14.46 MB / 0.5203 GB, free: 5.676 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002291/0.597, allocations: 80.72 kB / 0.5204 GB, free: 5.598 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006649/0.5976, allocations: 211.8 kB / 0.5206 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005815/0.6034, allocations: 2.836 MB / 0.5233 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02866/0.6321, allocations: 13 MB / 0.536 GB, free: 5.523 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09047/0.7226, allocations: 58.13 MB / 0.5928 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01928/0.7419, allocations: 7.345 MB / 0.6 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006823/0.7487, allocations: 4.504 MB / 0.6044 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02441/0.7731, allocations: 12.7 MB / 0.6168 GB, free: 1.02 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.059e-05/0.7732, allocations: 68.64 kB / 0.6169 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 6.362e-06/0.7732, allocations: 0 / 0.6169 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 2.29/3.064, allocations: 411.4 MB / 1.019 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/3.064, allocations: 264.9 kB / 1.019 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009248/3.073, allocations: 5.5 MB / 1.024 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001765/3.075, allocations: 113 kB / 1.024 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002808/3.077, allocations: 4.154 MB / 1.028 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003104/3.081, allocations: 2.099 MB / 1.03 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005175/3.086, allocations: 2.078 MB / 1.032 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.087e-05/3.086, allocations: 311.8 kB / 1.033 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01635/3.102, allocations: 10.88 MB / 1.043 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01614/3.118, allocations: 14.99 MB / 1.058 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02944/3.148, allocations: 27.12 MB / 1.084 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/3.148, allocations: 38.88 kB / 1.085 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5825/3.73, allocations: 140.2 MB / 1.221 GB, free: 157.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/3.73, allocations: 64.28 kB / 1.221 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003229/3.731, allocations: 137.4 kB / 1.222 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08301/3.814, allocations: 34.59 MB / 1.255 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004678/3.818, allocations: 1.482 MB / 1.257 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5431/4.362, allocations: 203.2 MB / 1.455 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01398/4.376, allocations: 1.71 MB / 1.457 GB, free: 137.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002635/4.378, allocations: 0.5217 MB / 1.457 GB, free: 137.7 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.006873/4.385, allocations: 3.091 MB / 1.46 GB, free: 136.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002292/4.387, allocations: 0.6082 MB / 1.461 GB, free: 136.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2994/4.687, allocations: 136.2 MB / 1.594 GB, free: 25.52 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.008e-05/4.687, allocations: 60.75 kB / 1.594 GB, free: 25.46 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001992/4.687, allocations: 59.25 kB / 1.594 GB, free: 25.41 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001336/4.687, allocations: 27.91 kB / 1.594 GB, free: 25.38 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6013/5.288, allocations: 205.7 MB / 1.795 GB, free: 22.24 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.377e-05/5.289, allocations: 4 kB / 1.795 GB, free: 22.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/5.29, allocations: 332.1 kB / 1.795 GB, free: 21.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07609/5.366, allocations: 33.3 MB / 1.828 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002037/5.368, allocations: 99.98 kB / 1.828 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4754/5.844, allocations: 185.9 MB / 2.009 GB, free: 46.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/5.844, allocations: 10.34 kB / 2.009 GB, free: 46.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6037/6.447, allocations: 152 MB / 2.158 GB, free: 99.92 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/6.45, allocations: 0.6589 MB / 2.159 GB, free: 99.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003343/6.453, allocations: 92 kB / 2.159 GB, free: 99.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01033/6.463, allocations: 1.488 MB / 2.16 GB, free: 98.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00457/6.468, allocations: 0.4902 MB / 2.161 GB, free: 97.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001303/6.469, allocations: 146.3 kB / 2.161 GB, free: 97.39 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005271/6.474, allocations: 3.513 MB / 2.164 GB, free: 93.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/6.474, allocations: 4 kB / 2.164 GB, free: 93.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01573/6.49, allocations: 3.78 MB / 2.168 GB, free: 90.12 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.562/7.052, allocations: 152.5 MB / 2.317 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05883/7.111, allocations: 32.61 MB / 2.349 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/7.111, allocations: 0 / 2.349 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03841/7.149, allocations: 19.56 MB / 2.368 GB, free: 94.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007626/7.157, allocations: 0.8277 MB / 2.369 GB, free: 93.96 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.276/8.433, allocations: 352.8 MB / 2.713 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006185/8.439, allocations: 5.102 MB / 2.718 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004167/8.443, allocations: 2.06 MB / 2.72 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003315/8.446, allocations: 3.03 MB / 2.723 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.533e-06/8.446, allocations: 0 / 2.723 GB, free: 134.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6507/9.097, allocations: 336.1 MB / 3.051 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.19/40.28, allocations: 3.984 kB / 3.051 GB, free: 7.059 MB / 0.5606 GB " [Timeout remaining time 620] (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: 43.1218654406257] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 40.49240918783471 40.503711885 40.029411899 Calling exit ...