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.PlanarFourbar.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.001921/0.001921, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.002211/0.002211, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.494/1.494, allocations: 230.4 MB / 254.7 MB, free: 14.87 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.PlanarFourbar,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001947/0.001947, allocations: 71.84 kB / 373.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1088, allocations: 53.31 MB / 426.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.237/0.3457, allocations: 18.11 MB / 445 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01638/0.3621, allocations: 6.071 MB / 451.1 MB, free: 13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006056/0.3682, allocations: 142.2 kB / 451.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01276/0.3809, allocations: 6.311 MB / 457.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00951/0.3904, allocations: 2.89 MB / 460.4 MB, free: 8.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005944/0.3964, allocations: 2.29 MB / 462.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.4127, allocations: 9.682 MB / 472.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.4235, allocations: 6.904 MB / 479.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007197/0.4307, allocations: 3.206 MB / 482.5 MB, free: 9.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00806/0.4387, allocations: 4.472 MB / 487 MB, free: 4.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002027/0.4408, allocations: 0.7148 MB / 487.7 MB, free: 4.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004145/0.4449, allocations: 1.947 MB / 489.6 MB, free: 2.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004289/0.4492, allocations: 3.904 MB / 493.5 MB, free: 14.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006456/0.4556, allocations: 4.403 MB / 497.9 MB, free: 9.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02024/0.4759, allocations: 13.87 MB / 0.4998 GB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.4759, allocations: 0 / 0.4998 GB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4759, allocations: 0 / 0.4998 GB, free: 11.85 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000586/0.4765, allocations: 3.938 kB / 0.4998 GB, free: 11.84 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.033/0.5095, allocations: 9.652 MB / 0.5092 GB, free: 2.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5095, allocations: 12.03 kB / 0.5092 GB, free: 2.078 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00237/0.5119, allocations: 1.136 MB / 0.5104 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2723/0.7842, allocations: 23.27 MB / 0.5331 GB, free: 9.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02122/0.8055, allocations: 7.575 MB / 0.5405 GB, free: 1.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/0.8059, allocations: 435.9 kB / 0.5409 GB, free: 1.555 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002318/0.8082, allocations: 0.5856 MB / 0.5415 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03569/0.8439, allocations: 16.86 MB / 0.5579 GB, free: 15.16 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/0.8442, allocations: 79.41 kB / 0.558 GB, free: 15.08 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009061/0.8451, allocations: 263.8 kB / 0.5583 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004695/0.8498, allocations: 2.658 MB / 0.5609 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03226/0.882, allocations: 14.4 MB / 0.5749 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5041/1.386, allocations: 63.78 MB / 0.6372 GB, free: 122.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02333/1.409, allocations: 8.345 MB / 0.6454 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006003/1.415, allocations: 4.564 MB / 0.6498 GB, free: 121.5 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02938/1.445, allocations: 18.14 MB / 0.6675 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/1.445, allocations: 67.81 kB / 0.6676 GB, free: 113.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=281): time 5.871e-06/1.445, allocations: 0 / 0.6676 GB, free: 113.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=374): time 0.2154/1.66, allocations: 73.08 MB / 0.739 GB, free: 51.02 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/1.66, allocations: 376.1 kB / 0.7393 GB, free: 50.58 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007943/1.668, allocations: 6.436 MB / 0.7456 GB, free: 44.25 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009369/1.669, allocations: 81.7 kB / 0.7457 GB, free: 44.16 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002295/1.672, allocations: 5.016 MB / 0.7506 GB, free: 39.54 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001469/1.673, allocations: 1.432 MB / 0.752 GB, free: 38.12 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002473/1.676, allocations: 1.845 MB / 0.7538 GB, free: 36.27 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.198e-05/1.676, allocations: 301.1 kB / 0.7541 GB, free: 35.97 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00595/1.682, allocations: 5.663 MB / 0.7596 GB, free: 30.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00808/1.69, allocations: 10.61 MB / 0.77 GB, free: 17.32 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0161/1.706, allocations: 17.36 MB / 0.7869 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/1.706, allocations: 52 kB / 0.787 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04817/1.754, allocations: 21.92 MB / 0.8084 GB, free: 7.621 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002281/1.754, allocations: 76 kB / 0.8084 GB, free: 7.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003072/1.755, allocations: 172 kB / 0.8086 GB, free: 7.379 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02179/1.776, allocations: 6.861 MB / 0.8153 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007824/1.784, allocations: 2.074 MB / 0.8173 GB, free: 14.43 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.288/2.072, allocations: 36.41 MB / 0.8529 GB, free: 177 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00958/2.082, allocations: 0.7197 MB / 0.8536 GB, free: 176.9 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/2.084, allocations: 0.5093 MB / 0.8541 GB, free: 176.8 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007109/2.091, allocations: 3.425 MB / 0.8574 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/2.093, allocations: 0.6168 MB / 0.858 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02779/2.12, allocations: 16.01 MB / 0.8737 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.644e-05/2.12, allocations: 56.25 kB / 0.8737 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.64e-05/2.12, allocations: 15.38 kB / 0.8737 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.71e-05/2.121, allocations: 15 kB / 0.8737 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04877/2.169, allocations: 31.23 MB / 0.9042 GB, free: 150.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.477e-05/2.169, allocations: 4 kB / 0.9042 GB, free: 150.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003104/2.172, allocations: 0.6051 MB / 0.9048 GB, free: 149.8 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01658/2.189, allocations: 6.433 MB / 0.9111 GB, free: 143.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009172/2.19, allocations: 69.86 kB / 0.9112 GB, free: 143.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03612/2.226, allocations: 34.63 MB / 0.945 GB, free: 108.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/2.226, allocations: 4 kB / 0.945 GB, free: 108.6 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03325/2.259, allocations: 23.51 MB / 0.968 GB, free: 85.25 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/2.262, allocations: 0.6579 MB / 0.9686 GB, free: 84.58 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/2.263, allocations: 63.94 kB / 0.9687 GB, free: 84.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00358/2.266, allocations: 427.3 kB / 0.9691 GB, free: 84.1 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009814/2.267, allocations: 248.6 kB / 0.9693 GB, free: 83.86 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003129/2.268, allocations: 92 kB / 0.9694 GB, free: 83.77 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005318/2.273, allocations: 4.103 MB / 0.9734 GB, free: 79.67 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1e-07/2.273, allocations: 2 kB / 0.9734 GB, free: 79.67 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008864/2.282, allocations: 2.193 MB / 0.9756 GB, free: 77.5 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03384/2.316, allocations: 24.27 MB / 0.9993 GB, free: 53.18 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01813/2.334, allocations: 13.67 MB / 1.013 GB, free: 39.49 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.334, allocations: 0 / 1.013 GB, free: 39.49 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008288/2.342, allocations: 6.025 MB / 1.018 GB, free: 33.43 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005259/2.347, allocations: 0.9408 MB / 1.019 GB, free: 32.53 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4025/2.75, allocations: 102.7 MB / 1.12 GB, free: 131.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00611/2.756, allocations: 5.262 MB / 1.125 GB, free: 126 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006239/2.762, allocations: 3.032 MB / 1.128 GB, free: 123 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004584/2.767, allocations: 3.393 MB / 1.131 GB, free: 119.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.422e-06/2.767, allocations: 3.938 kB / 1.131 GB, free: 119.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4845/3.251, allocations: 167.8 MB / 1.295 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.81/30.06, allocations: 4.594 kB / 1.295 GB, free: 160.1 MB / 0.5607 GB " [Timeout remaining time 630] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 32.751739002298564] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w'] 30.248074610717595 30.265912502 29.786260227 Calling exit ...