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.001305/0.001305, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.00184/0.00184, allocations: 219.1 kB / 23 MB, free: 5.605 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.425/1.425, allocations: 230.5 MB / 256.5 MB, free: 8.418 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.001902/0.001902, allocations: 71.83 kB / 376.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2618, allocations: 53.31 MB / 429.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01547/0.2772, allocations: 13.29 MB / 442.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.2873, allocations: 4.704 MB / 447.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002153/0.2894, allocations: 83.75 kB / 447.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007682/0.2971, allocations: 4.135 MB / 451.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005803/0.3029, allocations: 2.074 MB / 453.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002111/0.305, allocations: 0.8499 MB / 454.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007118/0.3121, allocations: 4.766 MB / 459.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005198/0.3173, allocations: 3.677 MB / 463.1 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.3212, allocations: 1.936 MB / 465 MB, free: 3.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004683/0.3259, allocations: 2.87 MB / 467.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.3272, allocations: 452 kB / 468.3 MB, free: 436 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003116/0.3303, allocations: 1.358 MB / 469.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003374/0.3337, allocations: 2.365 MB / 472.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004863/0.3385, allocations: 2.774 MB / 474.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.3509, allocations: 8.892 MB / 483.7 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.3509, allocations: 0 / 483.7 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3509, allocations: 0 / 483.7 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002936/0.3512, allocations: 0 / 483.7 MB, free: 0.9805 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: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.03079/0.382, allocations: 7.249 MB / 491 MB, free: 9.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3821, allocations: 12.03 kB / 491 MB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001803/0.3839, allocations: 0.8428 MB / 491.8 MB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0869/0.4708, allocations: 7.199 MB / 499 MB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008323/0.4791, allocations: 3.493 MB / 0.4908 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.4794, allocations: 295.8 kB / 0.491 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/0.4807, allocations: 403.8 kB / 0.4914 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02682/0.5075, allocations: 13.25 MB / 0.5044 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.5076, allocations: 55.56 kB / 0.5044 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007403/0.5084, allocations: 195.8 kB / 0.5046 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004441/0.5128, allocations: 2.19 MB / 0.5067 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02752/0.5403, allocations: 12.66 MB / 0.5191 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2565/0.7968, allocations: 49.15 MB / 0.5671 GB, free: 66.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02154/0.8183, allocations: 6.259 MB / 0.5732 GB, free: 64.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003771/0.8221, allocations: 3.66 MB / 0.5768 GB, free: 62.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007851/0.8229, allocations: 435.9 kB / 0.5772 GB, free: 62.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.8229, allocations: 67.06 kB / 0.5773 GB, free: 62.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.85e-06/0.8229, allocations: 0 / 0.5773 GB, free: 62.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08889/0.9118, allocations: 36.31 MB / 0.6127 GB, free: 27.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.9119, allocations: 213.9 kB / 0.6129 GB, free: 27.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005359/0.9173, allocations: 4.445 MB / 0.6173 GB, free: 22.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007983/0.9181, allocations: 65.7 kB / 0.6173 GB, free: 22.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/0.9197, allocations: 3.608 MB / 0.6209 GB, free: 19.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001123/0.9208, allocations: 0.9853 MB / 0.6218 GB, free: 18.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002021/0.9228, allocations: 1.568 MB / 0.6234 GB, free: 17.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.009e-05/0.9229, allocations: 301.1 kB / 0.6236 GB, free: 16.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00484/0.9277, allocations: 4.284 MB / 0.6278 GB, free: 12.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006427/0.9341, allocations: 8.151 MB / 0.6358 GB, free: 2.395 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01746/0.9516, allocations: 13.29 MB / 0.6488 GB, free: 3.199 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/0.9517, allocations: 43.94 kB / 0.6488 GB, free: 3.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02923/0.981, allocations: 14.62 MB / 0.6631 GB, free: 4.52 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.9811, allocations: 64 kB / 0.6631 GB, free: 4.457 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001794/0.9812, allocations: 132 kB / 0.6633 GB, free: 4.328 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00731/0.9886, allocations: 2.495 MB / 0.6657 GB, free: 1.824 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006638/0.9952, allocations: 1.762 MB / 0.6674 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0239/1.019, allocations: 17.22 MB / 0.6842 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006383/1.025, allocations: 463.2 kB / 0.6847 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001391/1.027, allocations: 0.495 MB / 0.6852 GB, free: 13.49 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.004545/1.031, allocations: 2.376 MB / 0.6875 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/1.033, allocations: 421.3 kB / 0.6879 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01816/1.051, allocations: 9.614 MB / 0.6973 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-05/1.051, allocations: 27.94 kB / 0.6973 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.453e-05/1.051, allocations: 12 kB / 0.6973 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.697e-05/1.051, allocations: 11.95 kB / 0.6973 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03406/1.085, allocations: 18.13 MB / 0.715 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.085, allocations: 0 / 0.715 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003311/1.088, allocations: 0.5772 MB / 0.7156 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006896/1.095, allocations: 2.289 MB / 0.7178 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006704/1.096, allocations: 135.8 kB / 0.718 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02172/1.118, allocations: 15.66 MB / 0.7333 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.118, allocations: 4.844 kB / 0.7333 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2296/1.347, allocations: 15.13 MB / 0.748 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/1.348, allocations: 479.2 kB / 0.7485 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009245/1.349, allocations: 40.25 kB / 0.7485 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003406/1.353, allocations: 220.6 kB / 0.7487 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/1.354, allocations: 239.9 kB / 0.749 GB, free: 190.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006734/1.354, allocations: 146 kB / 0.7491 GB, free: 190.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006179/1.36, allocations: 2.811 MB / 0.7519 GB, free: 190.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/1.36, allocations: 0 / 0.7519 GB, free: 190.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007098/1.368, allocations: 1.404 MB / 0.7532 GB, free: 190.2 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.02018/1.388, allocations: 15.81 MB / 0.7687 GB, free: 184.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01298/1.401, allocations: 10.12 MB / 0.7785 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.401, allocations: 3.781 kB / 0.7785 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005881/1.407, allocations: 4.38 MB / 0.7828 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/1.411, allocations: 0.5103 MB / 0.7833 GB, free: 173.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09983/1.51, allocations: 69.97 MB / 0.8517 GB, free: 98.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005133/1.516, allocations: 3.742 MB / 0.8553 GB, free: 94.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005767/1.521, allocations: 2.391 MB / 0.8576 GB, free: 92.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004358/1.526, allocations: 2.506 MB / 0.8601 GB, free: 90.02 MB / 0.545 GB Notification: Performance of SimCode: time 1.362e-06/1.526, allocations: 0 / 0.8601 GB, free: 90.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4113/1.937, allocations: 117 MB / 0.9744 GB, free: 176.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.9/21.84, allocations: 2.5 kB / 0.9744 GB, free: 176.2 MB / 0.545 GB " [Timeout remaining time 638] (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 --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: 24.199464699981036] 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'] 21.98062039699289 21.991175192 21.637064852 Calling exit ...