Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2362/0.2362, allocations: 46.11 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Warning: Requested package Modelica 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.002287/0.002287, allocations: 82.83 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1365, allocations: 62.45 MB / 480.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.02097/0.1575, allocations: 16.67 MB / 496.9 MB, free: 4.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01371/0.1713, allocations: 5.353 MB / 0.4905 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003122/0.1744, allocations: 123.6 kB / 0.4906 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.185, allocations: 5.253 MB / 0.4957 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007708/0.1927, allocations: 2.54 MB / 0.4982 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.1968, allocations: 1.217 MB / 0.4994 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.266/0.4628, allocations: 8.23 MB / 0.5074 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009766/0.4727, allocations: 6.927 MB / 0.5142 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006644/0.4794, allocations: 2.7 MB / 0.5168 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007761/0.4872, allocations: 3.583 MB / 0.5203 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003083/0.4903, allocations: 0.5857 MB / 0.5209 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005175/0.4955, allocations: 1.463 MB / 0.5223 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004874/0.5004, allocations: 3.174 MB / 0.5254 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007388/0.5078, allocations: 3.787 MB / 0.5291 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.5239, allocations: 11.36 MB / 0.5402 GB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.294e-05/0.524, allocations: 0 / 0.5402 GB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.524, allocations: 0 / 0.5402 GB, free: 2.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006132/0.5246, allocations: 0 / 0.5402 GB, free: 2.438 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: 2120 * Number of variables: 2120 Notification: Performance of Generate backend data structure: time 0.0335/0.5581, allocations: 8.303 MB / 0.5483 GB, free: 12.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.5582, allocations: 12.03 kB / 0.5483 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003913/0.5621, allocations: 1.012 MB / 0.5493 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2588/0.821, allocations: 17.93 MB / 0.5668 GB, free: 9.352 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01924/0.8403, allocations: 5.904 MB / 0.5726 GB, free: 3.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004758/0.8408, allocations: 381 kB / 0.573 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003107/0.8439, allocations: 0.5244 MB / 0.5735 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03729/0.8812, allocations: 15.15 MB / 0.5883 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004282/0.8817, allocations: 65.67 kB / 0.5883 GB, free: 2.973 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002515/0.8843, allocations: 230.2 kB / 0.5885 GB, free: 2.789 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005954/0.8902, allocations: 2.73 MB / 0.5912 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03318/0.9234, allocations: 13.68 MB / 0.6046 GB, free: 2.625 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1/1.023, allocations: 60.95 MB / 0.6641 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/1.043, allocations: 7.052 MB / 0.671 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008197/1.051, allocations: 5.388 MB / 0.6762 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03447/1.086, allocations: 17.74 MB / 0.6936 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.106e-05/1.086, allocations: 71.28 kB / 0.6936 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 6.653e-06/1.086, allocations: 0 / 0.6936 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of matching and sorting (n=383): time 0.4224/1.508, allocations: 60.19 MB / 0.7524 GB, free: 179.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/1.508, allocations: 325.6 kB / 0.7527 GB, free: 179.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00915/1.518, allocations: 5.848 MB / 0.7584 GB, free: 177 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001432/1.519, allocations: 81.48 kB / 0.7585 GB, free: 177 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002206/1.521, allocations: 4.259 MB / 0.7627 GB, free: 173.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002262/1.524, allocations: 1.397 MB / 0.764 GB, free: 172.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003144/1.527, allocations: 1.682 MB / 0.7657 GB, free: 171.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.646e-05/1.527, allocations: 309.1 kB / 0.766 GB, free: 170.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006325/1.533, allocations: 5.056 MB / 0.7709 GB, free: 165.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008551/1.542, allocations: 9.348 MB / 0.78 GB, free: 154.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/1.558, allocations: 15.42 MB / 0.7951 GB, free: 136.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.558, allocations: 40 kB / 0.7951 GB, free: 136.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1063) (initialization): time 0.03577/1.594, allocations: 19.15 MB / 0.8138 GB, free: 117.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.103e-05/1.594, allocations: 68 kB / 0.8139 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/1.594, allocations: 148 kB / 0.814 GB, free: 117.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01474/1.609, allocations: 5.554 MB / 0.8195 GB, free: 111.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00709/1.616, allocations: 1.93 MB / 0.8214 GB, free: 109.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03312/1.649, allocations: 29.38 MB / 0.85 GB, free: 80.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008619/1.658, allocations: 0.6055 MB / 0.8506 GB, free: 79.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001832/1.659, allocations: 485.5 kB / 0.8511 GB, free: 79.08 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 670 * Number of states: 0 () * Number of discrete variables: 59 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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],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],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 (960): * Single equations (assignments): 954 * 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 {(2,16,100.0%), (14,41,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005442/1.665, allocations: 3.051 MB / 0.8541 GB, free: 76.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.666, allocations: 0.5361 MB / 0.8546 GB, free: 75.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02335/1.69, allocations: 14.09 MB / 0.8684 GB, free: 61.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.021e-05/1.69, allocations: 40 kB / 0.8684 GB, free: 61.28 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-05/1.69, allocations: 16 kB / 0.8684 GB, free: 61.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.46e-05/1.69, allocations: 15.94 kB / 0.8684 GB, free: 61.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04105/1.731, allocations: 24.53 MB / 0.8924 GB, free: 36.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-05/1.731, allocations: 0 / 0.8924 GB, free: 36.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003637/1.735, allocations: 0.6474 MB / 0.893 GB, free: 36.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01383/1.749, allocations: 5.335 MB / 0.8982 GB, free: 30.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/1.75, allocations: 67.98 kB / 0.8983 GB, free: 30.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3079/2.057, allocations: 28.68 MB / 0.9263 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/2.058, allocations: 1.75 kB / 0.9263 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04151/2.099, allocations: 20.86 MB / 0.9467 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/2.101, allocations: 0.6148 MB / 0.9473 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002681/2.104, allocations: 62 kB / 0.9473 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005863/2.11, allocations: 357.5 kB / 0.9477 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001853/2.112, allocations: 240.8 kB / 0.9479 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004692/2.112, allocations: 107.7 kB / 0.948 GB, free: 163.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006411/2.119, allocations: 3.772 MB / 0.9517 GB, free: 162.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.71e-07/2.119, allocations: 0 / 0.9517 GB, free: 162.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01268/2.131, allocations: 1.909 MB / 0.9536 GB, free: 162.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.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 (293): * Single equations (assignments): 287 * 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%), (14,41,43.4%), (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.03381/2.165, allocations: 21.57 MB / 0.9746 GB, free: 148.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03105/2.196, allocations: 20.44 MB / 0.9946 GB, free: 128.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/2.196, allocations: 0 / 0.9946 GB, free: 128.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01062/2.207, allocations: 6.528 MB / 1.001 GB, free: 122 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006245/2.213, allocations: 0.7753 MB / 1.002 GB, free: 121.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1491/2.362, allocations: 106.4 MB / 1.106 GB, free: 4.391 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008718/2.371, allocations: 4.78 MB / 1.11 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008754/2.38, allocations: 2.878 MB / 1.113 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006974/2.387, allocations: 3.069 MB / 1.116 GB, free: 9.613 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/2.387, allocations: 0 / 1.116 GB, free: 9.613 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4361/2.823, allocations: 154.2 MB / 1.267 GB, free: 81.27 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/16.42, allocations: 15.62 kB / 1.267 GB, free: 81.25 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1)