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.001732/0.001732, allocations: 106.3 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002067/0.002067, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 46.12 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 82.33 kB / 416.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1415, allocations: 62.44 MB / 479.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3084/0.4499, allocations: 65.54 MB / 0.5321 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.032/0.482, allocations: 13.16 MB / 0.5449 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01549/0.4975, allocations: 288.4 kB / 0.5452 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008384/0.506, allocations: 4.186 MB / 0.5493 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007229/0.5132, allocations: 2.01 MB / 0.5512 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002612/0.5159, allocations: 0.8525 MB / 0.5521 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01345/0.5293, allocations: 8.794 MB / 0.5607 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007979/0.5374, allocations: 5.098 MB / 0.5656 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.5421, allocations: 1.873 MB / 0.5675 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005386/0.5475, allocations: 2.987 MB / 0.5704 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001656/0.5492, allocations: 332 kB / 0.5707 GB, free: 9.754 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.5525, allocations: 1.26 MB / 0.5719 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00307/0.5556, allocations: 2.388 MB / 0.5743 GB, free: 6.098 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004145/0.5598, allocations: 2.719 MB / 0.5769 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009311/0.5691, allocations: 8.68 MB / 0.5854 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.5691, allocations: 0 / 0.5854 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.5691, allocations: 0 / 0.5854 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003114/0.5695, allocations: 7.875 kB / 0.5854 GB, free: 10.65 MB / 430.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.01499/0.5845, allocations: 6.071 MB / 0.5913 GB, free: 4.504 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.5845, allocations: 12.81 kB / 0.5913 GB, free: 4.492 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.5961, allocations: 2.583 MB / 0.5939 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.6063, allocations: 3.73 MB / 0.5975 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.6066, allocations: 300.1 kB / 0.5978 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.6082, allocations: 431.9 kB / 0.5982 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01974/0.6279, allocations: 11.55 MB / 0.6095 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.6281, allocations: 51.5 kB / 0.6095 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004989/0.6286, allocations: 187.9 kB / 0.6097 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003189/0.6318, allocations: 2.022 MB / 0.6117 GB, free: 14.83 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01892/0.6507, allocations: 9.938 MB / 0.6214 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06319/0.714, allocations: 45.54 MB / 0.6659 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.726, allocations: 4.369 MB / 0.6701 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003784/0.7299, allocations: 2.473 MB / 0.6726 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01751/0.7474, allocations: 9.855 MB / 0.6822 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.45e-05/0.7475, allocations: 47.56 kB / 0.6822 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=171): time 5.43e-06/0.7475, allocations: 0 / 0.6822 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of matching and sorting (n=197): time 0.05761/0.8051, allocations: 19.9 MB / 0.7017 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.8053, allocations: 205.2 kB / 0.7019 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006781/0.812, allocations: 4.685 MB / 0.7064 GB, free: 11.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003422/0.8124, allocations: 57.7 kB / 0.7065 GB, free: 11.88 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002483/0.8149, allocations: 3.564 MB / 0.71 GB, free: 8.266 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009133/0.8158, allocations: 0.7598 MB / 0.7107 GB, free: 7.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001661/0.8175, allocations: 1.336 MB / 0.712 GB, free: 6.148 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.8176, allocations: 305.1 kB / 0.7123 GB, free: 5.848 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/0.821, allocations: 2.402 MB / 0.7146 GB, free: 3.441 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2888/1.11, allocations: 6.241 MB / 0.7207 GB, free: 191.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/1.122, allocations: 9.297 MB / 0.7298 GB, free: 184.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002942/1.122, allocations: 38.56 kB / 0.7299 GB, free: 184.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02024/1.142, allocations: 9.766 MB / 0.7394 GB, free: 181.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/1.142, allocations: 65.31 kB / 0.7395 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/1.143, allocations: 137.3 kB / 0.7396 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004606/1.147, allocations: 1.613 MB / 0.7412 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/1.152, allocations: 1.48 MB / 0.7426 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.162, allocations: 9.542 MB / 0.7519 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005007/1.167, allocations: 363 kB / 0.7523 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008101/1.168, allocations: 394.5 kB / 0.7527 GB, free: 175.5 MB / 0.545 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.003913/1.172, allocations: 2.451 MB / 0.755 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008355/1.173, allocations: 413.4 kB / 0.7554 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006847/1.18, allocations: 4.231 MB / 0.7596 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.702e-05/1.18, allocations: 23.25 kB / 0.7596 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.18, allocations: 3.875 kB / 0.7596 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/1.18, allocations: 15.08 kB / 0.7596 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/1.194, allocations: 9.721 MB / 0.7691 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/1.194, allocations: 0 / 0.7691 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/1.196, allocations: 303.5 kB / 0.7694 GB, free: 164.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003671/1.2, allocations: 1.356 MB / 0.7707 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/1.2, allocations: 39.98 kB / 0.7708 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009034/1.209, allocations: 8.736 MB / 0.7793 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.209, allocations: 0 / 0.7793 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00946/1.218, allocations: 6.981 MB / 0.7861 GB, free: 147.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/1.22, allocations: 455.7 kB / 0.7865 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/1.221, allocations: 28 kB / 0.7866 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/1.223, allocations: 127.8 kB / 0.7867 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003778/1.224, allocations: 121.1 kB / 0.7868 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.224, allocations: 45.41 kB / 0.7868 GB, free: 146.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003684/1.228, allocations: 2.96 MB / 0.7897 GB, free: 143.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/1.228, allocations: 0 / 0.7897 GB, free: 143.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00607/1.234, allocations: 1.188 MB / 0.7909 GB, free: 142.6 MB / 0.545 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.0004644/1.234, allocations: 168.7 kB / 0.7911 GB, free: 142.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008807/1.243, allocations: 5.954 MB / 0.7969 GB, free: 136.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.243, allocations: 0 / 0.7969 GB, free: 136.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002662/1.246, allocations: 2.014 MB / 0.7988 GB, free: 134.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/1.249, allocations: 0.5072 MB / 0.7993 GB, free: 133.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/1.267, allocations: 13.54 MB / 0.8126 GB, free: 120.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003571/1.271, allocations: 3.816 MB / 0.8163 GB, free: 116.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00441/1.276, allocations: 1.984 MB / 0.8182 GB, free: 114.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/1.276, allocations: 267.4 kB / 0.8185 GB, free: 114.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.276, allocations: 0 / 0.8185 GB, free: 114.3 MB / 0.545 GB Notification: Performance of Templates: time 0.0716/1.348, allocations: 43.46 MB / 0.8609 GB, free: 71 MB / 0.545 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches