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.001515/0.001515, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 59.08 kB / 306.9 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.105, allocations: 50.53 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01877/0.1238, allocations: 13.45 MB / 370.9 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1891/0.3129, allocations: 4.544 MB / 375.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003602/0.3166, allocations: 89.94 kB / 375.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00837/0.325, allocations: 4.19 MB / 379.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007127/0.3322, allocations: 2.122 MB / 381.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002748/0.3349, allocations: 0.9281 MB / 382.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009664/0.3446, allocations: 6.12 MB / 388.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006108/0.3508, allocations: 5.215 MB / 394.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003742/0.3545, allocations: 2.114 MB / 396.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004066/0.3586, allocations: 2.787 MB / 399 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00106/0.3597, allocations: 475.6 kB / 399.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002822/0.3626, allocations: 1.341 MB / 400.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002363/0.3649, allocations: 2.49 MB / 403.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003167/0.3681, allocations: 2.842 MB / 406.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009077/0.3772, allocations: 8.791 MB / 415 MB, free: 500 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3772, allocations: 4 kB / 415 MB, free: 496 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3773, allocations: 0 / 415 MB, free: 496 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003003/0.3776, allocations: 0 / 415 MB, free: 496 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.01532/0.3929, allocations: 6.069 MB / 421 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.3929, allocations: 12.03 kB / 421 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.4049, allocations: 2.579 MB / 423.6 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008446/0.4134, allocations: 3.737 MB / 427.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000265/0.4137, allocations: 296.9 kB / 427.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001877/0.4156, allocations: 428.3 kB / 428.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02193/0.4375, allocations: 11.55 MB / 439.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002416/0.4378, allocations: 55.58 kB / 439.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/0.4391, allocations: 184.2 kB / 439.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003525/0.4426, allocations: 2.031 MB / 441.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02221/0.4649, allocations: 9.928 MB / 451.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06046/0.5254, allocations: 45.54 MB / 497.3 MB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.5367, allocations: 4.368 MB / 0.49 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003401/0.5401, allocations: 2.479 MB / 0.4924 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01687/0.557, allocations: 9.848 MB / 0.502 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.5571, allocations: 51.56 kB / 0.502 GB, free: 11.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 4.158e-06/0.5571, allocations: 0 / 0.502 GB, free: 11.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.05933/0.6164, allocations: 19.9 MB / 0.5215 GB, free: 7.379 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.6166, allocations: 197.2 kB / 0.5217 GB, free: 7.145 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007676/0.6243, allocations: 4.689 MB / 0.5262 GB, free: 2.445 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004441/0.6248, allocations: 53.7 kB / 0.5263 GB, free: 2.387 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2101/0.8349, allocations: 3.561 MB / 0.5298 GB, free: 141.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001149/0.8361, allocations: 0.7578 MB / 0.5305 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002457/0.8385, allocations: 1.339 MB / 0.5318 GB, free: 141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.118e-05/0.8386, allocations: 302.5 kB / 0.5321 GB, free: 140.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004392/0.843, allocations: 2.408 MB / 0.5345 GB, free: 140.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005861/0.8489, allocations: 6.25 MB / 0.5406 GB, free: 134.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/0.8606, allocations: 9.286 MB / 0.5496 GB, free: 126.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002002/0.8609, allocations: 46.56 kB / 0.5497 GB, free: 126.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01844/0.8793, allocations: 9.775 MB / 0.5592 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.391e-05/0.8795, allocations: 71.84 kB / 0.5593 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/0.8796, allocations: 134.4 kB / 0.5594 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004095/0.8837, allocations: 1.61 MB / 0.561 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004451/0.8882, allocations: 1.482 MB / 0.5624 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.8989, allocations: 10.25 MB / 0.5725 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005446/0.9044, allocations: 361.7 kB / 0.5728 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.9055, allocations: 387.5 kB / 0.5732 GB, free: 115.7 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.00466/0.9102, allocations: 2.457 MB / 0.5756 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/0.9114, allocations: 410.7 kB / 0.576 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007982/0.9194, allocations: 4.229 MB / 0.5801 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.054e-05/0.9195, allocations: 20 kB / 0.5801 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/0.9195, allocations: 12 kB / 0.5801 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/0.9195, allocations: 11.53 kB / 0.5801 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02051/0.94, allocations: 9.709 MB / 0.5896 GB, free: 99.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/0.9401, allocations: 11.98 kB / 0.5896 GB, free: 99.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.9415, allocations: 303.3 kB / 0.5899 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003776/0.9453, allocations: 1.362 MB / 0.5912 GB, free: 97.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/0.9456, allocations: 32 kB / 0.5913 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00989/0.9555, allocations: 9.383 MB / 0.6004 GB, free: 88.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.9556, allocations: 0 / 0.6004 GB, free: 88.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01132/0.9669, allocations: 6.963 MB / 0.6072 GB, free: 81.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.9682, allocations: 459.7 kB / 0.6077 GB, free: 80.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001149/0.9694, allocations: 32 kB / 0.6077 GB, free: 80.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/0.9717, allocations: 107.8 kB / 0.6078 GB, free: 80.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005127/0.9722, allocations: 129 kB / 0.6079 GB, free: 80.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/0.9724, allocations: 55.73 kB / 0.608 GB, free: 80.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00546/0.9779, allocations: 2.964 MB / 0.6109 GB, free: 77.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9779, allocations: 0 / 0.6109 GB, free: 77.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006817/0.9847, allocations: 1.177 MB / 0.612 GB, free: 76.16 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.0007038/0.9855, allocations: 172 kB / 0.6122 GB, free: 75.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01173/0.9972, allocations: 7.026 MB / 0.6191 GB, free: 68.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.9973, allocations: 0 / 0.6191 GB, free: 68.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00298/1, allocations: 2.007 MB / 0.621 GB, free: 66.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004541/1.005, allocations: 0.5367 MB / 0.6215 GB, free: 66.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02058/1.025, allocations: 11.19 MB / 0.6325 GB, free: 55.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006281/1.032, allocations: 3.807 MB / 0.6362 GB, free: 51.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005547/1.037, allocations: 1.984 MB / 0.6381 GB, free: 49.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/1.038, allocations: 267.4 kB / 0.6384 GB, free: 49.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.173e-06/1.038, allocations: 4 kB / 0.6384 GB, free: 49.11 MB / 446.1 MB Notification: Performance of Templates: time 0.07285/1.111, allocations: 45.18 MB / 0.6825 GB, free: 4.148 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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