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.0008439/0.0008439, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.00371/0.00371, allocations: 157.8 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8214/0.8214, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 2.454e-06/2.454e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.835e-05, allocations: 5.516 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009058/0.009096, allocations: 11.77 MB / 337.6 MB, free: 3.637 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006196/0.01529, allocations: 4.381 MB / 342 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009115/0.0162, allocations: 111.4 kB / 342.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003456/0.01966, allocations: 4.275 MB / 346.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002763/0.02242, allocations: 2.263 MB / 348.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.02348, allocations: 1.018 MB / 349.6 MB, free: 7.547 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004173/0.02765, allocations: 6.879 MB / 356.5 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002938/0.03059, allocations: 4.526 MB / 361 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.03324, allocations: 3.232 MB / 364.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002234/0.03548, allocations: 3.024 MB / 367.3 MB, free: 5.793 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004189/0.0359, allocations: 484 kB / 367.8 MB, free: 5.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001269/0.03716, allocations: 1.299 MB / 369.1 MB, free: 4.02 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.03861, allocations: 2.684 MB / 371.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.03975, allocations: 1.71 MB / 373.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006214/0.04596, allocations: 9.187 MB / 382.7 MB, free: 6.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.04597, allocations: 4 kB / 382.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.04597, allocations: 0 / 382.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001628/0.04613, allocations: 0 / 382.7 MB, free: 6.395 MB / 346.7 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.007848/0.05398, allocations: 6.21 MB / 388.9 MB, free: 124 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.05402, allocations: 12.03 kB / 388.9 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005717/0.05974, allocations: 2.699 MB / 391.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004396/0.06413, allocations: 3.718 MB / 395.3 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.06426, allocations: 304.1 kB / 395.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.06478, allocations: 429.6 kB / 396 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.07569, allocations: 11.61 MB / 407.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.612e-05/0.07578, allocations: 59.52 kB / 407.7 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003258/0.07611, allocations: 187.9 kB / 407.9 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/0.07789, allocations: 2.034 MB / 409.9 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01203/0.08992, allocations: 9.924 MB / 419.8 MB, free: 340 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2145/0.3044, allocations: 41.86 MB / 461.7 MB, free: 84.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005957/0.3103, allocations: 3.912 MB / 465.6 MB, free: 84.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.3121, allocations: 2.298 MB / 467.9 MB, free: 84.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007967/0.3201, allocations: 9.069 MB / 477 MB, free: 80.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.3201, allocations: 46.44 kB / 477 MB, free: 80.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=171): time 3.877e-06/0.3201, allocations: 3.531 kB / 477 MB, free: 80.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=197): time 0.02704/0.3472, allocations: 20.7 MB / 497.7 MB, free: 61.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.3472, allocations: 205.2 kB / 497.9 MB, free: 61.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003528/0.3508, allocations: 4.605 MB / 0.4907 GB, free: 56.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.3509, allocations: 49.7 kB / 0.4908 GB, free: 56.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009657/0.3518, allocations: 3.692 MB / 0.4944 GB, free: 53.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.3523, allocations: 0.7824 MB / 0.4951 GB, free: 52.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009159/0.3532, allocations: 1.318 MB / 0.4964 GB, free: 50.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.575e-05/0.3532, allocations: 311.2 kB / 0.4967 GB, free: 50.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.3551, allocations: 2.406 MB / 0.4991 GB, free: 48.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.3577, allocations: 6.295 MB / 0.5052 GB, free: 40.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005322/0.363, allocations: 9.293 MB / 0.5143 GB, free: 29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-05/0.363, allocations: 40 kB / 0.5143 GB, free: 28.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.00869/0.3717, allocations: 9.735 MB / 0.5238 GB, free: 19.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.3718, allocations: 64 kB / 0.5239 GB, free: 19.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.567e-05/0.3719, allocations: 134.7 kB / 0.524 GB, free: 19.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.374, allocations: 1.616 MB / 0.5256 GB, free: 17.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.3761, allocations: 1.474 MB / 0.5271 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006582/0.3827, allocations: 9.942 MB / 0.5368 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/0.3853, allocations: 419.4 kB / 0.5372 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002677/0.3856, allocations: 396 kB / 0.5375 GB, free: 4.984 MB / 410.7 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.002284/0.3879, allocations: 2.452 MB / 0.5399 GB, free: 2.523 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/0.3882, allocations: 393.4 kB / 0.5403 GB, free: 2.137 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004252/0.3925, allocations: 4.177 MB / 0.5444 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.811e-05/0.3925, allocations: 20 kB / 0.5444 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3925, allocations: 12.41 kB / 0.5444 GB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.3925, allocations: 7.969 kB / 0.5444 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009925/0.4024, allocations: 8.463 MB / 0.5527 GB, free: 5.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.4024, allocations: 4 kB / 0.5527 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007004/0.4031, allocations: 299.5 kB / 0.553 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002336/0.4055, allocations: 1.366 MB / 0.5543 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.4056, allocations: 32 kB / 0.5543 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007557/0.4131, allocations: 9.148 MB / 0.5633 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4132, allocations: 3.938 kB / 0.5633 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007022/0.4202, allocations: 6.923 MB / 0.57 GB, free: 3.418 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008059/0.421, allocations: 397.3 kB / 0.5704 GB, free: 3.027 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002606/0.4212, allocations: 32 kB / 0.5705 GB, free: 2.996 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009181/0.4222, allocations: 175.1 kB / 0.5706 GB, free: 2.828 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.4224, allocations: 129 kB / 0.5707 GB, free: 2.703 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.535e-05/0.4225, allocations: 63.75 kB / 0.5708 GB, free: 2.645 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002763/0.4252, allocations: 2.741 MB / 0.5735 GB, free: 15.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4252, allocations: 0 / 0.5735 GB, free: 15.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003477/0.4287, allocations: 1.336 MB / 0.5748 GB, free: 14.56 MB / 458.7 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.0003768/0.4291, allocations: 181.8 kB / 0.575 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005831/0.4349, allocations: 5.731 MB / 0.5806 GB, free: 8.648 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4349, allocations: 0 / 0.5806 GB, free: 8.648 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.4368, allocations: 1.886 MB / 0.5824 GB, free: 6.734 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.4383, allocations: 485.1 kB / 0.5829 GB, free: 6.273 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.4507, allocations: 11.67 MB / 0.5943 GB, free: 10.55 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002765/0.4534, allocations: 3.272 MB / 0.5975 GB, free: 7.234 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/0.4542, allocations: 308.4 kB / 0.5977 GB, free: 6.934 MB / 474.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4542, allocations: 0 / 0.5977 GB, free: 6.934 MB / 474.7 MB Notification: Performance of Templates: time 0.2266/0.6808, allocations: 113.9 MB / 0.7089 GB, free: 92.05 MB / 490.7 MB " [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: 9.101648735813797]