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.002408/0.002408, allocations: 111 kB / 21.19 MB, free: 0.6758 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.002505/0.002505, allocations: 215.5 kB / 24.48 MB, free: 3.98 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.583/1.583, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.001692/0.001692, allocations: 43.88 kB / 379 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3672, allocations: 53.37 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01509/0.3822, allocations: 11.74 MB / 444.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.3944, allocations: 4.361 MB / 448.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003734/0.3982, allocations: 115.4 kB / 448.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008782/0.4069, allocations: 4.062 MB / 452.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006503/0.4134, allocations: 2.202 MB / 454.8 MB, free: 200 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.4161, allocations: 0.9321 MB / 455.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.4263, allocations: 6.128 MB / 461.9 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00699/0.4333, allocations: 4.025 MB / 465.9 MB, free: 5.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004971/0.4383, allocations: 2.165 MB / 468.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005736/0.444, allocations: 3.003 MB / 471.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00206/0.4461, allocations: 472 kB / 471.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003929/0.45, allocations: 1.256 MB / 472.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003961/0.4539, allocations: 2.559 MB / 475.3 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00477/0.4587, allocations: 2.136 MB / 477.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01403/0.4727, allocations: 9.091 MB / 486.6 MB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.4728, allocations: 0 / 486.6 MB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4728, allocations: 4 kB / 486.6 MB, free: 292 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004208/0.4732, allocations: 0 / 486.6 MB, free: 292 kB / 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.02116/0.4943, allocations: 6.159 MB / 492.7 MB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.4944, allocations: 12.03 kB / 492.7 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01344/0.5078, allocations: 2.618 MB / 495.4 MB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.5202, allocations: 3.742 MB / 499.1 MB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003812/0.5205, allocations: 308.1 kB / 499.4 MB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002065/0.5226, allocations: 423.9 kB / 499.8 MB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03818/0.5608, allocations: 11.6 MB / 0.4994 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003445/0.5611, allocations: 51.58 kB / 0.4995 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/0.5627, allocations: 191.9 kB / 0.4997 GB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006997/0.5697, allocations: 2.026 MB / 0.5016 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05088/0.6206, allocations: 9.904 MB / 0.5113 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4935/1.114, allocations: 41.52 MB / 0.5519 GB, free: 71.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01788/1.132, allocations: 3.77 MB / 0.5555 GB, free: 71.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004364/1.136, allocations: 2.295 MB / 0.5578 GB, free: 70.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02212/1.158, allocations: 8.756 MB / 0.5663 GB, free: 66.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/1.158, allocations: 50.84 kB / 0.5664 GB, free: 66.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 6.322e-06/1.158, allocations: 0 / 0.5664 GB, free: 66.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.06493/1.223, allocations: 20.01 MB / 0.5859 GB, free: 49.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.156e-05/1.223, allocations: 201.2 kB / 0.5861 GB, free: 49.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007501/1.231, allocations: 4.437 MB / 0.5904 GB, free: 45.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004376/1.231, allocations: 53.7 kB / 0.5905 GB, free: 45.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001886/1.233, allocations: 3.716 MB / 0.5941 GB, free: 41.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008006/1.234, allocations: 0.8015 MB / 0.5949 GB, free: 40.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001789/1.236, allocations: 1.338 MB / 0.5962 GB, free: 39.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.987e-05/1.236, allocations: 305.1 kB / 0.5965 GB, free: 39.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004369/1.24, allocations: 2.41 MB / 0.5989 GB, free: 36.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0065/1.247, allocations: 6.296 MB / 0.605 GB, free: 28.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/1.26, allocations: 9.299 MB / 0.6141 GB, free: 17.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/1.26, allocations: 40 kB / 0.6141 GB, free: 17.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.0487/1.309, allocations: 9.732 MB / 0.6236 GB, free: 7.625 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/1.309, allocations: 60 kB / 0.6237 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/1.309, allocations: 144.1 kB / 0.6238 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01783/1.327, allocations: 1.608 MB / 0.6254 GB, free: 5.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006589/1.333, allocations: 1.482 MB / 0.6268 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01798/1.351, allocations: 9.894 MB / 0.6365 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007806/1.359, allocations: 367.6 kB / 0.6368 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001406/1.36, allocations: 391.3 kB / 0.6372 GB, free: 9.492 MB / 462.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.006563/1.367, allocations: 2.458 MB / 0.6396 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/1.368, allocations: 389.9 kB / 0.64 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01527/1.384, allocations: 4.181 MB / 0.6441 GB, free: 2.434 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.026e-05/1.384, allocations: 27.98 kB / 0.6441 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.096e-05/1.384, allocations: 4 kB / 0.6441 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-05/1.384, allocations: 15.91 kB / 0.6441 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03219/1.416, allocations: 8.31 MB / 0.6522 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.772e-05/1.416, allocations: 0 / 0.6522 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/1.419, allocations: 299.6 kB / 0.6525 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0084/1.428, allocations: 1.361 MB / 0.6539 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005021/1.428, allocations: 32 kB / 0.6539 GB, free: 8.375 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/1.448, allocations: 9.045 MB / 0.6627 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.448, allocations: 64 / 0.6627 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01828/1.467, allocations: 6.939 MB / 0.6695 GB, free: 8.168 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/1.468, allocations: 353.2 kB / 0.6698 GB, free: 7.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007447/1.469, allocations: 32 kB / 0.6699 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002348/1.471, allocations: 111.8 kB / 0.67 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005798/1.472, allocations: 125.1 kB / 0.6701 GB, free: 7.559 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002371/1.472, allocations: 59.42 kB / 0.6701 GB, free: 7.504 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006886/1.479, allocations: 2.608 MB / 0.6727 GB, free: 4.887 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.479, allocations: 0 / 0.6727 GB, free: 4.887 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009712/1.489, allocations: 1.172 MB / 0.6738 GB, free: 3.715 MB / 494.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.0006814/1.489, allocations: 170.5 kB / 0.674 GB, free: 3.543 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0168/1.506, allocations: 5.742 MB / 0.6796 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/1.506, allocations: 8.188 kB / 0.6796 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005942/1.512, allocations: 1.862 MB / 0.6814 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005456/1.518, allocations: 489.1 kB / 0.6819 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03413/1.552, allocations: 11.27 MB / 0.6929 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007187/1.559, allocations: 3.293 MB / 0.6961 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007095/1.566, allocations: 1.942 MB / 0.698 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/1.567, allocations: 243.4 kB / 0.6982 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of SimCode: time 1.383e-06/1.567, allocations: 0 / 0.6982 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of Templates: time 0.4506/2.018, allocations: 46.09 MB / 0.7433 GB, free: 191.8 MB / 0.545 GB " [Timeout remaining time 658] 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/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: 10.040902282009483]