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.GearConstraint.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.GearConstraint,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001562/0.001562, allocations: 121.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.001703/0.001703, allocations: 204.6 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.492/1.492, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002156/0.002157, allocations: 71.88 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2612, allocations: 50.54 MB / 409.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01627/0.2775, allocations: 13.44 MB / 422.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.2879, allocations: 4.552 MB / 427.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002766/0.2908, allocations: 87.75 kB / 427.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008476/0.2993, allocations: 4.194 MB / 431.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005823/0.3051, allocations: 2.127 MB / 433.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002373/0.3075, allocations: 0.9243 MB / 434.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00938/0.317, allocations: 6.126 MB / 440.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007471/0.3245, allocations: 5.196 MB / 445.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004274/0.3288, allocations: 2.13 MB / 447.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004867/0.3337, allocations: 2.792 MB / 450.6 MB, free: 7.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001643/0.3354, allocations: 468 kB / 451.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003716/0.3391, allocations: 1.338 MB / 452.4 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003817/0.343, allocations: 2.49 MB / 454.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005241/0.3483, allocations: 2.898 MB / 457.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.3615, allocations: 9.192 MB / 467 MB, free: 7.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3616, allocations: 0 / 467 MB, free: 7.316 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3616, allocations: 4 kB / 467 MB, free: 7.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003595/0.362, allocations: 0 / 467 MB, free: 7.312 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01707/0.3791, allocations: 6.425 MB / 473.4 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.3791, allocations: 8.031 kB / 473.4 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002426/0.3816, allocations: 0.8306 MB / 474.3 MB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04053/0.4221, allocations: 6.086 MB / 480.4 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009687/0.4319, allocations: 4.225 MB / 484.6 MB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003439/0.4323, allocations: 300.1 kB / 484.9 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001927/0.4342, allocations: 423.7 kB / 485.3 MB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02658/0.4608, allocations: 11.43 MB / 496.7 MB, free: 8.699 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002894/0.4612, allocations: 51.64 kB / 496.8 MB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001477/0.4627, allocations: 187.8 kB / 496.9 MB, free: 8.465 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004016/0.4667, allocations: 2.026 MB / 499 MB, free: 6.426 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02222/0.4889, allocations: 9.678 MB / 0.4967 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2722/0.7612, allocations: 44.85 MB / 0.5405 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.7714, allocations: 4.24 MB / 0.5447 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002402/0.7739, allocations: 2.348 MB / 0.547 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.7858, allocations: 9.442 MB / 0.5562 GB, free: 107.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.7859, allocations: 50.88 kB / 0.5562 GB, free: 107.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.4e-06/0.7859, allocations: 0 / 0.5562 GB, free: 107.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04802/0.834, allocations: 18.45 MB / 0.5743 GB, free: 96.12 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/0.8341, allocations: 201.2 kB / 0.5744 GB, free: 95.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008457/0.8426, allocations: 4.712 MB / 0.579 GB, free: 91.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000268/0.8429, allocations: 53.7 kB / 0.5791 GB, free: 91.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.8449, allocations: 3.733 MB / 0.5827 GB, free: 87.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007529/0.8456, allocations: 0.7926 MB / 0.5835 GB, free: 86.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/0.8475, allocations: 1.274 MB / 0.5848 GB, free: 85.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.8475, allocations: 301.1 kB / 0.585 GB, free: 85.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/0.8503, allocations: 2.182 MB / 0.5872 GB, free: 83.19 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/0.8542, allocations: 6.001 MB / 0.593 GB, free: 75.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006897/0.8611, allocations: 8.894 MB / 0.6017 GB, free: 64.73 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-05/0.8612, allocations: 40 kB / 0.6018 GB, free: 64.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01307/0.8743, allocations: 8.786 MB / 0.6103 GB, free: 55.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.8745, allocations: 63.56 kB / 0.6104 GB, free: 55.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/0.8747, allocations: 140 kB / 0.6105 GB, free: 55.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002886/0.8776, allocations: 1.07 MB / 0.6116 GB, free: 54.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004072/0.8816, allocations: 1.423 MB / 0.613 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008721/0.8904, allocations: 8.853 MB / 0.6216 GB, free: 44.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0046/0.895, allocations: 339.6 kB / 0.6219 GB, free: 43.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009913/0.8961, allocations: 383.5 kB / 0.6223 GB, free: 43.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 748 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004428/0.9005, allocations: 2.452 MB / 0.6247 GB, free: 40.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009929/0.9015, allocations: 439.3 kB / 0.6251 GB, free: 40.48 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006314/0.9078, allocations: 3.487 MB / 0.6285 GB, free: 36.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.763e-05/0.9079, allocations: 24 kB / 0.6286 GB, free: 36.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/0.9079, allocations: 11.98 kB / 0.6286 GB, free: 36.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.61e-05/0.908, allocations: 15.97 kB / 0.6286 GB, free: 36.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01719/0.9252, allocations: 8.935 MB / 0.6373 GB, free: 27.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.9252, allocations: 0 / 0.6373 GB, free: 27.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.9266, allocations: 303.5 kB / 0.6376 GB, free: 27.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/0.9291, allocations: 0.8624 MB / 0.6384 GB, free: 26.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/0.9294, allocations: 31.98 kB / 0.6385 GB, free: 26.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007634/0.9371, allocations: 7.923 MB / 0.6462 GB, free: 18.56 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.9371, allocations: 3.938 kB / 0.6462 GB, free: 18.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008047/0.9451, allocations: 6.076 MB / 0.6521 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.9463, allocations: 474.1 kB / 0.6526 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009676/0.9473, allocations: 28 kB / 0.6526 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/0.9492, allocations: 99.88 kB / 0.6527 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004282/0.9497, allocations: 121.3 kB / 0.6528 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001774/0.9499, allocations: 48 kB / 0.6529 GB, free: 11.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004523/0.9544, allocations: 2.977 MB / 0.6558 GB, free: 8.707 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.9544, allocations: 0 / 0.6558 GB, free: 8.707 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005802/0.9602, allocations: 1.129 MB / 0.6569 GB, free: 7.582 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008986/0.9693, allocations: 6.734 MB / 0.6635 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01023/0.9795, allocations: 5.539 MB / 0.6689 GB, free: 11.28 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.9796, allocations: 0 / 0.6689 GB, free: 11.28 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003706/0.9833, allocations: 1.89 MB / 0.6707 GB, free: 9.359 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005047/0.9884, allocations: 0.5633 MB / 0.6713 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09949/1.088, allocations: 51.14 MB / 0.7212 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007258/1.095, allocations: 3.827 MB / 0.7249 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005536/1.101, allocations: 1.981 MB / 0.7269 GB, free: 9.781 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004254/1.105, allocations: 2.327 MB / 0.7291 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/1.105, allocations: 0 / 0.7291 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3265/1.432, allocations: 83.03 MB / 0.8102 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.52/28.96, allocations: 5.562 kB / 0.8102 GB, free: 127.8 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)