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.001894/0.001894, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002507/0.002507, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.502/1.502, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.002208/0.002208, allocations: 60.78 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.27, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0187/0.2887, allocations: 15.07 MB / 447 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.2997, allocations: 4.87 MB / 451.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.3023, allocations: 107.5 kB / 452 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006647/0.3089, allocations: 3.223 MB / 455.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007214/0.3161, allocations: 2.596 MB / 457.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002532/0.3187, allocations: 0.9905 MB / 458.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.3298, allocations: 7.051 MB / 465.8 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005539/0.3353, allocations: 3.575 MB / 469.4 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004289/0.3396, allocations: 2.254 MB / 471.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00622/0.3458, allocations: 3.517 MB / 475.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001797/0.3476, allocations: 488 kB / 475.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003734/0.3514, allocations: 1.525 MB / 477.2 MB, free: 9.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003919/0.3553, allocations: 2.941 MB / 480.1 MB, free: 6.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005918/0.3612, allocations: 3.277 MB / 483.4 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01461/0.3758, allocations: 10.54 MB / 493.9 MB, free: 8.625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3758, allocations: 0 / 493.9 MB, free: 8.625 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3758, allocations: 0 / 493.9 MB, free: 8.625 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003639/0.3762, allocations: 3.844 kB / 493.9 MB, free: 8.625 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.01913/0.3953, allocations: 7.552 MB / 0.4897 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3954, allocations: 12.02 kB / 0.4897 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002881/0.3982, allocations: 1.133 MB / 0.4909 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04137/0.4396, allocations: 7.551 MB / 0.4982 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.4507, allocations: 4.575 MB / 0.5027 GB, free: 3.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003212/0.451, allocations: 328.2 kB / 0.503 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4525, allocations: 435.6 kB / 0.5034 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02818/0.4807, allocations: 15.61 MB / 0.5187 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001737/0.4808, allocations: 59.52 kB / 0.5187 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008665/0.4817, allocations: 203.8 kB / 0.5189 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005323/0.487, allocations: 3.212 MB / 0.5221 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02827/0.5153, allocations: 13.91 MB / 0.5356 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3093/0.8246, allocations: 57 MB / 0.5913 GB, free: 49.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.8366, allocations: 5.273 MB / 0.5965 GB, free: 44.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004244/0.8409, allocations: 3.23 MB / 0.5996 GB, free: 40.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01925/0.8601, allocations: 12.31 MB / 0.6116 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.8602, allocations: 76.48 kB / 0.6117 GB, free: 28.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.982e-06/0.8602, allocations: 0 / 0.6117 GB, free: 28.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1383/0.9985, allocations: 41.76 MB / 0.6525 GB, free: 3.254 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/0.9986, allocations: 210 kB / 0.6527 GB, free: 3.004 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/1.009, allocations: 5.498 MB / 0.6581 GB, free: 13.63 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000739/1.01, allocations: 73.7 kB / 0.6581 GB, free: 13.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004377/1.014, allocations: 4.594 MB / 0.6626 GB, free: 9.016 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00207/1.016, allocations: 1.302 MB / 0.6639 GB, free: 7.703 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003474/1.02, allocations: 1.79 MB / 0.6656 GB, free: 5.898 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/1.02, allocations: 305.1 kB / 0.6659 GB, free: 5.598 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007903/1.028, allocations: 4.616 MB / 0.6704 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01396/1.042, allocations: 9.595 MB / 0.6798 GB, free: 4.926 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02262/1.064, allocations: 15.26 MB / 0.6947 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002024/1.064, allocations: 51.94 kB / 0.6948 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05048/1.115, allocations: 18.95 MB / 0.7133 GB, free: 148 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000245/1.115, allocations: 83.94 kB / 0.7133 GB, free: 64 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003909/1.116, allocations: 172.5 kB / 0.7135 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02266/1.138, allocations: 5.777 MB / 0.7191 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007931/1.146, allocations: 2.055 MB / 0.7212 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2684/1.415, allocations: 25.43 MB / 0.746 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007211/1.422, allocations: 0.5487 MB / 0.7465 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001832/1.424, allocations: 0.5038 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.006963/1.431, allocations: 3.09 MB / 0.75 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/1.432, allocations: 0.5194 MB / 0.7505 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02998/1.462, allocations: 12.58 MB / 0.7628 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.678e-05/1.462, allocations: 57.3 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.199e-05/1.462, allocations: 7.531 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.781e-05/1.462, allocations: 14.48 kB / 0.7629 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04909/1.512, allocations: 24.14 MB / 0.7865 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.894e-05/1.512, allocations: 11.38 kB / 0.7865 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002956/1.515, allocations: 0.5751 MB / 0.787 GB, free: 166 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0174/1.532, allocations: 4.803 MB / 0.7917 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007775/1.533, allocations: 55.94 kB / 0.7918 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02243/1.555, allocations: 20.71 MB / 0.812 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.555, allocations: 9.906 kB / 0.812 GB, free: 140.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03084/1.586, allocations: 16.99 MB / 0.8286 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.587, allocations: 486.6 kB / 0.8291 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001323/1.589, allocations: 59.44 kB / 0.8291 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003321/1.592, allocations: 256.4 kB / 0.8294 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007995/1.593, allocations: 200.2 kB / 0.8296 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.593, allocations: 84 kB / 0.8296 GB, free: 122.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004997/1.598, allocations: 3.424 MB / 0.833 GB, free: 119.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.598, allocations: 0 / 0.833 GB, free: 119.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007078/1.605, allocations: 1.686 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.03036/1.635, allocations: 17.65 MB / 0.8519 GB, free: 99.78 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01396/1.649, allocations: 10.19 MB / 0.8618 GB, free: 89.65 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/1.649, allocations: 0 / 0.8618 GB, free: 89.65 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004794/1.654, allocations: 3.713 MB / 0.8654 GB, free: 85.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/1.658, allocations: 0.648 MB / 0.8661 GB, free: 85.31 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3578/2.016, allocations: 86.19 MB / 0.9502 GB, free: 203 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008592/2.025, allocations: 4.614 MB / 0.9547 GB, free: 202.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007038/2.032, allocations: 2.98 MB / 0.9577 GB, free: 202 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0043/2.036, allocations: 2.915 MB / 0.9605 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/2.036, allocations: 0 / 0.9605 GB, free: 201.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1713/2.207, allocations: 130 MB / 1.088 GB, free: 84.24 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.14/44.35, allocations: 18.59 kB / 1.088 GB, free: 84.22 MB / 0.5606 GB " [Timeout remaining time 615] (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: 47.01535841310397] Failed to read output from testmodel.py, exit status != 0: ['time', 'j1.phi', 'j1.w'] 44.50503245322034 44.515313337 44.136639733 Calling exit ...