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.001283/0.001283, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001475/0.001475, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.381/1.381, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.001488/0.001488, allocations: 43.92 kB / 378.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2153, allocations: 53.37 MB / 431.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01512/0.2304, allocations: 13.28 MB / 445.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.2404, allocations: 4.712 MB / 449.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.2427, allocations: 99.5 kB / 450 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007574/0.2503, allocations: 4.131 MB / 454.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005626/0.2559, allocations: 2.097 MB / 456.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.2579, allocations: 0.8422 MB / 457.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007239/0.2652, allocations: 4.775 MB / 461.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005467/0.2707, allocations: 3.93 MB / 465.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004036/0.2747, allocations: 1.971 MB / 467.8 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005022/0.2797, allocations: 2.874 MB / 470.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001301/0.281, allocations: 456 kB / 471.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002734/0.2837, allocations: 1.346 MB / 472.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002685/0.2864, allocations: 2.365 MB / 474.8 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003756/0.2902, allocations: 2.774 MB / 477.6 MB, free: 8.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.3011, allocations: 8.9 MB / 486.5 MB, free: 16 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3011, allocations: 0 / 486.5 MB, free: 16 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3011, allocations: 0 / 486.5 MB, free: 16 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001931/0.3013, allocations: 0 / 486.5 MB, free: 16 kB / 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.03051/0.3318, allocations: 7.173 MB / 493.6 MB, free: 8.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3318, allocations: 16.03 kB / 493.7 MB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001376/0.332, allocations: 128.1 kB / 493.8 MB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001344/0.3333, allocations: 0.8389 MB / 494.6 MB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08894/0.4223, allocations: 7.191 MB / 0.4901 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008596/0.4308, allocations: 3.409 MB / 0.4934 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002931/0.4311, allocations: 299.8 kB / 0.4937 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.4325, allocations: 407.8 kB / 0.4941 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02639/0.4589, allocations: 13.26 MB / 0.507 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.459, allocations: 47.62 kB / 0.5071 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000606/0.4596, allocations: 191.8 kB / 0.5072 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004449/0.4641, allocations: 2.186 MB / 0.5094 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02671/0.4908, allocations: 12.68 MB / 0.5218 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2291/0.7199, allocations: 48.99 MB / 0.5696 GB, free: 66.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02193/0.7418, allocations: 5.788 MB / 0.5752 GB, free: 64.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003562/0.7454, allocations: 3.695 MB / 0.5789 GB, free: 62.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007203/0.7461, allocations: 192.4 kB / 0.579 GB, free: 62.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.7461, allocations: 62.3 kB / 0.5791 GB, free: 62.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 4.338e-06/0.7461, allocations: 0 / 0.5791 GB, free: 62.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.08524/0.8314, allocations: 35.97 MB / 0.6142 GB, free: 27.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.8314, allocations: 213.8 kB / 0.6144 GB, free: 27.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.8359, allocations: 4.449 MB / 0.6188 GB, free: 23.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005216/0.8364, allocations: 61.7 kB / 0.6188 GB, free: 23.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001343/0.8378, allocations: 3.606 MB / 0.6224 GB, free: 19.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008455/0.8386, allocations: 0.985 MB / 0.6233 GB, free: 18.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.8404, allocations: 1.564 MB / 0.6248 GB, free: 17.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.232e-05/0.8404, allocations: 313.1 kB / 0.6251 GB, free: 16.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004209/0.8446, allocations: 4.269 MB / 0.6293 GB, free: 12.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005572/0.8502, allocations: 8.159 MB / 0.6373 GB, free: 2.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01704/0.8672, allocations: 13.29 MB / 0.6503 GB, free: 3.375 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/0.8674, allocations: 36 kB / 0.6503 GB, free: 3.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02842/0.8958, allocations: 14.63 MB / 0.6646 GB, free: 4.695 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.8959, allocations: 65 kB / 0.6646 GB, free: 4.633 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002198/0.8961, allocations: 136 kB / 0.6648 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00723/0.9034, allocations: 2.498 MB / 0.6672 GB, free: 1.992 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006558/0.9099, allocations: 1.762 MB / 0.6689 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02399/0.9339, allocations: 16.91 MB / 0.6854 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006117/0.94, allocations: 467.4 kB / 0.6859 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001309/0.9413, allocations: 0.4919 MB / 0.6864 GB, free: 14.04 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.004635/0.946, allocations: 2.372 MB / 0.6887 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/0.9473, allocations: 424.9 kB / 0.6891 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01815/0.9654, allocations: 9.614 MB / 0.6985 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.686e-05/0.9655, allocations: 28 kB / 0.6985 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.869e-05/0.9655, allocations: 8 kB / 0.6985 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.703e-05/0.9655, allocations: 11.95 kB / 0.6985 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03389/0.9994, allocations: 18.11 MB / 0.7162 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/0.9994, allocations: 3.984 kB / 0.7162 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/1.003, allocations: 0.5811 MB / 0.7168 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006784/1.009, allocations: 2.271 MB / 0.719 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000472/1.01, allocations: 139.6 kB / 0.7191 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02166/1.032, allocations: 15.36 MB / 0.7341 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.032, allocations: 4 kB / 0.7341 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2156/1.247, allocations: 15.12 MB / 0.7489 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.248, allocations: 407.7 kB / 0.7493 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.249, allocations: 43.31 kB / 0.7493 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.252, allocations: 218.1 kB / 0.7495 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000845/1.253, allocations: 245.8 kB / 0.7498 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003741/1.254, allocations: 147.4 kB / 0.7499 GB, free: 190.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003959/1.258, allocations: 2.812 MB / 0.7527 GB, free: 190.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.258, allocations: 2.344 kB / 0.7527 GB, free: 190.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005895/1.263, allocations: 1.398 MB / 0.754 GB, free: 190.6 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.01848/1.282, allocations: 15.81 MB / 0.7695 GB, free: 185.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01207/1.294, allocations: 10.12 MB / 0.7794 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/1.294, allocations: 4 kB / 0.7794 GB, free: 178.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005114/1.299, allocations: 4.39 MB / 0.7836 GB, free: 174.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.302, allocations: 0.4983 MB / 0.7841 GB, free: 174.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07542/1.377, allocations: 69.97 MB / 0.8525 GB, free: 99.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/1.38, allocations: 3.739 MB / 0.8561 GB, free: 95.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004592/1.385, allocations: 2.383 MB / 0.8584 GB, free: 93.21 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003153/1.388, allocations: 2.514 MB / 0.8609 GB, free: 90.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/1.388, allocations: 0 / 0.8609 GB, free: 90.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.394/1.782, allocations: 122.2 MB / 0.9802 GB, free: 173.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.73/22.51, allocations: 11.98 kB / 0.9802 GB, free: 173.5 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.921140623977408] 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.72571222600527 22.73410874 22.430783123 Calling exit ...