Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 218.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 258.3 MB, free: 7.777 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 47.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.235, allocations: 53.37 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01458/0.2496, allocations: 11.46 MB / 443.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009771/0.2593, allocations: 4.459 MB / 447.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002151/0.2615, allocations: 99.5 kB / 447.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008391/0.2699, allocations: 3.952 MB / 451.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005944/0.2758, allocations: 2.097 MB / 453.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.2783, allocations: 0.8383 MB / 454.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00722/0.2855, allocations: 4.772 MB / 459.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005752/0.2913, allocations: 3.93 MB / 463.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00359/0.2949, allocations: 1.967 MB / 465.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004561/0.2995, allocations: 2.878 MB / 468.3 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001379/0.3008, allocations: 452 kB / 468.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.3037, allocations: 1.225 MB / 470 MB, free: 356 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002982/0.3067, allocations: 2.373 MB / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003796/0.3105, allocations: 2.098 MB / 474.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.3217, allocations: 8.927 MB / 483.4 MB, free: 2.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3217, allocations: 0 / 483.4 MB, free: 2.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3217, allocations: 0 / 483.4 MB, free: 2.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002515/0.3219, allocations: 4 kB / 483.4 MB, free: 2.895 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.03101/0.3529, allocations: 7.166 MB / 490.6 MB, free: 11.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.353, allocations: 12.02 kB / 490.6 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001694/0.3531, allocations: 128.1 kB / 490.7 MB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002315/0.3555, allocations: 0.8428 MB / 491.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07946/0.4349, allocations: 7.199 MB / 498.7 MB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008573/0.4435, allocations: 3.429 MB / 0.4904 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002999/0.4438, allocations: 295.8 kB / 0.4907 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/0.4454, allocations: 411.8 kB / 0.4911 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02897/0.4744, allocations: 13.33 MB / 0.5041 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000223/0.4746, allocations: 51.62 kB / 0.5041 GB, free: 1.145 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001403/0.476, allocations: 191.8 kB / 0.5043 GB, free: 0.957 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004628/0.4806, allocations: 2.19 MB / 0.5065 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/0.509, allocations: 12.67 MB / 0.5188 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2591/0.768, allocations: 46.91 MB / 0.5646 GB, free: 62.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/0.7893, allocations: 5.785 MB / 0.5703 GB, free: 61.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003548/0.7929, allocations: 3.689 MB / 0.5739 GB, free: 60.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006844/0.7936, allocations: 185.6 kB / 0.5741 GB, free: 60.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.7936, allocations: 60.28 kB / 0.5741 GB, free: 60.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 5.03e-06/0.7936, allocations: 0 / 0.5741 GB, free: 60.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08615/0.8798, allocations: 36.01 MB / 0.6093 GB, free: 28.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.8798, allocations: 209.6 kB / 0.6095 GB, free: 28.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005657/0.8855, allocations: 4.456 MB / 0.6138 GB, free: 24.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008406/0.8863, allocations: 61.7 kB / 0.6139 GB, free: 24.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.8879, allocations: 3.605 MB / 0.6174 GB, free: 20.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/0.8891, allocations: 0.9896 MB / 0.6184 GB, free: 19.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/0.8913, allocations: 1.564 MB / 0.6199 GB, free: 18.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.452e-05/0.8913, allocations: 301.1 kB / 0.6202 GB, free: 18.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004203/0.8955, allocations: 4.272 MB / 0.6244 GB, free: 13.83 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005899/0.9014, allocations: 8.21 MB / 0.6324 GB, free: 3.766 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/0.9168, allocations: 13.3 MB / 0.6454 GB, free: 4.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001486/0.9169, allocations: 45.25 kB / 0.6454 GB, free: 4.887 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02788/0.9448, allocations: 14.62 MB / 0.6597 GB, free: 6.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.945, allocations: 64 kB / 0.6598 GB, free: 6.188 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000211/0.9452, allocations: 132 kB / 0.6599 GB, free: 6.059 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007302/0.9525, allocations: 2.501 MB / 0.6623 GB, free: 3.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006643/0.9591, allocations: 1.754 MB / 0.664 GB, free: 1.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02388/0.983, allocations: 16.76 MB / 0.6804 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00627/0.9893, allocations: 467.4 kB / 0.6809 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001787/0.9911, allocations: 0.4946 MB / 0.6813 GB, free: 15.76 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.005428/0.9965, allocations: 2.376 MB / 0.6837 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001479/0.998, allocations: 425.1 kB / 0.6841 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/1.016, allocations: 9.602 MB / 0.6934 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/1.017, allocations: 24 kB / 0.6935 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/1.017, allocations: 12 kB / 0.6935 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.466e-05/1.017, allocations: 11.95 kB / 0.6935 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03333/1.05, allocations: 17.41 MB / 0.7105 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.231e-05/1.05, allocations: 0 / 0.7105 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003357/1.053, allocations: 0.581 MB / 0.7111 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006789/1.06, allocations: 2.263 MB / 0.7133 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007411/1.061, allocations: 134 kB / 0.7134 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02209/1.083, allocations: 15.22 MB / 0.7283 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.083, allocations: 0 / 0.7283 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02577/1.109, allocations: 15.13 MB / 0.743 GB, free: 108 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.1922/1.301, allocations: 400.7 kB / 0.7434 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001385/1.302, allocations: 41.17 kB / 0.7435 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00359/1.306, allocations: 219.8 kB / 0.7437 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/1.307, allocations: 251.8 kB / 0.7439 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005827/1.308, allocations: 145.6 kB / 0.744 GB, free: 194.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004999/1.313, allocations: 2.811 MB / 0.7468 GB, free: 194 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.313, allocations: 0 / 0.7468 GB, free: 194 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006766/1.319, allocations: 1.4 MB / 0.7482 GB, free: 194 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.02094/1.34, allocations: 15.8 MB / 0.7636 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01322/1.353, allocations: 10.13 MB / 0.7735 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/1.353, allocations: 0 / 0.7735 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0064/1.36, allocations: 4.39 MB / 0.7778 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004234/1.364, allocations: 0.5061 MB / 0.7783 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08796/1.452, allocations: 69.96 MB / 0.8466 GB, free: 101.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004988/1.457, allocations: 3.221 MB / 0.8497 GB, free: 98.67 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006117/1.463, allocations: 2.379 MB / 0.852 GB, free: 96.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00461/1.468, allocations: 2.51 MB / 0.8545 GB, free: 93.77 MB / 0.545 GB Notification: Performance of SimCode: time 1.583e-06/1.468, allocations: 0 / 0.8545 GB, free: 93.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3418/1.81, allocations: 121.1 MB / 0.9727 GB, free: 176.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.48/22.29, allocations: 11.16 kB / 0.9727 GB, free: 176.4 MB / 0.545 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.671561278984882] 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.506347118061967 22.514980206 22.190985284 Calling exit ...