Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 108 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 211.8 kB / 19.4 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1946/0.1946, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 83.86 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2907, allocations: 62.43 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01336/0.3041, allocations: 13.5 MB / 0.5448 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00876/0.3129, allocations: 4.559 MB / 0.5493 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002112/0.3151, allocations: 89.94 kB / 0.5494 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006745/0.3219, allocations: 4.175 MB / 0.5535 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004951/0.3269, allocations: 2.187 MB / 0.5556 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.3287, allocations: 0.936 MB / 0.5565 GB, free: 8.242 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007106/0.3358, allocations: 6.12 MB / 0.5625 GB, free: 2.109 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004999/0.3409, allocations: 5.202 MB / 0.5676 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002929/0.3438, allocations: 2.119 MB / 0.5696 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.347, allocations: 2.8 MB / 0.5724 GB, free: 7.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007539/0.3477, allocations: 472 kB / 0.5728 GB, free: 7.449 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.35, allocations: 1.346 MB / 0.5741 GB, free: 6.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002011/0.352, allocations: 2.513 MB / 0.5766 GB, free: 3.582 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002453/0.3544, allocations: 2.832 MB / 0.5793 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007767/0.3622, allocations: 9.029 MB / 0.5882 GB, free: 7.676 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3623, allocations: 4 kB / 0.5882 GB, free: 7.672 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3623, allocations: 0 / 0.5882 GB, free: 7.672 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001706/0.3624, allocations: 0 / 0.5882 GB, free: 7.672 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01208/0.3745, allocations: 6.083 MB / 0.5941 GB, free: 1.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3746, allocations: 8.031 kB / 0.5941 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00999/0.3846, allocations: 2.575 MB / 0.5966 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007404/0.392, allocations: 3.805 MB / 0.6003 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.3922, allocations: 304.1 kB / 0.6006 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/0.3934, allocations: 431.8 kB / 0.6011 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/0.4109, allocations: 11.55 MB / 0.6123 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001496/0.4111, allocations: 51.59 kB / 0.6124 GB, free: 13.99 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006991/0.4118, allocations: 183.9 kB / 0.6126 GB, free: 13.81 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002921/0.4147, allocations: 2.03 MB / 0.6145 GB, free: 11.78 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.4313, allocations: 9.936 MB / 0.6242 GB, free: 1.824 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04965/0.481, allocations: 45.35 MB / 0.6685 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009916/0.491, allocations: 4.365 MB / 0.6728 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00297/0.494, allocations: 2.463 MB / 0.6752 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01389/0.5079, allocations: 9.855 MB / 0.6848 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.508, allocations: 55.55 kB / 0.6849 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 4.138e-06/0.508, allocations: 0 / 0.6849 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.04867/0.5567, allocations: 19.91 MB / 0.7043 GB, free: 14 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.849e-05/0.5568, allocations: 201.2 kB / 0.7045 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007027/0.5638, allocations: 4.689 MB / 0.7091 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004453/0.5643, allocations: 57.62 kB / 0.7091 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002926/0.5673, allocations: 3.56 MB / 0.7126 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001262/0.5685, allocations: 0.7598 MB / 0.7134 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002591/0.5711, allocations: 1.333 MB / 0.7147 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.179e-05/0.5713, allocations: 313.1 kB / 0.715 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/0.5747, allocations: 2.406 MB / 0.7173 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2231/0.7978, allocations: 6.247 MB / 0.7234 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008171/0.806, allocations: 9.284 MB / 0.7325 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/0.8061, allocations: 40.44 kB / 0.7325 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01426/0.8204, allocations: 9.775 MB / 0.7421 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.244e-05/0.8205, allocations: 61.03 kB / 0.7421 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/0.8207, allocations: 136.3 kB / 0.7422 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003626/0.8243, allocations: 1.608 MB / 0.7438 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/0.8281, allocations: 1.487 MB / 0.7453 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009296/0.8374, allocations: 10.26 MB / 0.7553 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/0.8415, allocations: 357 kB / 0.7556 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005259/0.842, allocations: 391.7 kB / 0.756 GB, free: 137.9 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 (793): * Single equations (assignments): 788 * 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 {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002747/0.8448, allocations: 2.459 MB / 0.7584 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005758/0.8454, allocations: 406.9 kB / 0.7588 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00609/0.8515, allocations: 4.231 MB / 0.7629 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/0.8515, allocations: 24 kB / 0.7629 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.8515, allocations: 4 kB / 0.763 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.8515, allocations: 11.97 kB / 0.763 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.8647, allocations: 9.675 MB / 0.7724 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.8647, allocations: 0 / 0.7724 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.8659, allocations: 299.5 kB / 0.7727 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003286/0.8692, allocations: 1.358 MB / 0.774 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.8694, allocations: 32 kB / 0.7741 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008336/0.8777, allocations: 9.394 MB / 0.7832 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.8778, allocations: 7.047 kB / 0.7832 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008369/0.8862, allocations: 6.963 MB / 0.79 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.8872, allocations: 451.7 kB / 0.7905 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004313/0.8876, allocations: 32 kB / 0.7905 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.889, allocations: 123.8 kB / 0.7906 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.8893, allocations: 125 kB / 0.7907 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.8894, allocations: 48 kB / 0.7908 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003142/0.8926, allocations: 2.96 MB / 0.7937 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8926, allocations: 1.969 kB / 0.7937 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004602/0.8972, allocations: 1.181 MB / 0.7948 GB, free: 98.38 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.0003684/0.8976, allocations: 173.5 kB / 0.795 GB, free: 98.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007046/0.9047, allocations: 5.968 MB / 0.8008 GB, free: 92.24 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.9047, allocations: 0 / 0.8008 GB, free: 92.24 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.907, allocations: 2.011 MB / 0.8028 GB, free: 90.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.9094, allocations: 0.5363 MB / 0.8033 GB, free: 89.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.9237, allocations: 11.53 MB / 0.8146 GB, free: 78.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003035/0.9268, allocations: 3.792 MB / 0.8183 GB, free: 74.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000992/0.9278, allocations: 315.4 kB / 0.8186 GB, free: 73.98 MB / 0.5606 GB Notification: Performance of SimCode: time 2.194e-06/0.9278, allocations: 4 kB / 0.8186 GB, free: 73.98 MB / 0.5606 GB Notification: Performance of Templates: time 0.1087/1.037, allocations: 112.4 MB / 0.9284 GB, free: 9.555 MB / 0.6075 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches