Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009673/0.0009674, allocations: 90.89 kB / 16.31 MB, free: 6.129 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.001016/0.001016, allocations: 184.1 kB / 17.2 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.2 MB / 241.1 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 4 kB / 300.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09296, allocations: 50.41 MB / 351.1 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2042/0.2971, allocations: 59.53 MB / 410.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03394/0.3311, allocations: 13.92 MB / 424.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0128/0.344, allocations: 307.2 kB / 424.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009271/0.3533, allocations: 2.994 MB / 427.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02679/0.3801, allocations: 8.548 MB / 436.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004245/0.3844, allocations: 0.7957 MB / 437.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.06649/0.4509, allocations: 48.5 MB / 485.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009506/0.4604, allocations: 6.51 MB / 492.2 MB, free: 6.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.463, allocations: 1.347 MB / 493.6 MB, free: 5.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.4657, allocations: 1.741 MB / 495.3 MB, free: 3.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008092/0.4665, allocations: 184 kB / 495.5 MB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.4686, allocations: 0.9636 MB / 496.5 MB, free: 2.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002088/0.4707, allocations: 2.007 MB / 498.5 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.472, allocations: 1.053 MB / 499.5 MB, free: 15.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006407/0.4784, allocations: 7.236 MB / 0.4949 GB, free: 8.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.4784, allocations: 4 kB / 0.4949 GB, free: 8.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4784, allocations: 0 / 0.4949 GB, free: 8.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002036/0.4786, allocations: 0 / 0.4949 GB, free: 8.371 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01027/0.4889, allocations: 5.374 MB / 0.5001 GB, free: 2.926 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.489, allocations: 16.03 kB / 0.5002 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04237/0.5313, allocations: 7.997 MB / 0.508 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008477/0.5399, allocations: 3.872 MB / 0.5118 GB, free: 6.969 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.5401, allocations: 299.8 kB / 0.512 GB, free: 6.676 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009306/0.541, allocations: 435.5 kB / 0.5125 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.5609, allocations: 11.74 MB / 0.5239 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001527/0.5611, allocations: 55.52 kB / 0.524 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004861/0.5616, allocations: 187.9 kB / 0.5242 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00354/0.5651, allocations: 2.089 MB / 0.5262 GB, free: 7.434 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2065/0.7717, allocations: 9.974 MB / 0.5359 GB, free: 151 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04973/0.8215, allocations: 45.55 MB / 0.5804 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009492/0.831, allocations: 4.248 MB / 0.5846 GB, free: 115.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.8447, allocations: 9.533 MB / 0.5939 GB, free: 106.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.8448, allocations: 51.5 kB / 0.5939 GB, free: 106.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.37e-06/0.8448, allocations: 3.719 kB / 0.5939 GB, free: 106.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04211/0.8869, allocations: 18.54 MB / 0.612 GB, free: 88.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.887, allocations: 205.2 kB / 0.6122 GB, free: 87.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004754/0.8917, allocations: 4.951 MB / 0.6171 GB, free: 82.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.8919, allocations: 50.56 kB / 0.6171 GB, free: 82.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/0.8934, allocations: 3.643 MB / 0.6207 GB, free: 79.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004767/0.8939, allocations: 0.7525 MB / 0.6214 GB, free: 78.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.8941, allocations: 124 kB / 0.6215 GB, free: 78.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.8944, allocations: 0.5666 MB / 0.6221 GB, free: 77.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.8967, allocations: 2.167 MB / 0.6242 GB, free: 75.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004362/0.9011, allocations: 5.99 MB / 0.63 GB, free: 67.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003735/0.9049, allocations: 3.533 MB / 0.6335 GB, free: 64.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-05/0.9049, allocations: 39.09 kB / 0.6335 GB, free: 64.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01202/0.917, allocations: 8.749 MB / 0.6421 GB, free: 55.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.917, allocations: 60 kB / 0.6421 GB, free: 55.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.88e-05/0.9171, allocations: 140 kB / 0.6423 GB, free: 55.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/0.9197, allocations: 1.09 MB / 0.6433 GB, free: 54.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003561/0.9233, allocations: 1.439 MB / 0.6447 GB, free: 52.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008135/0.9314, allocations: 8.379 MB / 0.6529 GB, free: 44.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/0.9357, allocations: 352.5 kB / 0.6532 GB, free: 43.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004573/0.9361, allocations: 383.9 kB / 0.6536 GB, free: 43.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (756): * Single equations (assignments): 751 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003009/0.9391, allocations: 2.483 MB / 0.656 GB, free: 40.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005403/0.9397, allocations: 414.6 kB / 0.6564 GB, free: 40.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005179/0.9449, allocations: 3.499 MB / 0.6598 GB, free: 36.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/0.9449, allocations: 24.55 kB / 0.6599 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.9449, allocations: 8 kB / 0.6599 GB, free: 36.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.945, allocations: 11.95 kB / 0.6599 GB, free: 36.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.958, allocations: 9.065 MB / 0.6687 GB, free: 27.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.9581, allocations: 0 / 0.6687 GB, free: 27.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/0.9595, allocations: 303.5 kB / 0.669 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/0.9618, allocations: 0.8543 MB / 0.6699 GB, free: 26.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.9619, allocations: 36.47 kB / 0.6699 GB, free: 26.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007017/0.9689, allocations: 7.519 MB / 0.6772 GB, free: 18.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.9689, allocations: 4.062 kB / 0.6772 GB, free: 18.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007135/0.9761, allocations: 6.176 MB / 0.6833 GB, free: 12.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008322/0.9769, allocations: 471.6 kB / 0.6837 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004056/0.9773, allocations: 37.11 kB / 0.6838 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.9787, allocations: 103.9 kB / 0.6839 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.9789, allocations: 125.1 kB / 0.684 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.9791, allocations: 50.03 kB / 0.684 GB, free: 11.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003452/0.9825, allocations: 3.153 MB / 0.6871 GB, free: 8.594 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9825, allocations: 0 / 0.6871 GB, free: 8.594 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004068/0.9866, allocations: 1.173 MB / 0.6883 GB, free: 7.426 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003681/0.987, allocations: 183.9 kB / 0.6884 GB, free: 7.242 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006539/0.9935, allocations: 5.506 MB / 0.6938 GB, free: 1.746 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.9936, allocations: 0 / 0.6938 GB, free: 1.746 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1504/1.144, allocations: 1.884 MB / 0.6956 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/1.147, allocations: 0.5202 MB / 0.6962 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01851/1.166, allocations: 12.83 MB / 0.7087 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004628/1.17, allocations: 3.971 MB / 0.7126 GB, free: 134.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004679/1.175, allocations: 2.002 MB / 0.7145 GB, free: 134.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007308/1.176, allocations: 271.8 kB / 0.7148 GB, free: 134.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/1.176, allocations: 0 / 0.7148 GB, free: 134.8 MB / 446.1 MB Notification: Performance of Templates: time 0.05949/1.235, allocations: 41.3 MB / 0.7551 GB, free: 102.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches