Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001863/0.001863, allocations: 107 kB / 21.18 MB, free: 0.6484 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.00185/0.00185, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.855/1.855, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3663, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.006608/0.3729, allocations: 2.973 MB / 435.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.3756, allocations: 1.068 MB / 436.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.3758, allocations: 11.94 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003893/0.3762, allocations: 87.22 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000574/0.3768, allocations: 186.7 kB / 436.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.3774, allocations: 219.5 kB / 436.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008779/0.3782, allocations: 0.6629 MB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.3785, allocations: 101 kB / 437.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000562/0.3791, allocations: 315 kB / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005132/0.3796, allocations: 318.9 kB / 438.2 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.3797, allocations: 52 kB / 438.3 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.38, allocations: 108 kB / 438.4 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.3802, allocations: 143.5 kB / 438.5 MB, free: 488 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.3804, allocations: 223 kB / 438.8 MB, free: 264 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009453/0.3814, allocations: 0.6527 MB / 439.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3814, allocations: 4 kB / 439.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.3814, allocations: 0 / 439.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3814, allocations: 0 / 439.4 MB, free: 15.6 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002023/0.3834, allocations: 0.7698 MB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.3835, allocations: 8.031 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.3838, allocations: 72.55 kB / 440.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007388/0.3846, allocations: 286.2 kB / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.3846, allocations: 33.38 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3847, allocations: 52.27 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.386, allocations: 470.6 kB / 441.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.383e-05/0.386, allocations: 11.95 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.3861, allocations: 16 kB / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3861, allocations: 8 kB / 441.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3874, allocations: 467.6 kB / 441.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.3901, allocations: 0.9277 MB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.3914, allocations: 403.3 kB / 442.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000777/0.3922, allocations: 242.2 kB / 443.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.3922, allocations: 8.5 kB / 443.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.3923, allocations: 47 kB / 443.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 3.096e-06/0.3923, allocations: 0 / 443.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007017/0.3993, allocations: 2.002 MB / 445.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.3994, allocations: 67.83 kB / 445.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.3998, allocations: 280.2 kB / 445.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-05/0.3999, allocations: 41.7 kB / 445.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.4001, allocations: 193.6 kB / 445.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.4004, allocations: 222.1 kB / 446 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002533/0.4006, allocations: 110.3 kB / 446.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.4008, allocations: 350.8 kB / 446.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006586/0.4015, allocations: 225.2 kB / 446.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007155/0.4022, allocations: 280.8 kB / 446.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.4033, allocations: 398.1 kB / 447.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.4033, allocations: 0 / 447.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.002295/0.4056, allocations: 0.7406 MB / 448.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.4056, allocations: 4 kB / 448.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.4056, allocations: 0 / 448.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.4069, allocations: 381.4 kB / 448.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004726/0.4074, allocations: 87.83 kB / 448.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.4093, allocations: 1.401 MB / 449.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007362/0.41, allocations: 75.94 kB / 450 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/0.4101, allocations: 19.98 kB / 450 MB, free: 4.703 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003771/0.4105, allocations: 170.5 kB / 450.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.4107, allocations: 47.66 kB / 450.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001775/0.4108, allocations: 63.62 kB / 450.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.4108, allocations: 8 kB / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.4109, allocations: 0 / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.4109, allocations: 3.984 kB / 450.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.4145, allocations: 1.263 MB / 451.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.4145, allocations: 4 kB / 451.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005537/0.415, allocations: 83.89 kB / 451.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.4162, allocations: 353.5 kB / 452 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.423e-05/0.4163, allocations: 19.97 kB / 452 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.4181, allocations: 1.358 MB / 453.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4181, allocations: 3.938 kB / 453.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.4208, allocations: 1.049 MB / 454.4 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.4211, allocations: 91.67 kB / 454.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.4213, allocations: 20 kB / 454.5 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.4219, allocations: 59.92 kB / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002972/0.4222, allocations: 108.2 kB / 454.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.418e-05/0.4222, allocations: 23.98 kB / 454.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003079/0.4225, allocations: 211 kB / 454.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4225, allocations: 0 / 454.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006851/0.4232, allocations: 124 kB / 455 MB, free: 15.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001701/0.4249, allocations: 417.2 kB / 455.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.4267, allocations: 0.5381 MB / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4267, allocations: 0 / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.4277, allocations: 334.9 kB / 456.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/0.4286, allocations: 100 kB / 456.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005204/0.4338, allocations: 1.476 MB / 457.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.4341, allocations: 233.2 kB / 458.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000286/0.4344, allocations: 39.3 kB / 458.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.4346, allocations: 39.42 kB / 458.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4346, allocations: 0 / 458.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.02172/0.4563, allocations: 9.275 MB / 467.5 MB, free: 3.242 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.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.334962392997113]