Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001712/0.001712, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002246/0.002246, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.73 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2067/0.3098, allocations: 13.44 MB / 372.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008865/0.3187, allocations: 4.562 MB / 376.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.3205, allocations: 92 kB / 377 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006989/0.3276, allocations: 4.183 MB / 381.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005986/0.3336, allocations: 2.13 MB / 383.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.336, allocations: 0.9254 MB / 384.2 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009297/0.3453, allocations: 6.123 MB / 390.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007807/0.3532, allocations: 5.203 MB / 395.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005083/0.3583, allocations: 2.129 MB / 397.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005436/0.3637, allocations: 2.789 MB / 400.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001751/0.3655, allocations: 470.7 kB / 400.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.3688, allocations: 1.344 MB / 402.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002843/0.3717, allocations: 2.487 MB / 404.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003685/0.3754, allocations: 2.834 MB / 407.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.3857, allocations: 9.023 MB / 416.6 MB, free: 208 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.954e-06/0.3858, allocations: 7.938 kB / 416.6 MB, free: 200 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3858, allocations: 0 / 416.6 MB, free: 200 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002808/0.3861, allocations: 0 / 416.6 MB, free: 200 kB / 318.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.01289/0.399, allocations: 6.072 MB / 422.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.399, allocations: 8.031 kB / 422.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/0.4094, allocations: 2.582 MB / 425.3 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008477/0.4179, allocations: 3.811 MB / 429.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.4182, allocations: 298.8 kB / 429.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009998/0.4192, allocations: 428.7 kB / 429.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01969/0.4389, allocations: 11.54 MB / 441.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001743/0.4391, allocations: 55.53 kB / 441.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005454/0.4397, allocations: 188.8 kB / 441.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003094/0.4428, allocations: 2.025 MB / 443.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/0.4616, allocations: 9.936 MB / 453.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05846/0.5201, allocations: 45.34 MB / 498.9 MB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.5307, allocations: 4.374 MB / 0.4915 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00315/0.5339, allocations: 2.467 MB / 0.4939 GB, free: 5.254 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.5502, allocations: 9.842 MB / 0.5035 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.5503, allocations: 55.5 kB / 0.5035 GB, free: 11.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 4.949e-06/0.5503, allocations: 0 / 0.5035 GB, free: 11.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.05071/0.601, allocations: 19.9 MB / 0.523 GB, free: 7.223 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001837/0.6012, allocations: 197.2 kB / 0.5232 GB, free: 6.988 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007051/0.6083, allocations: 4.689 MB / 0.5277 GB, free: 2.289 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004092/0.6087, allocations: 53.7 kB / 0.5278 GB, free: 2.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2527/0.8614, allocations: 3.559 MB / 0.5313 GB, free: 141.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/0.8629, allocations: 0.7598 MB / 0.532 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004549/0.8675, allocations: 1.334 MB / 0.5333 GB, free: 140.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.8676, allocations: 303.6 kB / 0.5336 GB, free: 140.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006942/0.8745, allocations: 2.405 MB / 0.5359 GB, free: 139.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009259/0.8838, allocations: 6.257 MB / 0.5421 GB, free: 133.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01677/0.9006, allocations: 9.292 MB / 0.5511 GB, free: 126.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003279/0.901, allocations: 38.61 kB / 0.5512 GB, free: 126.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.03139/0.9324, allocations: 9.772 MB / 0.5607 GB, free: 122.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002375/0.9327, allocations: 69.11 kB / 0.5608 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002856/0.933, allocations: 138.3 kB / 0.5609 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007652/0.9407, allocations: 1.608 MB / 0.5625 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008358/0.9491, allocations: 1.475 MB / 0.5639 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01956/0.9686, allocations: 10.25 MB / 0.5739 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00836/0.977, allocations: 358.4 kB / 0.5743 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/0.9785, allocations: 391.6 kB / 0.5746 GB, free: 115.4 MB / 446.1 MB 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.005705/0.9842, allocations: 2.462 MB / 0.577 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/0.9852, allocations: 413.4 kB / 0.5774 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/0.9972, allocations: 4.231 MB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.424e-05/0.9973, allocations: 20 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.9973, allocations: 8 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.784e-05/0.9974, allocations: 11.97 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0255/1.023, allocations: 9.659 MB / 0.591 GB, free: 99.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/1.023, allocations: 4 kB / 0.591 GB, free: 99.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/1.024, allocations: 303.5 kB / 0.5913 GB, free: 98.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003462/1.028, allocations: 1.354 MB / 0.5927 GB, free: 97.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/1.028, allocations: 36 kB / 0.5927 GB, free: 97.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00896/1.037, allocations: 9.39 MB / 0.6019 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.037, allocations: 0 / 0.6019 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009255/1.046, allocations: 6.96 MB / 0.6087 GB, free: 80.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.048, allocations: 459.7 kB / 0.6091 GB, free: 80.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006624/1.048, allocations: 28 kB / 0.6091 GB, free: 80.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/1.05, allocations: 115.8 kB / 0.6092 GB, free: 80.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/1.05, allocations: 125 kB / 0.6094 GB, free: 80.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/1.051, allocations: 56.89 kB / 0.6094 GB, free: 80.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003572/1.054, allocations: 2.958 MB / 0.6123 GB, free: 77.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.054, allocations: 0 / 0.6123 GB, free: 77.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005292/1.059, allocations: 1.187 MB / 0.6135 GB, free: 75.95 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.0004542/1.06, allocations: 162.9 kB / 0.6136 GB, free: 75.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00779/1.068, allocations: 5.97 MB / 0.6194 GB, free: 69.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/1.068, allocations: 0 / 0.6194 GB, free: 69.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/1.07, allocations: 2.011 MB / 0.6214 GB, free: 67.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/1.073, allocations: 0.5497 MB / 0.6219 GB, free: 67.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/1.088, allocations: 11.04 MB / 0.6327 GB, free: 56.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003921/1.092, allocations: 3.815 MB / 0.6365 GB, free: 52.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003864/1.096, allocations: 1.98 MB / 0.6384 GB, free: 50.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008019/1.097, allocations: 267.4 kB / 0.6386 GB, free: 50.07 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/1.097, allocations: 0 / 0.6386 GB, free: 50.07 MB / 446.1 MB Notification: Performance of Templates: time 0.06532/1.162, allocations: 39.65 MB / 0.6774 GB, free: 10.75 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches