Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002595/0.002595, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 51.92 kB / 373.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.1014, allocations: 53.32 MB / 426.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2087/0.3101, allocations: 13.5 MB / 440.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009514/0.3196, allocations: 4.575 MB / 444.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.3219, allocations: 105.2 kB / 445 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007747/0.3297, allocations: 4.231 MB / 449.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006222/0.3359, allocations: 2.185 MB / 451.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002404/0.3383, allocations: 0.9315 MB / 452.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009583/0.3479, allocations: 6.118 MB / 458.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00634/0.3542, allocations: 4.338 MB / 462.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004772/0.359, allocations: 2.155 MB / 464.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005636/0.3646, allocations: 3.015 MB / 467.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.3662, allocations: 471.1 kB / 468.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003256/0.3694, allocations: 1.38 MB / 469.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003467/0.3729, allocations: 2.553 MB / 472.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005272/0.3782, allocations: 2.84 MB / 475.2 MB, free: 4 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.3916, allocations: 9.06 MB / 484.2 MB, free: 6.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3916, allocations: 0 / 484.2 MB, free: 6.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3916, allocations: 0 / 484.2 MB, free: 6.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002899/0.3919, allocations: 0 / 484.2 MB, free: 6.906 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01615/0.408, allocations: 6.232 MB / 490.5 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4081, allocations: 12.03 kB / 490.5 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.4214, allocations: 2.61 MB / 493.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009834/0.4312, allocations: 3.83 MB / 496.9 MB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.4315, allocations: 296.1 kB / 497.2 MB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.4331, allocations: 424.1 kB / 497.6 MB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03045/0.4635, allocations: 11.55 MB / 0.4972 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003031/0.4639, allocations: 63.52 kB / 0.4973 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001621/0.4655, allocations: 183.9 kB / 0.4975 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006011/0.4715, allocations: 2.026 MB / 0.4995 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03175/0.5032, allocations: 9.937 MB / 0.5092 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06678/0.57, allocations: 45.43 MB / 0.5535 GB, free: 2.094 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.582, allocations: 4.221 MB / 0.5576 GB, free: 13.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004097/0.5861, allocations: 2.301 MB / 0.5599 GB, free: 11.42 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02514/0.6112, allocations: 9.849 MB / 0.5695 GB, free: 1.406 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.775e-05/0.6113, allocations: 55.5 kB / 0.5696 GB, free: 1.344 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 6.582e-06/0.6113, allocations: 0 / 0.5696 GB, free: 1.344 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.08546/0.6967, allocations: 20.17 MB / 0.5893 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/0.6969, allocations: 201.2 kB / 0.5895 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/0.7095, allocations: 4.702 MB / 0.594 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000553/0.7101, allocations: 53.7 kB / 0.5941 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004863/0.7149, allocations: 3.692 MB / 0.5977 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/0.7166, allocations: 0.7947 MB / 0.5985 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004236/0.7209, allocations: 1.345 MB / 0.5998 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001962/0.7211, allocations: 305.1 kB / 0.6001 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006445/0.7275, allocations: 2.406 MB / 0.6024 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01052/0.738, allocations: 6.244 MB / 0.6085 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2683/1.006, allocations: 9.299 MB / 0.6176 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/1.006, allocations: 39 kB / 0.6176 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02015/1.027, allocations: 9.775 MB / 0.6272 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.027, allocations: 64.09 kB / 0.6273 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/1.027, allocations: 138.5 kB / 0.6274 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004912/1.032, allocations: 1.606 MB / 0.629 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00568/1.037, allocations: 1.485 MB / 0.6304 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/1.052, allocations: 10.25 MB / 0.6404 GB, free: 144.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005534/1.057, allocations: 356.5 kB / 0.6408 GB, free: 144.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/1.058, allocations: 394.1 kB / 0.6411 GB, free: 144.1 MB / 0.5137 GB 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.004666/1.063, allocations: 2.46 MB / 0.6435 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008443/1.064, allocations: 428.5 kB / 0.6439 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/1.072, allocations: 4.209 MB / 0.6481 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.239e-05/1.072, allocations: 28.38 kB / 0.6481 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/1.072, allocations: 11.75 kB / 0.6481 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/1.072, allocations: 8.594 kB / 0.6481 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01661/1.089, allocations: 9.647 MB / 0.6575 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.089, allocations: 2.938 kB / 0.6575 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.09, allocations: 300.7 kB / 0.6578 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003925/1.094, allocations: 1.353 MB / 0.6591 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002108/1.094, allocations: 37.7 kB / 0.6592 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009904/1.104, allocations: 9.398 MB / 0.6683 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/1.104, allocations: 3.656 kB / 0.6683 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/1.114, allocations: 6.976 MB / 0.6752 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.116, allocations: 483 kB / 0.6756 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001072/1.117, allocations: 28 kB / 0.6756 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/1.119, allocations: 111.8 kB / 0.6758 GB, free: 123 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004365/1.119, allocations: 127.4 kB / 0.6759 GB, free: 122.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/1.12, allocations: 48 kB / 0.6759 GB, free: 122.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005254/1.125, allocations: 2.961 MB / 0.6788 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/1.125, allocations: 0 / 0.6788 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007705/1.133, allocations: 1.183 MB / 0.68 GB, free: 118.7 MB / 0.5137 GB 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.0005294/1.133, allocations: 173.2 kB / 0.6801 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008227/1.141, allocations: 5.73 MB / 0.6857 GB, free: 112.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/1.141, allocations: 4 kB / 0.6857 GB, free: 112.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002734/1.144, allocations: 1.884 MB / 0.6876 GB, free: 110.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/1.148, allocations: 0.5345 MB / 0.6881 GB, free: 110.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/1.174, allocations: 11.2 MB / 0.699 GB, free: 99.12 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006671/1.18, allocations: 3.82 MB / 0.7028 GB, free: 95.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008659/1.189, allocations: 1.984 MB / 0.7047 GB, free: 93.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.191, allocations: 275.4 kB / 0.705 GB, free: 93.03 MB / 0.5137 GB Notification: Performance of SimCode: time 1.613e-06/1.191, allocations: 0 / 0.705 GB, free: 93.03 MB / 0.5137 GB Notification: Performance of Templates: time 0.1072/1.298, allocations: 42.47 MB / 0.7464 GB, free: 50.83 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.127581004053354]