Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.001608/0.001608, allocations: 110.5 kB / 21.23 MB, free: 0.5117 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.001842/0.001842, allocations: 209.9 kB / 24.53 MB, free: 3.891 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.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",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.002015/0.002015, allocations: 64.77 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2659, allocations: 53.36 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01589/0.2818, allocations: 13.28 MB / 445.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.2921, allocations: 4.716 MB / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002701/0.2948, allocations: 99.5 kB / 450 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008212/0.303, allocations: 4.131 MB / 454.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00623/0.3093, allocations: 2.096 MB / 456.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.3118, allocations: 0.8499 MB / 457.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007896/0.3197, allocations: 4.778 MB / 461.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006057/0.3257, allocations: 3.934 MB / 465.8 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003908/0.3297, allocations: 1.963 MB / 467.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005083/0.3347, allocations: 2.878 MB / 470.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001599/0.3363, allocations: 452 kB / 471.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.3396, allocations: 1.354 MB / 472.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00333/0.3429, allocations: 2.361 MB / 474.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004229/0.3472, allocations: 2.774 MB / 477.6 MB, free: 9.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.3592, allocations: 8.893 MB / 486.5 MB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3592, allocations: 0 / 486.5 MB, free: 108 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3592, allocations: 0 / 486.5 MB, free: 108 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002508/0.3594, allocations: 8 kB / 486.5 MB, free: 100 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.03027/0.3897, allocations: 7.177 MB / 493.7 MB, free: 8.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.3897, allocations: 8.031 kB / 493.7 MB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001903/0.3916, allocations: 0.8389 MB / 494.5 MB, free: 8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07393/0.4656, allocations: 7.195 MB / 0.4899 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008992/0.4746, allocations: 3.405 MB / 0.4933 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003358/0.4749, allocations: 299.8 kB / 0.4935 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/0.4766, allocations: 407.8 kB / 0.4939 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02972/0.5063, allocations: 13.26 MB / 0.5069 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001616/0.5064, allocations: 47.58 kB / 0.5069 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008386/0.5073, allocations: 187.9 kB / 0.5071 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00446/0.5117, allocations: 2.194 MB / 0.5092 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.5393, allocations: 12.68 MB / 0.5216 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2622/0.8016, allocations: 48.99 MB / 0.5695 GB, free: 65.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02057/0.8221, allocations: 5.794 MB / 0.5751 GB, free: 64.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003933/0.826, allocations: 3.684 MB / 0.5787 GB, free: 62.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007441/0.8268, allocations: 196.1 kB / 0.5789 GB, free: 62.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.8268, allocations: 62.81 kB / 0.579 GB, free: 62.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.518e-06/0.8268, allocations: 0 / 0.579 GB, free: 62.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08746/0.9143, allocations: 35.97 MB / 0.6141 GB, free: 27.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.9144, allocations: 213.9 kB / 0.6143 GB, free: 27.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005523/0.9199, allocations: 4.441 MB / 0.6186 GB, free: 23.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007392/0.9206, allocations: 65.7 kB / 0.6187 GB, free: 23.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.9224, allocations: 3.61 MB / 0.6222 GB, free: 19.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001192/0.9236, allocations: 0.9893 MB / 0.6232 GB, free: 18.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00237/0.9259, allocations: 1.564 MB / 0.6247 GB, free: 17.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.729e-05/0.926, allocations: 305.1 kB / 0.625 GB, free: 17.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004992/0.931, allocations: 4.274 MB / 0.6292 GB, free: 12.83 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00667/0.9376, allocations: 8.155 MB / 0.6371 GB, free: 2.762 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01733/0.955, allocations: 13.29 MB / 0.6501 GB, free: 3.562 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/0.9551, allocations: 43.98 kB / 0.6502 GB, free: 3.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02967/0.9847, allocations: 14.61 MB / 0.6644 GB, free: 4.887 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.9849, allocations: 60 kB / 0.6645 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001818/0.985, allocations: 140 kB / 0.6646 GB, free: 4.691 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007386/0.9924, allocations: 2.498 MB / 0.6671 GB, free: 2.184 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00696/0.9994, allocations: 1.758 MB / 0.6688 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02479/1.024, allocations: 16.92 MB / 0.6853 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00686/1.031, allocations: 475.4 kB / 0.6858 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001519/1.033, allocations: 499.7 kB / 0.6862 GB, free: 14.23 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[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],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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 (807): * Single equations (assignments): 801 * Array equations: 3 * 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): 3 systems {(3,15,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005249/1.038, allocations: 2.376 MB / 0.6886 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/1.039, allocations: 417.2 kB / 0.689 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01888/1.058, allocations: 9.602 MB / 0.6983 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-05/1.058, allocations: 31.98 kB / 0.6984 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.003e-05/1.058, allocations: 8 kB / 0.6984 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.794e-05/1.058, allocations: 15.97 kB / 0.6984 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/1.096, allocations: 18.12 MB / 0.7161 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.148e-05/1.096, allocations: 0 / 0.7161 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00343/1.099, allocations: 0.585 MB / 0.7167 GB, free: 15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006979/1.106, allocations: 2.269 MB / 0.7189 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009833/1.107, allocations: 130.2 kB / 0.719 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02288/1.13, allocations: 15.36 MB / 0.734 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.13, allocations: 3.938 kB / 0.734 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2454/1.375, allocations: 15.13 MB / 0.7488 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/1.376, allocations: 407.5 kB / 0.7492 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001199/1.378, allocations: 39.53 kB / 0.7492 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003229/1.381, allocations: 223.4 kB / 0.7494 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009152/1.382, allocations: 240.8 kB / 0.7496 GB, free: 190.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004433/1.382, allocations: 155.1 kB / 0.7498 GB, free: 190.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004703/1.387, allocations: 2.805 MB / 0.7525 GB, free: 190.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/1.387, allocations: 0 / 0.7525 GB, free: 190.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006704/1.394, allocations: 1.399 MB / 0.7539 GB, free: 190.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (195): * Single equations (assignments): 189 * Array equations: 3 * 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): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02017/1.414, allocations: 15.8 MB / 0.7693 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01337/1.427, allocations: 10.13 MB / 0.7792 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.427, allocations: 0 / 0.7792 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00605/1.433, allocations: 4.387 MB / 0.7835 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003816/1.437, allocations: 0.5058 MB / 0.784 GB, free: 174.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09435/1.531, allocations: 69.96 MB / 0.8523 GB, free: 99.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/1.535, allocations: 3.748 MB / 0.856 GB, free: 95.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005148/1.54, allocations: 2.38 MB / 0.8583 GB, free: 93.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003768/1.544, allocations: 2.51 MB / 0.8608 GB, free: 90.87 MB / 0.545 GB Notification: Performance of SimCode: time 1.433e-06/1.544, allocations: 0 / 0.8608 GB, free: 90.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4216/1.966, allocations: 122.1 MB / 0.98 GB, free: 174 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.77/22.74, allocations: 8.688 kB / 0.98 GB, free: 174 MB / 0.545 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.24618571717292] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia2.phi', 'inertia2.w', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w', 'revolute3.phi', 'revolute3.w'] 22.880783992819488 22.890905291 22.528907829 Calling exit ...