Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001827/0.001827, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0021/0.0021, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2562, allocations: 50.55 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01543/0.2716, allocations: 13.19 MB / 422.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.2823, allocations: 4.661 MB / 426.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.2849, allocations: 83.75 kB / 427 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008151/0.2931, allocations: 4.073 MB / 431.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006532/0.2997, allocations: 2.031 MB / 433.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.302, allocations: 0.8306 MB / 433.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008271/0.3103, allocations: 4.771 MB / 438.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006637/0.317, allocations: 5.113 MB / 443.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003313/0.3203, allocations: 1.916 MB / 445.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.3244, allocations: 2.695 MB / 448.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.3255, allocations: 452 kB / 448.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0033/0.3288, allocations: 1.311 MB / 450.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002714/0.3316, allocations: 2.315 MB / 452.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00349/0.3351, allocations: 2.774 MB / 455.3 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.3466, allocations: 8.892 MB / 464.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.3467, allocations: 0 / 464.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3467, allocations: 0 / 464.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002821/0.347, allocations: 4 kB / 464.2 MB, free: 10.01 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.03159/0.3786, allocations: 7.245 MB / 471.4 MB, free: 2.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.3787, allocations: 12.03 kB / 471.4 MB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001656/0.3804, allocations: 0.8428 MB / 472.3 MB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09343/0.4738, allocations: 7.191 MB / 479.5 MB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008389/0.4822, allocations: 3.493 MB / 483 MB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.4825, allocations: 295.8 kB / 483.2 MB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001449/0.484, allocations: 411.8 kB / 483.6 MB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02862/0.5126, allocations: 13.26 MB / 496.9 MB, free: 8.363 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001484/0.5128, allocations: 47.58 kB / 496.9 MB, free: 8.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006236/0.5135, allocations: 187.9 kB / 497.1 MB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004543/0.518, allocations: 2.194 MB / 499.3 MB, free: 5.934 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02824/0.5463, allocations: 12.68 MB / 0.5 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2719/0.8182, allocations: 49.14 MB / 0.548 GB, free: 94.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02234/0.8406, allocations: 6.419 MB / 0.5543 GB, free: 93.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00381/0.8445, allocations: 3.917 MB / 0.5581 GB, free: 92.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007681/0.8452, allocations: 419.6 kB / 0.5585 GB, free: 92.64 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.8453, allocations: 57.06 kB / 0.5585 GB, free: 92.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=214): time 4.558e-06/0.8453, allocations: 3.656 kB / 0.5585 GB, free: 92.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=252): time 0.09135/0.9367, allocations: 36.35 MB / 0.594 GB, free: 63.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.9368, allocations: 213.5 kB / 0.5943 GB, free: 63 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005125/0.9419, allocations: 4.442 MB / 0.5986 GB, free: 58.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007479/0.9427, allocations: 68.02 kB / 0.5987 GB, free: 58.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.9443, allocations: 3.61 MB / 0.6022 GB, free: 55.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.9454, allocations: 0.9899 MB / 0.6031 GB, free: 54.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002062/0.9475, allocations: 1.56 MB / 0.6047 GB, free: 52.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.843e-05/0.9475, allocations: 303.6 kB / 0.605 GB, free: 52.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004649/0.9522, allocations: 4.272 MB / 0.6091 GB, free: 48.18 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006136/0.9583, allocations: 8.162 MB / 0.6171 GB, free: 38.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01191/0.9703, allocations: 13.29 MB / 0.6301 GB, free: 23.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.873e-05/0.9704, allocations: 40 kB / 0.6301 GB, free: 23.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02209/0.9925, allocations: 14.66 MB / 0.6444 GB, free: 8.449 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.457e-05/0.9926, allocations: 64 kB / 0.6445 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.9927, allocations: 132 kB / 0.6446 GB, free: 8.258 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006332/0.9991, allocations: 2.496 MB / 0.6471 GB, free: 5.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005942/1.005, allocations: 1.754 MB / 0.6488 GB, free: 3.992 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02406/1.029, allocations: 17.24 MB / 0.6656 GB, free: 2.355 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006911/1.036, allocations: 467.4 kB / 0.666 GB, free: 1.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/1.038, allocations: 499.7 kB / 0.6665 GB, free: 1.41 MB / 478.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.00529/1.043, allocations: 2.38 MB / 0.6688 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/1.044, allocations: 425.1 kB / 0.6693 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01889/1.063, allocations: 9.645 MB / 0.6787 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.375e-05/1.063, allocations: 27.38 kB / 0.6787 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-05/1.063, allocations: 12 kB / 0.6787 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-05/1.063, allocations: 11.95 kB / 0.6787 GB, free: 4.883 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03631/1.1, allocations: 18.17 MB / 0.6965 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.317e-05/1.1, allocations: 0 / 0.6965 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003495/1.103, allocations: 0.5849 MB / 0.697 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007306/1.111, allocations: 2.273 MB / 0.6993 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007679/1.111, allocations: 123.8 kB / 0.6994 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/1.134, allocations: 15.67 MB / 0.7147 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.134, allocations: 0 / 0.7147 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02648/1.161, allocations: 15.17 MB / 0.7295 GB, free: 360 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/1.162, allocations: 486.2 kB / 0.73 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/1.164, allocations: 39.44 kB / 0.73 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003573/1.167, allocations: 223.7 kB / 0.7302 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009223/1.168, allocations: 237.5 kB / 0.7304 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004415/1.169, allocations: 147.7 kB / 0.7306 GB, free: 15.22 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005104/1.174, allocations: 2.808 MB / 0.7333 GB, free: 12.41 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/1.174, allocations: 4 kB / 0.7333 GB, free: 12.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007248/1.181, allocations: 1.394 MB / 0.7347 GB, free: 11.01 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.2435/1.425, allocations: 15.83 MB / 0.7502 GB, free: 200.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01504/1.44, allocations: 10.45 MB / 0.7604 GB, free: 197.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/1.44, allocations: 0 / 0.7604 GB, free: 197.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006122/1.446, allocations: 4.634 MB / 0.7649 GB, free: 195.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003592/1.45, allocations: 0.5126 MB / 0.7654 GB, free: 195.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09234/1.542, allocations: 69.94 MB / 0.8337 GB, free: 125.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/1.546, allocations: 3.735 MB / 0.8373 GB, free: 122.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005228/1.551, allocations: 2.383 MB / 0.8397 GB, free: 119.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00426/1.556, allocations: 2.51 MB / 0.8421 GB, free: 117.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.61e-07/1.556, allocations: 3.938 kB / 0.8421 GB, free: 117.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.388/1.944, allocations: 115.5 MB / 0.9549 GB, free: 194.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.36/22.3, allocations: 2.469 kB / 0.9549 GB, free: 194.3 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)