Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 51.91 kB / 371.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2131, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01533/0.2284, allocations: 13.4 MB / 436.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009409/0.2378, allocations: 4.669 MB / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.2397, allocations: 103.5 kB / 441.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007681/0.2474, allocations: 4.143 MB / 445.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005244/0.2526, allocations: 2.131 MB / 447.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.2545, allocations: 0.8149 MB / 448.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00675/0.2613, allocations: 4.757 MB / 453.4 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005192/0.2665, allocations: 3.941 MB / 457.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003305/0.2698, allocations: 1.963 MB / 459.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004456/0.2742, allocations: 2.874 MB / 462.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.2754, allocations: 452 kB / 462.7 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.2781, allocations: 1.377 MB / 464 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002719/0.2808, allocations: 2.384 MB / 466.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003823/0.2846, allocations: 2.793 MB / 469.2 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.2956, allocations: 8.935 MB / 478.1 MB, free: 7.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.2956, allocations: 0 / 478.1 MB, free: 7.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2956, allocations: 0 / 478.1 MB, free: 7.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002061/0.2958, allocations: 0 / 478.1 MB, free: 7.625 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.03044/0.3263, allocations: 7.134 MB / 485.3 MB, free: 436 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3263, allocations: 12.03 kB / 485.3 MB, free: 424 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001472/0.3265, allocations: 124.1 kB / 485.4 MB, free: 300 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002179/0.3286, allocations: 0.8468 MB / 486.3 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1129/0.4416, allocations: 7.159 MB / 493.4 MB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.4538, allocations: 3.506 MB / 496.9 MB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003034/0.4541, allocations: 303.8 kB / 497.2 MB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001613/0.4557, allocations: 403.8 kB / 497.6 MB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0287/0.4844, allocations: 13.25 MB / 0.4989 GB, free: 6.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001951/0.4846, allocations: 51.56 kB / 0.4989 GB, free: 5.969 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001204/0.4858, allocations: 191.8 kB / 0.4991 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004742/0.4905, allocations: 2.202 MB / 0.5013 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02817/0.5187, allocations: 12.66 MB / 0.5136 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2316/0.7504, allocations: 48.99 MB / 0.5615 GB, free: 76.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02146/0.7718, allocations: 5.797 MB / 0.5671 GB, free: 75.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003635/0.7754, allocations: 3.683 MB / 0.5707 GB, free: 74.28 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007261/0.7762, allocations: 202.7 kB / 0.5709 GB, free: 74.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.7762, allocations: 64.59 kB / 0.571 GB, free: 74.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.318e-06/0.7762, allocations: 1.969 kB / 0.571 GB, free: 74.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08698/0.8632, allocations: 35.96 MB / 0.6061 GB, free: 40.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.8632, allocations: 212 kB / 0.6063 GB, free: 40.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/0.8679, allocations: 4.448 MB / 0.6107 GB, free: 35.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006864/0.8686, allocations: 61.7 kB / 0.6107 GB, free: 35.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.87, allocations: 3.606 MB / 0.6142 GB, free: 32.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009477/0.8709, allocations: 0.9793 MB / 0.6152 GB, free: 31.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002066/0.873, allocations: 1.572 MB / 0.6167 GB, free: 29.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.73e-05/0.873, allocations: 305.1 kB / 0.617 GB, free: 29.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004452/0.8775, allocations: 4.269 MB / 0.6212 GB, free: 25.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00591/0.8834, allocations: 8.155 MB / 0.6292 GB, free: 15.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.8948, allocations: 13.29 MB / 0.6421 GB, free: 156 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.764e-05/0.8949, allocations: 43.94 kB / 0.6422 GB, free: 112 kB / 446.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02618/0.9211, allocations: 14.62 MB / 0.6565 GB, free: 1.465 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.9212, allocations: 60 kB / 0.6565 GB, free: 1.406 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/0.9213, allocations: 136 kB / 0.6566 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007034/0.9284, allocations: 2.503 MB / 0.6591 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006346/0.9347, allocations: 1.747 MB / 0.6608 GB, free: 13.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02307/0.9578, allocations: 16.92 MB / 0.6773 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006194/0.964, allocations: 471.4 kB / 0.6778 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/0.9652, allocations: 499.5 kB / 0.6782 GB, free: 10.83 MB / 494.1 MB 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.004328/0.9695, allocations: 2.38 MB / 0.6806 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/0.9706, allocations: 421.2 kB / 0.681 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01798/0.9886, allocations: 9.606 MB / 0.6903 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.549e-05/0.9887, allocations: 31.94 kB / 0.6904 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.02e-05/0.9887, allocations: 8 kB / 0.6904 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.893e-05/0.9887, allocations: 16.52 kB / 0.6904 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03516/1.024, allocations: 18.13 MB / 0.7081 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.024, allocations: 0 / 0.7081 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/1.027, allocations: 0.5849 MB / 0.7087 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006759/1.034, allocations: 2.275 MB / 0.7109 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00059/1.035, allocations: 123.8 kB / 0.711 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02125/1.056, allocations: 15.36 MB / 0.726 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.056, allocations: 4 kB / 0.726 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2101/1.266, allocations: 15.13 MB / 0.7408 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009813/1.267, allocations: 408.2 kB / 0.7412 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007938/1.268, allocations: 38.59 kB / 0.7412 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002861/1.27, allocations: 224.5 kB / 0.7414 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006703/1.271, allocations: 252.3 kB / 0.7417 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/1.271, allocations: 147.2 kB / 0.7418 GB, free: 182.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00329/1.275, allocations: 2.804 MB / 0.7446 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/1.275, allocations: 0 / 0.7446 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00494/1.28, allocations: 1.413 MB / 0.7459 GB, free: 181.7 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.01826/1.298, allocations: 15.81 MB / 0.7614 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.31, allocations: 10.13 MB / 0.7713 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.31, allocations: 0.6562 kB / 0.7713 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005365/1.315, allocations: 4.379 MB / 0.7755 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/1.319, allocations: 0.504 MB / 0.776 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08109/1.4, allocations: 69.96 MB / 0.8443 GB, free: 86.87 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002807/1.403, allocations: 3.739 MB / 0.848 GB, free: 83.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00416/1.407, allocations: 2.379 MB / 0.8503 GB, free: 80.71 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002979/1.41, allocations: 2.514 MB / 0.8528 GB, free: 78.2 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.41, allocations: 0 / 0.8528 GB, free: 78.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3612/1.771, allocations: 122.1 MB / 0.972 GB, free: 171 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/22.14, allocations: 9.219 kB / 0.972 GB, free: 171 MB / 0.545 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.59052198001882] 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.356277686019894 22.371357798000002 22.072427373 Calling exit ...