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.001461/0.001461, allocations: 116.9 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.00188/0.00188, 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.46/1.46, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 55.41 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1015, allocations: 50.54 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.1807/0.2822, allocations: 13.44 MB / 372.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009424/0.2917, allocations: 4.557 MB / 376.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/0.2945, allocations: 91.91 kB / 377 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008237/0.3028, allocations: 4.186 MB / 381.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006516/0.3093, allocations: 2.131 MB / 383.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.312, allocations: 0.9246 MB / 384.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009219/0.3213, allocations: 6.125 MB / 390.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00784/0.3291, allocations: 5.196 MB / 395.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004447/0.3336, allocations: 2.123 MB / 397.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004258/0.3379, allocations: 2.793 MB / 400.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.3395, allocations: 473.3 kB / 400.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003569/0.3431, allocations: 1.343 MB / 402.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003213/0.3463, allocations: 2.485 MB / 404.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004911/0.3513, allocations: 2.834 MB / 407.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.3618, allocations: 9.027 MB / 416.6 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3619, allocations: 0 / 416.6 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3619, allocations: 0 / 416.6 MB, free: 192 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003287/0.3622, allocations: 4 kB / 416.6 MB, free: 188 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.01515/0.3774, allocations: 6.071 MB / 422.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3775, allocations: 8.031 kB / 422.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01198/0.3895, allocations: 2.586 MB / 425.3 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00968/0.3992, allocations: 3.815 MB / 429.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/0.3995, allocations: 297.5 kB / 429.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001604/0.4011, allocations: 427.8 kB / 429.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02252/0.4236, allocations: 11.55 MB / 441.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002988/0.424, allocations: 55.52 kB / 441.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001332/0.4253, allocations: 190.7 kB / 441.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003262/0.4286, allocations: 2.023 MB / 443.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01866/0.4472, allocations: 9.934 MB / 453.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05564/0.5029, allocations: 45.34 MB / 498.9 MB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.5141, allocations: 4.371 MB / 0.4915 GB, free: 7.707 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003278/0.5174, allocations: 2.47 MB / 0.4939 GB, free: 5.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0164/0.5339, allocations: 9.85 MB / 0.5035 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.5339, allocations: 47.5 kB / 0.5035 GB, free: 11.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 7.524e-06/0.5339, allocations: 0 / 0.5035 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.05527/0.5892, allocations: 19.9 MB / 0.523 GB, free: 7.199 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.5894, allocations: 201.2 kB / 0.5232 GB, free: 6.961 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007523/0.5969, allocations: 4.689 MB / 0.5277 GB, free: 2.262 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/0.5973, allocations: 53.7 kB / 0.5278 GB, free: 2.203 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1785/0.7757, allocations: 3.556 MB / 0.5313 GB, free: 141.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/0.7769, allocations: 0.7603 MB / 0.532 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003909/0.7809, allocations: 1.336 MB / 0.5333 GB, free: 141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.7809, allocations: 306.7 kB / 0.5336 GB, free: 140.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003966/0.7849, allocations: 2.41 MB / 0.536 GB, free: 140.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005408/0.7903, allocations: 6.247 MB / 0.5421 GB, free: 134.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009764/0.8001, allocations: 9.299 MB / 0.5511 GB, free: 126.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001593/0.8003, allocations: 38.31 kB / 0.5512 GB, free: 126.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01813/0.8184, allocations: 9.771 MB / 0.5607 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.8187, allocations: 64.94 kB / 0.5608 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002673/0.8189, allocations: 135.9 kB / 0.5609 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004249/0.8232, allocations: 1.612 MB / 0.5625 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/0.8279, allocations: 1.487 MB / 0.5639 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.8389, allocations: 10.25 MB / 0.5739 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005161/0.8441, allocations: 358.1 kB / 0.5743 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/0.8452, allocations: 395.8 kB / 0.5747 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.004187/0.8494, allocations: 2.454 MB / 0.5771 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009105/0.8504, allocations: 410.7 kB / 0.5774 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007305/0.8577, allocations: 4.233 MB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-05/0.8578, allocations: 24 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.8578, allocations: 8 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.8578, allocations: 7.969 kB / 0.5816 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01929/0.8771, allocations: 9.662 MB / 0.5911 GB, free: 99.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.8772, allocations: 7.984 kB / 0.5911 GB, free: 99.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/0.8786, allocations: 299.6 kB / 0.5913 GB, free: 98.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/0.8823, allocations: 1.354 MB / 0.5927 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.8826, allocations: 32 kB / 0.5927 GB, free: 97.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009642/0.8922, allocations: 9.388 MB / 0.6019 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8923, allocations: 4 kB / 0.6019 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009622/0.9019, allocations: 6.967 MB / 0.6087 GB, free: 80.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/0.9035, allocations: 459.7 kB / 0.6091 GB, free: 80.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/0.9047, allocations: 28 kB / 0.6091 GB, free: 80.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/0.907, allocations: 111.8 kB / 0.6092 GB, free: 80.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004325/0.9075, allocations: 125.1 kB / 0.6094 GB, free: 80.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.9077, allocations: 51.98 kB / 0.6094 GB, free: 80.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005192/0.9129, allocations: 2.96 MB / 0.6123 GB, free: 77.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.9129, allocations: 0 / 0.6123 GB, free: 77.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006556/0.9194, allocations: 1.182 MB / 0.6135 GB, free: 75.94 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.0006172/0.9201, allocations: 166.8 kB / 0.6136 GB, free: 75.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008793/0.9289, allocations: 5.972 MB / 0.6195 GB, free: 69.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.9289, allocations: 0.5625 kB / 0.6195 GB, free: 69.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002939/0.9319, allocations: 2.009 MB / 0.6214 GB, free: 67.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003902/0.9358, allocations: 0.5388 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.01985/0.9557, allocations: 11.04 MB / 0.6327 GB, free: 56.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004969/0.9607, allocations: 3.816 MB / 0.6365 GB, free: 52.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004309/0.965, allocations: 1.988 MB / 0.6384 GB, free: 50.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008883/0.9659, allocations: 267.4 kB / 0.6386 GB, free: 50.08 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.9659, allocations: 4 kB / 0.6387 GB, free: 50.08 MB / 446.1 MB Notification: Performance of Templates: time 0.06485/1.031, allocations: 39.64 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 gbode -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