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.000974/0.000974, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0008223/0.0008223, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.113/1.113, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 11.94 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06853/0.06875, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.1767/0.2454, allocations: 67.84 MB / 420.3 MB, free: 272 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0229/0.2684, allocations: 13.88 MB / 434.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007974/0.2764, allocations: 303.2 kB / 434.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.2775, allocations: 0.5092 MB / 435 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003744/0.2813, allocations: 2.056 MB / 437.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.2827, allocations: 0.8503 MB / 437.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00759/0.2903, allocations: 8.768 MB / 446.7 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007619/0.2979, allocations: 7.368 MB / 454.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.2994, allocations: 1.521 MB / 455.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002309/0.3018, allocations: 2.546 MB / 458.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002829/0.3021, allocations: 180 kB / 458.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3036, allocations: 1.143 MB / 459.4 MB, free: 9.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.3051, allocations: 2.213 MB / 461.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001642/0.3067, allocations: 2.509 MB / 464.2 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004797/0.3115, allocations: 7.112 MB / 471.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.3115, allocations: 0 / 471.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3115, allocations: 0 / 471.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.338e-05/0.3116, allocations: 7.938 kB / 471.3 MB, free: 13.26 MB / 382.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.007195/0.3188, allocations: 5.035 MB / 476.3 MB, free: 8.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.3188, allocations: 8.031 kB / 476.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009981/0.3288, allocations: 2.634 MB / 479 MB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005385/0.3342, allocations: 3.804 MB / 482.8 MB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.3344, allocations: 304.2 kB / 483.1 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006583/0.3351, allocations: 432 kB / 483.5 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.3492, allocations: 11.75 MB / 495.2 MB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.3493, allocations: 55.52 kB / 495.3 MB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004095/0.3497, allocations: 187.9 kB / 495.5 MB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002939/0.3526, allocations: 2.089 MB / 497.6 MB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.3668, allocations: 10.12 MB / 0.4958 GB, free: 7.953 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.184/0.5508, allocations: 45.98 MB / 0.5407 GB, free: 123.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009264/0.5601, allocations: 4.384 MB / 0.545 GB, free: 122.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002523/0.5626, allocations: 2.472 MB / 0.5474 GB, free: 122.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.5731, allocations: 9.844 MB / 0.557 GB, free: 118.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.5732, allocations: 58.36 kB / 0.5571 GB, free: 118.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.046e-06/0.5732, allocations: 0 / 0.5571 GB, free: 118.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04/0.6132, allocations: 19.98 MB / 0.5766 GB, free: 109.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.6132, allocations: 204.5 kB / 0.5768 GB, free: 109.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003888/0.6171, allocations: 4.704 MB / 0.5814 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.6173, allocations: 57.7 kB / 0.5814 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.6184, allocations: 3.596 MB / 0.5849 GB, free: 101.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003628/0.6188, allocations: 0.7678 MB / 0.5857 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004576/0.6193, allocations: 0.5676 MB / 0.5862 GB, free: 99.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.843e-05/0.6193, allocations: 305.1 kB / 0.5865 GB, free: 99.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002308/0.6216, allocations: 2.418 MB / 0.5889 GB, free: 97.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003265/0.6249, allocations: 6.282 MB / 0.595 GB, free: 89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006018/0.6309, allocations: 9.338 MB / 0.6041 GB, free: 77.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.493e-05/0.631, allocations: 36 kB / 0.6042 GB, free: 77.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01104/0.642, allocations: 9.8 MB / 0.6137 GB, free: 68.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.6421, allocations: 60 kB / 0.6138 GB, free: 68.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.3e-05/0.6422, allocations: 136 kB / 0.6139 GB, free: 67.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003399/0.6456, allocations: 1.62 MB / 0.6155 GB, free: 66.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/0.6488, allocations: 1.493 MB / 0.617 GB, free: 64.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008434/0.6573, allocations: 9.548 MB / 0.6263 GB, free: 55.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/0.6603, allocations: 375.4 kB / 0.6266 GB, free: 54.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003228/0.6606, allocations: 389.4 kB / 0.627 GB, free: 54.27 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 (796): * Single equations (assignments): 791 * 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.002316/0.6629, allocations: 2.483 MB / 0.6294 GB, free: 51.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003591/0.6633, allocations: 410.8 kB / 0.6298 GB, free: 51.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006254/0.6696, allocations: 4.251 MB / 0.634 GB, free: 47.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.6696, allocations: 20 kB / 0.634 GB, free: 47.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.6696, allocations: 8 kB / 0.634 GB, free: 47.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.6696, allocations: 16.98 kB / 0.634 GB, free: 47.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.6813, allocations: 9.786 MB / 0.6436 GB, free: 37.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.6813, allocations: 4 kB / 0.6436 GB, free: 37.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.6824, allocations: 303.5 kB / 0.6439 GB, free: 36.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003183/0.6856, allocations: 1.366 MB / 0.6452 GB, free: 35.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.6858, allocations: 35.98 kB / 0.6452 GB, free: 35.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007707/0.6935, allocations: 8.735 MB / 0.6538 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6935, allocations: 7.984 kB / 0.6538 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007784/0.7013, allocations: 6.97 MB / 0.6606 GB, free: 19.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/0.7017, allocations: 471.6 kB / 0.661 GB, free: 19.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003447/0.7021, allocations: 30.03 kB / 0.6611 GB, free: 19.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.7034, allocations: 119.8 kB / 0.6612 GB, free: 18.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.7036, allocations: 121.2 kB / 0.6613 GB, free: 18.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.7037, allocations: 59.97 kB / 0.6614 GB, free: 18.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002619/0.7064, allocations: 2.968 MB / 0.6643 GB, free: 15.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7064, allocations: 480 / 0.6643 GB, free: 15.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00345/0.7098, allocations: 1.201 MB / 0.6654 GB, free: 14.55 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 (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.0002789/0.7101, allocations: 181.1 kB / 0.6656 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005795/0.7159, allocations: 5.982 MB / 0.6714 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.7159, allocations: 0 / 0.6714 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.7181, allocations: 2.017 MB / 0.6734 GB, free: 6.355 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.7206, allocations: 0.5128 MB / 0.6739 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.7342, allocations: 14.24 MB / 0.6878 GB, free: 7.559 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003527/0.7378, allocations: 3.836 MB / 0.6916 GB, free: 3.688 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007218/0.7385, allocations: 315.4 kB / 0.6919 GB, free: 3.379 MB / 462.1 MB Notification: Performance of SimCode: time 5.21e-07/0.7385, allocations: 0 / 0.6919 GB, free: 3.379 MB / 462.1 MB Notification: Performance of Templates: time 0.2228/0.9613, allocations: 111.9 MB / 0.8012 GB, free: 90.39 MB / 478.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches