Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 197.4 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3962/0.3962, allocations: 39.93 MB / 309.4 MB, free: 9.324 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 75.89 kB / 377.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1499, allocations: 56.88 MB / 434 MB, free: 4.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.3472/0.4972, allocations: 87.41 MB / 0.5092 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05445/0.5517, allocations: 17.04 MB / 0.5258 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03033/0.5822, allocations: 389 kB / 0.5262 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01317/0.5954, allocations: 5.109 MB / 0.5312 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01198/0.6074, allocations: 2.508 MB / 0.5336 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004254/0.6117, allocations: 1.125 MB / 0.5347 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01729/0.6291, allocations: 8.143 MB / 0.5427 GB, free: 9.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01683/0.646, allocations: 7.343 MB / 0.5499 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009411/0.6554, allocations: 2.862 MB / 0.5527 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008632/0.6641, allocations: 4.14 MB / 0.5567 GB, free: 11.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002988/0.6672, allocations: 0.6094 MB / 0.5573 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005263/0.6725, allocations: 1.502 MB / 0.5588 GB, free: 8.992 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006737/0.6792, allocations: 3.39 MB / 0.5621 GB, free: 5.594 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01042/0.6897, allocations: 3.792 MB / 0.5658 GB, free: 1.781 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02184/0.7116, allocations: 11.43 MB / 0.5769 GB, free: 6.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.216e-05/0.7117, allocations: 0 / 0.5769 GB, free: 6.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.7117, allocations: 0 / 0.5769 GB, free: 6.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007795/0.7125, allocations: 0 / 0.5769 GB, free: 6.312 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2235 * Number of variables: 2235 Notification: Performance of Generate backend data structure: time 0.02554/0.738, allocations: 8.167 MB / 0.5849 GB, free: 14.06 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.7381, allocations: 15.89 kB / 0.5849 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03493/0.773, allocations: 4.146 MB / 0.589 GB, free: 9.883 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01431/0.7874, allocations: 5.138 MB / 0.594 GB, free: 4.668 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000482/0.7879, allocations: 386.3 kB / 0.5944 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003151/0.7911, allocations: 0.5389 MB / 0.5949 GB, free: 3.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03563/0.8267, allocations: 15.84 MB / 0.6104 GB, free: 2.996 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002449/0.827, allocations: 67.36 kB / 0.6104 GB, free: 2.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001244/0.8283, allocations: 243.8 kB / 0.6107 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005531/0.8338, allocations: 2.911 MB / 0.6135 GB, free: 15.78 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0312/0.865, allocations: 14.28 MB / 0.6274 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3832/1.248, allocations: 62.97 MB / 0.6889 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/1.269, allocations: 7.286 MB / 0.696 GB, free: 99.47 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009428/1.278, allocations: 5.557 MB / 0.7015 GB, free: 97.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03129/1.31, allocations: 18.36 MB / 0.7194 GB, free: 87 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/1.31, allocations: 75.14 kB / 0.7195 GB, free: 86.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=310): time 7.825e-06/1.31, allocations: 0 / 0.7195 GB, free: 86.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=394): time 0.1482/1.458, allocations: 60.4 MB / 0.7785 GB, free: 27.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/1.458, allocations: 329.4 kB / 0.7788 GB, free: 27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008642/1.467, allocations: 5.892 MB / 0.7845 GB, free: 21.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001439/1.468, allocations: 85.7 kB / 0.7846 GB, free: 21.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002358/1.471, allocations: 4.342 MB / 0.7888 GB, free: 16.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002591/1.473, allocations: 1.434 MB / 0.7902 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003743/1.477, allocations: 1.828 MB / 0.792 GB, free: 13.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/1.477, allocations: 309.1 kB / 0.7923 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00637/1.484, allocations: 5.186 MB / 0.7974 GB, free: 7.836 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/1.495, allocations: 9.623 MB / 0.8068 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2502/1.745, allocations: 15.74 MB / 0.8222 GB, free: 141 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/1.745, allocations: 45.78 kB / 0.8222 GB, free: 141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03422/1.779, allocations: 19.6 MB / 0.8413 GB, free: 136.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.673e-05/1.779, allocations: 71.19 kB / 0.8414 GB, free: 136.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001694/1.78, allocations: 151.8 kB / 0.8415 GB, free: 136.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01557/1.795, allocations: 5.459 MB / 0.8469 GB, free: 135.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009221/1.804, allocations: 2.079 MB / 0.8489 GB, free: 135 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03785/1.842, allocations: 29.2 MB / 0.8774 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01065/1.853, allocations: 0.6264 MB / 0.878 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002208/1.855, allocations: 0.4997 MB / 0.8785 GB, free: 121.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 690 * Number of states: 0 () * Number of discrete variables: 57 (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 (1048): * Single equations (assignments): 1042 * 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,44.4%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00706/1.862, allocations: 3.166 MB / 0.8816 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.864, allocations: 0.5384 MB / 0.8821 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02545/1.889, allocations: 13.98 MB / 0.8958 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.391e-05/1.889, allocations: 40 kB / 0.8958 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6e-05/1.889, allocations: 23 kB / 0.8959 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001218/1.89, allocations: 19.92 kB / 0.8959 GB, free: 109.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0478/1.937, allocations: 24.23 MB / 0.9195 GB, free: 85.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.957e-05/1.937, allocations: 0 / 0.9195 GB, free: 85.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004178/1.942, allocations: 0.6786 MB / 0.9202 GB, free: 84.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01379/1.955, allocations: 5.23 MB / 0.9253 GB, free: 79.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001948/1.957, allocations: 74.83 kB / 0.9254 GB, free: 79.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03312/1.991, allocations: 28.49 MB / 0.9532 GB, free: 50.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.991, allocations: 3.938 kB / 0.9532 GB, free: 50.76 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03244/2.023, allocations: 20.68 MB / 0.9734 GB, free: 30 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005845/2.029, allocations: 1.486 MB / 0.9748 GB, free: 28.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003524/2.033, allocations: 64 kB / 0.9749 GB, free: 28.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006208/2.039, allocations: 375.4 kB / 0.9753 GB, free: 28.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002103/2.041, allocations: 250.8 kB / 0.9755 GB, free: 27.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005882/2.042, allocations: 99.98 kB / 0.9756 GB, free: 27.72 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006188/2.048, allocations: 3.773 MB / 0.9793 GB, free: 23.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/2.048, allocations: 8 kB / 0.9793 GB, free: 23.97 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01084/2.059, allocations: 2.007 MB / 0.9813 GB, free: 21.97 MB / 0.4981 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 (305): * Single equations (assignments): 299 * 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.9%), (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.001305/2.06, allocations: 209.5 kB / 0.9815 GB, free: 21.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.03523/2.095, allocations: 20.95 MB / 1.002 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/2.095, allocations: 9.969 kB / 1.002 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.2455/2.341, allocations: 6.46 MB / 1.008 GB, free: 158.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00679/2.348, allocations: 0.7448 MB / 1.009 GB, free: 158.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03114/2.379, allocations: 21.38 MB / 1.03 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00581/2.385, allocations: 4.952 MB / 1.035 GB, free: 149.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008325/2.393, allocations: 2.891 MB / 1.037 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00265/2.396, allocations: 399.1 kB / 1.038 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.493e-06/2.396, allocations: 0 / 1.038 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1494/2.545, allocations: 97.22 MB / 1.133 GB, free: 75.9 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1)