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.00158/0.00158, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001771/0.001771, allocations: 219 kB / 21.46 MB, free: 1.605 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.466/1.466, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.001512/0.001512, allocations: 51.92 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09458/0.09609, allocations: 53.33 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01554/0.1116, allocations: 13.25 MB / 440.3 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009631/0.1213, allocations: 4.684 MB / 445 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.1231, allocations: 99.5 kB / 445.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1897/0.3128, allocations: 4.107 MB / 449.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.3175, allocations: 2.085 MB / 451.3 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.3193, allocations: 0.8337 MB / 452.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006758/0.3261, allocations: 4.768 MB / 456.9 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005144/0.3312, allocations: 4.266 MB / 461.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.3344, allocations: 1.965 MB / 463.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004053/0.3385, allocations: 2.876 MB / 466 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001111/0.3396, allocations: 451.7 kB / 466.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/0.3421, allocations: 1.36 MB / 467.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002104/0.3442, allocations: 2.358 MB / 470.1 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003805/0.348, allocations: 2.782 MB / 472.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.3584, allocations: 8.885 MB / 481.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3584, allocations: 0 / 481.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3584, allocations: 2.938 kB / 481.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002705/0.3586, allocations: 0 / 481.8 MB, free: 12.77 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.03249/0.3911, allocations: 7.25 MB / 489 MB, free: 8.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3912, allocations: 9.688 kB / 489 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001147/0.3913, allocations: 131.7 kB / 489.2 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001575/0.3929, allocations: 0.8349 MB / 490 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08737/0.4802, allocations: 7.197 MB / 497.2 MB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00944/0.4897, allocations: 3.492 MB / 0.489 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003809/0.49, allocations: 296.9 kB / 0.4892 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002064/0.4921, allocations: 409.7 kB / 0.4896 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/0.522, allocations: 13.25 MB / 0.5026 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001532/0.5221, allocations: 46.72 kB / 0.5026 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008524/0.523, allocations: 194.8 kB / 0.5028 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004815/0.5278, allocations: 2.194 MB / 0.505 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02926/0.557, allocations: 12.67 MB / 0.5173 GB, free: 224 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07242/0.6295, allocations: 49.16 MB / 0.5653 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02559/0.655, allocations: 6.249 MB / 0.5714 GB, free: 7.781 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005391/0.6604, allocations: 3.663 MB / 0.575 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001011/0.6614, allocations: 420.7 kB / 0.5754 GB, free: 3.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.217e-05/0.6615, allocations: 59.88 kB / 0.5755 GB, free: 3.59 MB / 478.1 MB Notification: Performance of pre-optimization done (n=214): time 4.378e-06/0.6615, allocations: 0 / 0.5755 GB, free: 3.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=252): time 0.1116/0.7731, allocations: 36.33 MB / 0.6109 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.7732, allocations: 213.9 kB / 0.6111 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007275/0.7805, allocations: 4.445 MB / 0.6155 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008121/0.7813, allocations: 65.7 kB / 0.6156 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003057/0.7844, allocations: 3.607 MB / 0.6191 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001632/0.786, allocations: 0.9894 MB / 0.62 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002899/0.7889, allocations: 1.56 MB / 0.6216 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.789, allocations: 305.1 kB / 0.6219 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006893/0.7959, allocations: 4.272 MB / 0.626 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01055/0.8065, allocations: 8.153 MB / 0.634 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1927/0.9992, allocations: 13.3 MB / 0.647 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.25e-05/0.9993, allocations: 39.16 kB / 0.647 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02918/1.028, allocations: 14.61 MB / 0.6613 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/1.029, allocations: 62.97 kB / 0.6613 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002646/1.029, allocations: 136.8 kB / 0.6615 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008009/1.037, allocations: 2.51 MB / 0.6639 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006446/1.043, allocations: 1.753 MB / 0.6656 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0174/1.061, allocations: 17.2 MB / 0.6824 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007446/1.068, allocations: 481.4 kB / 0.6829 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002339/1.07, allocations: 497.7 kB / 0.6834 GB, free: 150.8 MB / 0.5294 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.006716/1.077, allocations: 2.379 MB / 0.6857 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001597/1.079, allocations: 420.8 kB / 0.6861 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02222/1.101, allocations: 9.608 MB / 0.6955 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.939e-05/1.101, allocations: 24 kB / 0.6955 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.401e-05/1.101, allocations: 15.98 kB / 0.6955 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.875e-05/1.101, allocations: 9.406 kB / 0.6955 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03544/1.137, allocations: 18.15 MB / 0.7132 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.403e-05/1.137, allocations: 0 / 0.7132 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00316/1.14, allocations: 0.5857 MB / 0.7138 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00614/1.146, allocations: 2.273 MB / 0.716 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006954/1.147, allocations: 127.8 kB / 0.7162 GB, free: 122.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/1.162, allocations: 15.69 MB / 0.7315 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.162, allocations: 4 kB / 0.7315 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/1.181, allocations: 15.12 MB / 0.7463 GB, free: 91.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.182, allocations: 486 kB / 0.7467 GB, free: 91.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.183, allocations: 46.97 kB / 0.7468 GB, free: 90.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003413/1.187, allocations: 223.6 kB / 0.747 GB, free: 90.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009183/1.188, allocations: 233.6 kB / 0.7472 GB, free: 90.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003585/1.188, allocations: 147.8 kB / 0.7473 GB, free: 90.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003827/1.192, allocations: 2.804 MB / 0.7501 GB, free: 87.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.192, allocations: 0 / 0.7501 GB, free: 87.59 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006342/1.198, allocations: 1.402 MB / 0.7514 GB, free: 86.19 MB / 0.5294 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.01903/1.217, allocations: 15.81 MB / 0.7669 GB, free: 70.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01355/1.231, allocations: 10.12 MB / 0.7768 GB, free: 60.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.231, allocations: 4 kB / 0.7768 GB, free: 60.17 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005839/1.236, allocations: 4.389 MB / 0.7811 GB, free: 55.74 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/1.241, allocations: 0.5076 MB / 0.7815 GB, free: 55.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2838/1.525, allocations: 69.87 MB / 0.8498 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004775/1.529, allocations: 3.739 MB / 0.8534 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005888/1.535, allocations: 2.387 MB / 0.8558 GB, free: 182 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004419/1.54, allocations: 2.51 MB / 0.8582 GB, free: 181.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.54, allocations: 0 / 0.8582 GB, free: 181.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1577/1.697, allocations: 116.2 MB / 0.9717 GB, free: 84.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.15/20.85, allocations: 4.062 kB / 0.9717 GB, free: 84.51 MB / 0.545 GB " [Timeout remaining time 639] (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: 23.34242289699614] 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.0537107239943 21.061557815 20.701089583 Calling exit ...