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.001618/0.001618, allocations: 110.7 kB / 19.17 MB, free: 3.871 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.001764/0.001764, allocations: 203.8 kB / 22.12 MB, free: 0.9297 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.354/1.354, allocations: 207.6 MB / 232.5 MB, free: 11.49 MB / 190.1 MB " [Timeout remaining time 178] 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.001731/0.001731, allocations: 55.92 kB / 343 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.244, allocations: 49.13 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01252/0.2566, allocations: 14.03 MB / 406.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.2674, allocations: 4.748 MB / 410.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002635/0.27, allocations: 101.5 kB / 411 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007666/0.2777, allocations: 4.131 MB / 415.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005764/0.2835, allocations: 2.122 MB / 417.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.2856, allocations: 0.8195 MB / 418.1 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006847/0.2924, allocations: 4.6 MB / 422.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005671/0.2981, allocations: 4.293 MB / 427 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003445/0.3015, allocations: 1.978 MB / 429 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004504/0.306, allocations: 2.89 MB / 431.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001171/0.3072, allocations: 456 kB / 432.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002778/0.31, allocations: 1.358 MB / 433.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002721/0.3127, allocations: 2.4 MB / 436 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004055/0.3168, allocations: 2.797 MB / 438.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01157/0.3283, allocations: 8.974 MB / 447.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.3283, allocations: 0 / 447.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3283, allocations: 0 / 447.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002346/0.3286, allocations: 0 / 447.8 MB, free: 12.46 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.0309/0.3595, allocations: 7.245 MB / 455.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.3595, allocations: 11.97 kB / 455.1 MB, free: 5.117 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001665/0.3597, allocations: 128.1 kB / 455.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002013/0.3617, allocations: 0.8391 MB / 456 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08762/0.4493, allocations: 7.163 MB / 463.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008752/0.4581, allocations: 3.747 MB / 466.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003262/0.4584, allocations: 295.8 kB / 467.2 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.4599, allocations: 415.7 kB / 467.6 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/0.4892, allocations: 13.28 MB / 480.9 MB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001526/0.4893, allocations: 43.64 kB / 481 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007856/0.4901, allocations: 195.8 kB / 481.2 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004666/0.4948, allocations: 2.198 MB / 483.3 MB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02738/0.5222, allocations: 12.7 MB / 496 MB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07033/0.5925, allocations: 49.31 MB / 0.5326 GB, free: 8.785 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02555/0.618, allocations: 6.273 MB / 0.5387 GB, free: 2.367 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005396/0.6234, allocations: 3.678 MB / 0.5423 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00102/0.6245, allocations: 428.2 kB / 0.5427 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.6245, allocations: 51.88 kB / 0.5427 GB, free: 14.14 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 5.109e-06/0.6245, allocations: 4 kB / 0.5428 GB, free: 14.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=255): time 0.2768/0.9013, allocations: 36.44 MB / 0.5783 GB, free: 138.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/0.9014, allocations: 208 kB / 0.5785 GB, free: 138.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00619/0.9076, allocations: 4.476 MB / 0.5829 GB, free: 137 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007606/0.9083, allocations: 61.48 kB / 0.583 GB, free: 136.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.91, allocations: 3.625 MB / 0.5865 GB, free: 134.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.9112, allocations: 0.998 MB / 0.5875 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002046/0.9133, allocations: 1.573 MB / 0.589 GB, free: 133.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.975e-05/0.9133, allocations: 305.1 kB / 0.5893 GB, free: 132.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004572/0.9179, allocations: 4.283 MB / 0.5935 GB, free: 131.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005827/0.9237, allocations: 8.171 MB / 0.6015 GB, free: 121.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.9351, allocations: 13.32 MB / 0.6145 GB, free: 106.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-05/0.9352, allocations: 40 kB / 0.6145 GB, free: 106.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.02182/0.957, allocations: 14.65 MB / 0.6288 GB, free: 91.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.9571, allocations: 64.97 kB / 0.6289 GB, free: 91.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.9572, allocations: 139.9 kB / 0.629 GB, free: 91.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00623/0.9635, allocations: 2.509 MB / 0.6315 GB, free: 89.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006076/0.9695, allocations: 1.754 MB / 0.6332 GB, free: 87.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01724/0.9868, allocations: 17.22 MB / 0.65 GB, free: 69.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006805/0.9936, allocations: 475.3 kB / 0.6504 GB, free: 69.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/0.9951, allocations: 0.4919 MB / 0.6509 GB, free: 68.71 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.004239/0.9993, allocations: 2.391 MB / 0.6533 GB, free: 66.32 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/1.001, allocations: 421.2 kB / 0.6537 GB, free: 65.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/1.015, allocations: 9.638 MB / 0.6631 GB, free: 56.24 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-05/1.015, allocations: 24 kB / 0.6631 GB, free: 56.21 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.015, allocations: 12 kB / 0.6631 GB, free: 56.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.372e-05/1.015, allocations: 11.95 kB / 0.6631 GB, free: 56.19 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02555/1.04, allocations: 18.19 MB / 0.6809 GB, free: 37.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.04, allocations: 0.5625 kB / 0.6809 GB, free: 37.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002851/1.043, allocations: 0.585 MB / 0.6815 GB, free: 37.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005722/1.049, allocations: 2.287 MB / 0.6837 GB, free: 35.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004368/1.049, allocations: 123.8 kB / 0.6838 GB, free: 34.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/1.065, allocations: 15.68 MB / 0.6991 GB, free: 18.87 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.065, allocations: 4 kB / 0.6991 GB, free: 18.87 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/1.084, allocations: 15.18 MB / 0.7139 GB, free: 3.609 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002931/1.087, allocations: 1.08 MB / 0.715 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/1.088, allocations: 36 kB / 0.715 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003654/1.092, allocations: 231.6 kB / 0.7153 GB, free: 2.246 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/1.093, allocations: 241.6 kB / 0.7155 GB, free: 2.008 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004438/1.094, allocations: 151.7 kB / 0.7156 GB, free: 1.859 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00422/1.098, allocations: 2.825 MB / 0.7184 GB, free: 15.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.098, allocations: 0 / 0.7184 GB, free: 15.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007321/1.105, allocations: 1.418 MB / 0.7198 GB, free: 13.61 MB / 494.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.02628/1.131, allocations: 15.85 MB / 0.7353 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.1916/1.323, allocations: 10.14 MB / 0.7452 GB, free: 169.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.323, allocations: 0 / 0.7452 GB, free: 169.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.007325/1.33, allocations: 4.398 MB / 0.7494 GB, free: 168.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005052/1.335, allocations: 0.5146 MB / 0.75 GB, free: 168.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09437/1.43, allocations: 70.13 MB / 0.8184 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004384/1.434, allocations: 3.755 MB / 0.8221 GB, free: 104 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005064/1.439, allocations: 2.399 MB / 0.8244 GB, free: 101.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004227/1.443, allocations: 2.522 MB / 0.8269 GB, free: 99.06 MB / 0.4981 GB Notification: Performance of SimCode: time 1.703e-06/1.443, allocations: 0 / 0.8269 GB, free: 99.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3432/1.787, allocations: 116.6 MB / 0.9408 GB, free: 174 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/20.93, allocations: 10.22 kB / 0.9408 GB, free: 174 MB / 0.5137 GB " [Timeout remaining time 639] (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: 23.258162457030267] 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.118987564987037 21.129621907 20.798918957 Calling exit ...