Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 217.3 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 230.2 MB / 256.1 MB, free: 8.75 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1976/0.1976, allocations: 46.88 MB / 359.3 MB, free: 4.961 MB / 286.1 MB " [Timeout remaining time 180] 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.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.00223/0.00223, allocations: 83.84 kB / 0.494 GB, free: 9.074 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2622, allocations: 65.98 MB / 0.5584 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01482/0.277, allocations: 13.58 MB / 0.5717 GB, free: 7.555 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008128/0.2851, allocations: 4.587 MB / 0.5762 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.2866, allocations: 91.69 kB / 0.5763 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007199/0.2938, allocations: 4.244 MB / 0.5804 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0045/0.2983, allocations: 2.198 MB / 0.5825 GB, free: 12.4 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.3, allocations: 0.9204 MB / 0.5834 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007178/0.3072, allocations: 6.116 MB / 0.5894 GB, free: 5.348 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004583/0.3118, allocations: 3.747 MB / 0.5931 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003489/0.3153, allocations: 2.13 MB / 0.5952 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00457/0.3198, allocations: 3.018 MB / 0.5981 GB, free: 12.37 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.321, allocations: 472 kB / 0.5986 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.3235, allocations: 1.369 MB / 0.5999 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002742/0.3263, allocations: 2.579 MB / 0.6024 GB, free: 7.953 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003818/0.3301, allocations: 2.902 MB / 0.6052 GB, free: 5.035 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.341, allocations: 9.192 MB / 0.6142 GB, free: 11.8 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.341, allocations: 0 / 0.6142 GB, free: 11.8 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.341, allocations: 0 / 0.6142 GB, free: 11.8 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.3413, allocations: 0 / 0.6142 GB, free: 11.8 MB / 462.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.01467/0.3559, allocations: 6.418 MB / 0.6205 GB, free: 5.305 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.356, allocations: 8.031 kB / 0.6205 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001648/0.3576, allocations: 0.8345 MB / 0.6213 GB, free: 4.453 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03708/0.3947, allocations: 6.098 MB / 0.6273 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0085/0.4032, allocations: 4.221 MB / 0.6314 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.4034, allocations: 304.1 kB / 0.6317 GB, free: 9.773 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008462/0.4043, allocations: 427.7 kB / 0.6321 GB, free: 9.355 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.4217, allocations: 11.42 MB / 0.6432 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.4218, allocations: 63.52 kB / 0.6433 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004477/0.4223, allocations: 183.9 kB / 0.6435 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003191/0.4255, allocations: 2.026 MB / 0.6455 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.4418, allocations: 9.674 MB / 0.6549 GB, free: 1.219 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05078/0.4926, allocations: 44.86 MB / 0.6987 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.5029, allocations: 4.096 MB / 0.7027 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002917/0.5058, allocations: 2.17 MB / 0.7048 GB, free: 12.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.5194, allocations: 9.444 MB / 0.714 GB, free: 2.973 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.5195, allocations: 63.42 kB / 0.7141 GB, free: 2.902 MB / 0.545 GB Notification: Performance of pre-optimization done (n=171): time 4.097e-06/0.5195, allocations: 0 / 0.7141 GB, free: 2.902 MB / 0.545 GB Notification: Performance of matching and sorting (n=197): time 0.04706/0.5665, allocations: 18.43 MB / 0.7321 GB, free: 400 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.5667, allocations: 209.2 kB / 0.7323 GB, free: 144 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1994/0.7661, allocations: 4.711 MB / 0.7369 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.7664, allocations: 53.61 kB / 0.737 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.7677, allocations: 3.732 MB / 0.7406 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000462/0.7682, allocations: 0.7952 MB / 0.7414 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/0.7693, allocations: 1.263 MB / 0.7426 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.425e-05/0.7694, allocations: 308.9 kB / 0.7429 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.7716, allocations: 2.178 MB / 0.745 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003084/0.7747, allocations: 6.009 MB / 0.7509 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005761/0.7805, allocations: 8.901 MB / 0.7596 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.831e-05/0.7805, allocations: 36.5 kB / 0.7596 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.009901/0.7904, allocations: 8.762 MB / 0.7682 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.7904, allocations: 60 kB / 0.7682 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.316e-05/0.7905, allocations: 136.9 kB / 0.7684 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002359/0.7929, allocations: 1.073 MB / 0.7694 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/0.796, allocations: 1.427 MB / 0.7708 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007198/0.8032, allocations: 8.841 MB / 0.7795 GB, free: 119 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/0.8065, allocations: 347.8 kB / 0.7798 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/0.8068, allocations: 379.9 kB / 0.7801 GB, free: 118.3 MB / 0.5606 GB 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.002273/0.8091, allocations: 2.458 MB / 0.7825 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004236/0.8095, allocations: 433.1 kB / 0.783 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/0.8143, allocations: 3.484 MB / 0.7864 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.8143, allocations: 25.08 kB / 0.7864 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.8143, allocations: 8 kB / 0.7864 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.8143, allocations: 11.97 kB / 0.7864 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.8246, allocations: 8.926 MB / 0.7951 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.8246, allocations: 8.031 kB / 0.7951 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.8258, allocations: 299.6 kB / 0.7954 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.828, allocations: 0.8438 MB / 0.7962 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.8281, allocations: 31.98 kB / 0.7963 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006612/0.8347, allocations: 7.939 MB / 0.804 GB, free: 93.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8347, allocations: 4 kB / 0.804 GB, free: 93.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006626/0.8413, allocations: 6.068 MB / 0.81 GB, free: 87.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006036/0.8419, allocations: 478.1 kB / 0.8104 GB, free: 87.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003435/0.8423, allocations: 32 kB / 0.8104 GB, free: 86.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.8436, allocations: 95.88 kB / 0.8105 GB, free: 86.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/0.8438, allocations: 121.1 kB / 0.8106 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.8439, allocations: 55.5 kB / 0.8107 GB, free: 86.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002833/0.8468, allocations: 2.981 MB / 0.8136 GB, free: 83.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.8468, allocations: 4 kB / 0.8136 GB, free: 83.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003712/0.8505, allocations: 1.121 MB / 0.8147 GB, free: 82.61 MB / 0.5606 GB 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.006695/0.8572, allocations: 6.708 MB / 0.8213 GB, free: 75.87 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005899/0.8631, allocations: 5.334 MB / 0.8265 GB, free: 70.53 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8631, allocations: 0 / 0.8265 GB, free: 70.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.8651, allocations: 1.758 MB / 0.8282 GB, free: 68.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.8675, allocations: 0.5782 MB / 0.8288 GB, free: 68.19 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.048/0.9155, allocations: 51.22 MB / 0.8788 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002903/0.9184, allocations: 3.819 MB / 0.8825 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00325/0.9217, allocations: 1.992 MB / 0.8844 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/0.9237, allocations: 2.327 MB / 0.8867 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of SimCode: time 6.51e-07/0.9237, allocations: 0 / 0.8867 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.172/1.096, allocations: 84.09 MB / 0.9688 GB, free: 15.07 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.31/24.41, allocations: 7.922 kB / 0.9688 GB, free: 15.07 MB / 0.6544 GB " [Timeout remaining time 635] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.16672800699598]