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.001411/0.001411, allocations: 112.8 kB / 17.68 MB, free: 5.473 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.001461/0.001461, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.396/1.396, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 39.88 kB / 302 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1359, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.02304/0.1589, allocations: 13.56 MB / 365.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.173, allocations: 4.553 MB / 369.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002913/0.176, allocations: 95.69 kB / 369.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2149/0.391, allocations: 4.198 MB / 373.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005314/0.3963, allocations: 2.178 MB / 376.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.3984, allocations: 0.9303 MB / 377 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007968/0.4064, allocations: 6.06 MB / 383.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005736/0.4121, allocations: 5.232 MB / 388.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.4148, allocations: 2.143 MB / 390.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.4175, allocations: 2.807 MB / 393.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006476/0.4181, allocations: 476.8 kB / 393.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.42, allocations: 1.363 MB / 395.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/0.4214, allocations: 2.535 MB / 397.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.4235, allocations: 2.885 MB / 400.5 MB, free: 120 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008712/0.4322, allocations: 9.177 MB / 409.7 MB, free: 7.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4323, allocations: 0 / 409.7 MB, free: 7.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4323, allocations: 4 kB / 409.7 MB, free: 7.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001725/0.4325, allocations: 4 kB / 409.7 MB, free: 7.121 MB / 318.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.01148/0.444, allocations: 6.13 MB / 415.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.444, allocations: 8.031 kB / 415.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/0.4549, allocations: 2.578 MB / 418.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008643/0.4635, allocations: 3.878 MB / 422.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.4637, allocations: 298.7 kB / 422.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008934/0.4647, allocations: 439.7 kB / 423 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01713/0.4818, allocations: 11.73 MB / 434.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.482, allocations: 59.44 kB / 434.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/0.4824, allocations: 184.7 kB / 435 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003217/0.4856, allocations: 2.091 MB / 437.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01917/0.5048, allocations: 10.09 MB / 447.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05354/0.5584, allocations: 45.76 MB / 492.9 MB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/0.5687, allocations: 4.379 MB / 497.3 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003129/0.5719, allocations: 2.471 MB / 499.8 MB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/0.5864, allocations: 9.853 MB / 0.4977 GB, free: 1.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.739e-05/0.5865, allocations: 55.5 kB / 0.4977 GB, free: 1.203 MB / 414.1 MB Notification: Performance of pre-optimization done (n=171): time 4.679e-06/0.5865, allocations: 0 / 0.4977 GB, free: 1.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.05108/0.6376, allocations: 19.94 MB / 0.5172 GB, free: 13.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.6378, allocations: 201.2 kB / 0.5174 GB, free: 12.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006305/0.6441, allocations: 4.701 MB / 0.522 GB, free: 8.195 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003354/0.6444, allocations: 57.7 kB / 0.522 GB, free: 8.133 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002396/0.6468, allocations: 3.603 MB / 0.5255 GB, free: 4.531 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009321/0.6478, allocations: 0.7547 MB / 0.5263 GB, free: 3.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001699/0.6495, allocations: 1.347 MB / 0.5276 GB, free: 2.426 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.6496, allocations: 309 kB / 0.5279 GB, free: 2.121 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1707/0.8203, allocations: 2.405 MB / 0.5302 GB, free: 145.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006509/0.8268, allocations: 6.273 MB / 0.5364 GB, free: 140.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009963/0.8368, allocations: 9.329 MB / 0.5455 GB, free: 132.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001512/0.837, allocations: 37.75 kB / 0.5455 GB, free: 132.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.0172/0.8542, allocations: 9.787 MB / 0.5551 GB, free: 129.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.014e-05/0.8543, allocations: 67.92 kB / 0.5551 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001125/0.8544, allocations: 134.7 kB / 0.5553 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003759/0.8582, allocations: 1.612 MB / 0.5568 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/0.8624, allocations: 1.491 MB / 0.5583 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/0.8722, allocations: 10.26 MB / 0.5683 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004514/0.8768, allocations: 363.3 kB / 0.5687 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005927/0.8774, allocations: 397.2 kB / 0.569 GB, free: 122.9 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.003088/0.8805, allocations: 2.48 MB / 0.5715 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006455/0.8811, allocations: 408.5 kB / 0.5719 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00651/0.8877, allocations: 4.235 MB / 0.576 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.8877, allocations: 21.48 kB / 0.576 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.8877, allocations: 8 kB / 0.576 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.8877, allocations: 10.83 kB / 0.576 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.9018, allocations: 9.721 MB / 0.5855 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.9018, allocations: 0 / 0.5855 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.9031, allocations: 295.6 kB / 0.5858 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003438/0.9066, allocations: 1.359 MB / 0.5871 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001744/0.9068, allocations: 35.98 kB / 0.5872 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008847/0.9156, allocations: 9.385 MB / 0.5963 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9156, allocations: 4 kB / 0.5963 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008608/0.9243, allocations: 6.972 MB / 0.6031 GB, free: 91.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.9253, allocations: 455.7 kB / 0.6036 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004262/0.9258, allocations: 28 kB / 0.6036 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.9272, allocations: 122.1 kB / 0.6037 GB, free: 90.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.9275, allocations: 124.5 kB / 0.6038 GB, free: 90.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.9277, allocations: 51.98 kB / 0.6039 GB, free: 90.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003194/0.9309, allocations: 2.964 MB / 0.6068 GB, free: 87.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9309, allocations: 4 kB / 0.6068 GB, free: 87.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004553/0.9354, allocations: 1.209 MB / 0.608 GB, free: 86.36 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.0003319/0.9358, allocations: 165.7 kB / 0.6081 GB, free: 86.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007363/0.9431, allocations: 5.987 MB / 0.614 GB, free: 80.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.9432, allocations: 0 / 0.614 GB, free: 80.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.9456, allocations: 2.005 MB / 0.6159 GB, free: 78.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.9484, allocations: 0.5452 MB / 0.6165 GB, free: 77.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01496/0.9634, allocations: 11.12 MB / 0.6273 GB, free: 66.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003351/0.9667, allocations: 3.864 MB / 0.6311 GB, free: 62.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003741/0.9705, allocations: 1.984 MB / 0.633 GB, free: 60.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.9712, allocations: 272.9 kB / 0.6333 GB, free: 60.35 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9712, allocations: 0 / 0.6333 GB, free: 60.35 MB / 446.1 MB Notification: Performance of Templates: time 0.06548/1.037, allocations: 39.95 MB / 0.6723 GB, free: 20.75 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 -s cvode -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