Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004554/0.004554, allocations: 100.3 kB / 21.96 MB, free: 5.207 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.001297/0.001297, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 55.92 kB / 348 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2192, allocations: 49.16 MB / 397.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01121/0.2304, allocations: 12.11 MB / 409.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009514/0.2399, allocations: 4.522 MB / 413.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002261/0.2422, allocations: 98.28 kB / 413.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007301/0.2495, allocations: 3.969 MB / 417.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005507/0.255, allocations: 2.141 MB / 420 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.257, allocations: 0.8183 MB / 420.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006246/0.2633, allocations: 4.612 MB / 425.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004851/0.2681, allocations: 3.951 MB / 429.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003115/0.2712, allocations: 1.978 MB / 431.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004072/0.2753, allocations: 2.898 MB / 434.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009924/0.2763, allocations: 456 kB / 434.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002506/0.2788, allocations: 1.249 MB / 435.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002502/0.2813, allocations: 2.384 MB / 438.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003111/0.2844, allocations: 2.125 MB / 440.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.2954, allocations: 9.016 MB / 449.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2954, allocations: 0 / 449.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2954, allocations: 0 / 449.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002262/0.2956, allocations: 0 / 449.5 MB, free: 14.62 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.02913/0.3247, allocations: 7.169 MB / 456.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3248, allocations: 11.98 kB / 456.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001424/0.3249, allocations: 128.1 kB / 456.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001551/0.3265, allocations: 0.8391 MB / 457.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08006/0.4065, allocations: 7.163 MB / 464.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008502/0.415, allocations: 3.686 MB / 468.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002714/0.4153, allocations: 299.8 kB / 468.7 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.4166, allocations: 415.7 kB / 469.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/0.443, allocations: 13.35 MB / 482.5 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/0.4432, allocations: 47.61 kB / 482.5 MB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006119/0.4438, allocations: 195.8 kB / 482.7 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004333/0.4481, allocations: 2.194 MB / 484.9 MB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/0.4745, allocations: 12.7 MB / 497.6 MB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06502/0.5395, allocations: 47.06 MB / 0.5319 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02398/0.5635, allocations: 5.814 MB / 0.5376 GB, free: 7.438 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004932/0.5684, allocations: 3.697 MB / 0.5412 GB, free: 3.73 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007306/0.5691, allocations: 189 kB / 0.5414 GB, free: 3.547 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.849e-05/0.5692, allocations: 51.88 kB / 0.5414 GB, free: 3.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 5.25e-06/0.5692, allocations: 0 / 0.5414 GB, free: 3.484 MB / 462.1 MB Notification: Performance of matching and sorting (n=255): time 0.255/0.8242, allocations: 36.15 MB / 0.5767 GB, free: 139.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.241e-05/0.8243, allocations: 209.2 kB / 0.5769 GB, free: 139.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006336/0.8306, allocations: 4.478 MB / 0.5813 GB, free: 137.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007328/0.8314, allocations: 61.42 kB / 0.5814 GB, free: 137.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/0.8331, allocations: 3.611 MB / 0.5849 GB, free: 135.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/0.8342, allocations: 1.004 MB / 0.5859 GB, free: 134.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002015/0.8362, allocations: 1.573 MB / 0.5874 GB, free: 134 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.75e-05/0.8362, allocations: 305.1 kB / 0.5877 GB, free: 133.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00461/0.8408, allocations: 4.282 MB / 0.5919 GB, free: 132.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005817/0.8467, allocations: 8.223 MB / 0.5999 GB, free: 125.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.8575, allocations: 13.32 MB / 0.6129 GB, free: 110.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-05/0.8576, allocations: 40 kB / 0.613 GB, free: 110.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.0197/0.8773, allocations: 14.64 MB / 0.6273 GB, free: 96.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.905e-05/0.8774, allocations: 68.77 kB / 0.6273 GB, free: 96.01 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.8775, allocations: 136 kB / 0.6275 GB, free: 95.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005665/0.8831, allocations: 2.499 MB / 0.6299 GB, free: 93.37 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00547/0.8886, allocations: 1.758 MB / 0.6316 GB, free: 91.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01606/0.9047, allocations: 16.75 MB / 0.648 GB, free: 74.53 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006315/0.911, allocations: 467.4 kB / 0.6484 GB, free: 74.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/0.9123, allocations: 499.7 kB / 0.6489 GB, free: 73.58 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (811): * Single equations (assignments): 805 * 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.004261/0.9165, allocations: 2.391 MB / 0.6512 GB, free: 71.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/0.9178, allocations: 429.2 kB / 0.6517 GB, free: 70.76 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/0.9308, allocations: 9.631 MB / 0.6611 GB, free: 61.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.801e-05/0.9309, allocations: 28 kB / 0.6611 GB, free: 61.07 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/0.9309, allocations: 8 kB / 0.6611 GB, free: 61.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.878e-05/0.9309, allocations: 19.95 kB / 0.6611 GB, free: 61.04 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02441/0.9553, allocations: 17.43 MB / 0.6781 GB, free: 43.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/0.9554, allocations: 4 kB / 0.6781 GB, free: 43.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/0.9583, allocations: 0.5966 MB / 0.6787 GB, free: 43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005668/0.964, allocations: 2.266 MB / 0.6809 GB, free: 40.72 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005777/0.9645, allocations: 131.8 kB / 0.6811 GB, free: 40.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01473/0.9793, allocations: 15.24 MB / 0.6959 GB, free: 25.01 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9793, allocations: 4 kB / 0.6959 GB, free: 25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/0.9976, allocations: 15.17 MB / 0.7108 GB, free: 9.75 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/1, allocations: 1.016 MB / 0.7117 GB, free: 8.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009037/1.001, allocations: 40 kB / 0.7118 GB, free: 8.691 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002916/1.004, allocations: 223.7 kB / 0.712 GB, free: 8.473 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007238/1.005, allocations: 257.2 kB / 0.7122 GB, free: 8.223 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003251/1.005, allocations: 147.8 kB / 0.7124 GB, free: 8.078 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0032/1.008, allocations: 2.82 MB / 0.7151 GB, free: 5.254 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.008, allocations: 0 / 0.7151 GB, free: 5.254 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005287/1.013, allocations: 1.422 MB / 0.7165 GB, free: 3.832 MB / 478.1 MB 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 (198): * Single equations (assignments): 192 * 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.02271/1.036, allocations: 15.85 MB / 0.732 GB, free: 3.898 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01626/1.052, allocations: 10.16 MB / 0.7419 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.052, allocations: 0 / 0.7419 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.1614/1.214, allocations: 4.388 MB / 0.7462 GB, free: 168.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/1.217, allocations: 0.5133 MB / 0.7467 GB, free: 168.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08534/1.302, allocations: 70.21 MB / 0.8153 GB, free: 114.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004322/1.307, allocations: 3.225 MB / 0.8184 GB, free: 111.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00498/1.312, allocations: 2.399 MB / 0.8208 GB, free: 108.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003572/1.315, allocations: 2.522 MB / 0.8232 GB, free: 106.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/1.315, allocations: 0 / 0.8232 GB, free: 106.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3223/1.637, allocations: 121.4 MB / 0.9418 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.19/21.82, allocations: 3.688 kB / 0.9418 GB, free: 172.4 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.176083775935695] 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.04555930895731 22.065577469 21.766376826 Calling exit ...