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.001658/0.001658, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.002136/0.002136, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.484/1.484, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.002013/0.002013, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1063, allocations: 53.32 MB / 427 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2238/0.3301, allocations: 15.04 MB / 442 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.343, allocations: 4.845 MB / 446.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003629/0.3466, allocations: 108.3 kB / 447 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007082/0.3537, allocations: 3.206 MB / 450.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007608/0.3613, allocations: 2.592 MB / 452.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.3641, allocations: 0.9822 MB / 453.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.3753, allocations: 7.047 MB / 460.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005677/0.381, allocations: 3.698 MB / 464.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004819/0.3858, allocations: 2.253 MB / 466.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006079/0.3919, allocations: 3.523 MB / 470.3 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001693/0.3936, allocations: 483 kB / 470.8 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004147/0.3977, allocations: 1.526 MB / 472.3 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00418/0.4019, allocations: 2.93 MB / 475.2 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006056/0.4079, allocations: 3.285 MB / 478.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01697/0.4249, allocations: 10.54 MB / 489.1 MB, free: 2.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.4249, allocations: 0 / 489.1 MB, free: 2.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4249, allocations: 0 / 489.1 MB, free: 2.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000453/0.4254, allocations: 0 / 489.1 MB, free: 2.609 MB / 382.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.02176/0.4471, allocations: 7.624 MB / 496.7 MB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.4472, allocations: 12.03 kB / 496.7 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002763/0.45, allocations: 1.133 MB / 497.8 MB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04566/0.4956, allocations: 7.551 MB / 0.4935 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01126/0.5069, allocations: 4.671 MB / 0.4981 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.5072, allocations: 320.4 kB / 0.4984 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.5092, allocations: 435.6 kB / 0.4988 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03128/0.5404, allocations: 15.61 MB / 0.5141 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.5406, allocations: 55.58 kB / 0.5141 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007341/0.5414, allocations: 203.8 kB / 0.5143 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005649/0.547, allocations: 3.223 MB / 0.5174 GB, free: 8.672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03025/0.5773, allocations: 13.91 MB / 0.531 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08758/0.6648, allocations: 57.18 MB / 0.5869 GB, free: 64 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/0.6799, allocations: 6.195 MB / 0.5929 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005367/0.6853, allocations: 3.213 MB / 0.5961 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/0.7106, allocations: 14.32 MB / 0.61 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.587e-05/0.7107, allocations: 60.56 kB / 0.6101 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=286): time 5.911e-06/0.7107, allocations: 0 / 0.6101 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of matching and sorting (n=336): time 0.3725/1.083, allocations: 41.91 MB / 0.651 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/1.083, allocations: 211.4 kB / 0.6512 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007232/1.09, allocations: 5.497 MB / 0.6566 GB, free: 149.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007735/1.091, allocations: 73.52 kB / 0.6567 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002472/1.094, allocations: 4.595 MB / 0.6612 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001584/1.095, allocations: 1.305 MB / 0.6624 GB, free: 145 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002419/1.098, allocations: 1.787 MB / 0.6642 GB, free: 144 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.778e-05/1.098, allocations: 313 kB / 0.6645 GB, free: 143.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005293/1.103, allocations: 4.617 MB / 0.669 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00716/1.11, allocations: 9.594 MB / 0.6784 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01483/1.125, allocations: 15.25 MB / 0.6932 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001547/1.125, allocations: 48 kB / 0.6933 GB, free: 110.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04189/1.167, allocations: 18.96 MB / 0.7118 GB, free: 91.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.167, allocations: 80 kB / 0.7119 GB, free: 91.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000175/1.167, allocations: 172 kB / 0.712 GB, free: 91.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02213/1.189, allocations: 5.773 MB / 0.7177 GB, free: 85.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006712/1.196, allocations: 2.051 MB / 0.7197 GB, free: 83.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/1.223, allocations: 25.65 MB / 0.7447 GB, free: 57.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007214/1.231, allocations: 0.5384 MB / 0.7453 GB, free: 57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001223/1.232, allocations: 0.5 MB / 0.7457 GB, free: 56.5 MB / 0.5137 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.004589/1.236, allocations: 3.096 MB / 0.7488 GB, free: 53.39 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/1.237, allocations: 0.5244 MB / 0.7493 GB, free: 52.87 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0295/1.267, allocations: 12.57 MB / 0.7616 GB, free: 40.23 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.92e-05/1.267, allocations: 59.66 kB / 0.7616 GB, free: 40.17 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/1.267, allocations: 8 kB / 0.7616 GB, free: 40.16 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.427e-05/1.267, allocations: 17.64 kB / 0.7616 GB, free: 40.15 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04659/1.314, allocations: 24.16 MB / 0.7852 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/1.314, allocations: 4 kB / 0.7852 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003035/1.317, allocations: 0.5798 MB / 0.7858 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0195/1.336, allocations: 4.806 MB / 0.7905 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007417/1.337, allocations: 60 kB / 0.7906 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02711/1.364, allocations: 20.92 MB / 0.811 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/1.364, allocations: 7.938 kB / 0.811 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2621/1.626, allocations: 16.99 MB / 0.8276 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/1.628, allocations: 0.5508 MB / 0.8281 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001499/1.629, allocations: 51.92 kB / 0.8282 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003756/1.633, allocations: 256.2 kB / 0.8284 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009534/1.634, allocations: 190.8 kB / 0.8286 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/1.634, allocations: 90.08 kB / 0.8287 GB, free: 158 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005959/1.64, allocations: 3.419 MB / 0.832 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/1.64, allocations: 0 / 0.832 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0101/1.65, allocations: 1.683 MB / 0.8337 GB, free: 156.7 MB / 0.5294 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.03668/1.687, allocations: 17.66 MB / 0.8509 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01398/1.701, allocations: 10.18 MB / 0.8609 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/1.701, allocations: 2.734 kB / 0.8609 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005115/1.706, allocations: 3.703 MB / 0.8645 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004417/1.711, allocations: 0.6475 MB / 0.8651 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1307/1.841, allocations: 86.06 MB / 0.9491 GB, free: 52.32 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005513/1.847, allocations: 4.616 MB / 0.9536 GB, free: 47.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005757/1.853, allocations: 2.979 MB / 0.9566 GB, free: 44.72 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003992/1.857, allocations: 2.913 MB / 0.9594 GB, free: 41.81 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.857, allocations: 4 kB / 0.9594 GB, free: 41.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4265/2.283, allocations: 126.1 MB / 1.083 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.19/42.48, allocations: 0.9375 kB / 1.083 GB, free: 159.8 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_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_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: 45.16447993181646] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 42.63233649311587 42.646613007 42.218227502 Calling exit ...