Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 181.6 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008808/0.0008808, allocations: 95.28 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 12 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2598, allocations: 47.57 MB / 375.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09712/0.357, allocations: 80.5 MB / 456.3 MB, free: 168 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.3572, allocations: 75.97 kB / 456.4 MB, free: 92 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02147/0.3787, allocations: 7.748 MB / 464.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3788, allocations: 0 / 464.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.3788, allocations: 8 kB / 464.1 MB, free: 8.312 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00146/0.3803, allocations: 0.7253 MB / 464.9 MB, free: 7.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.3803, allocations: 12.03 kB / 464.9 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.3805, allocations: 47.44 kB / 464.9 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.3809, allocations: 314.1 kB / 465.2 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.381, allocations: 36.95 kB / 465.3 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-05/0.381, allocations: 36 kB / 465.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008148/0.3819, allocations: 458.3 kB / 465.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3819, allocations: 3.906 kB / 465.8 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.015e-05/0.382, allocations: 16 kB / 465.8 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.382, allocations: 11.94 kB / 465.8 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008586/0.3828, allocations: 451.7 kB / 466.2 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.385, allocations: 1.145 MB / 467.4 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007863/0.3858, allocations: 397.5 kB / 467.8 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.3859, allocations: 12.42 kB / 467.8 MB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.3859, allocations: 35 kB / 467.8 MB, free: 4.484 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.3859, allocations: 0 / 467.8 MB, free: 4.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004757/0.3907, allocations: 2.358 MB / 470.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.3907, allocations: 55.97 kB / 470.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.391, allocations: 234.2 kB / 470.4 MB, free: 1.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.391, allocations: 41.69 kB / 470.5 MB, free: 1.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3911, allocations: 177.4 kB / 470.7 MB, free: 1.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.3913, allocations: 209.1 kB / 470.9 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.3913, allocations: 12 kB / 470.9 MB, free: 1.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3914, allocations: 350.8 kB / 471.2 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/0.3919, allocations: 225.2 kB / 471.4 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.3923, allocations: 272.7 kB / 471.7 MB, free: 416 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.3927, allocations: 187.2 kB / 471.9 MB, free: 232 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3927, allocations: 4 kB / 471.9 MB, free: 228 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00151/0.3942, allocations: 0.7288 MB / 472.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3942, allocations: 4 kB / 472.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.3943, allocations: 3.984 kB / 472.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007317/0.395, allocations: 405.4 kB / 473 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.3953, allocations: 91.83 kB / 473.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.3965, allocations: 1.323 MB / 474.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/0.397, allocations: 100 kB / 474.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/0.3971, allocations: 31.94 kB / 474.6 MB, free: 13.48 MB / 362.7 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.3973, allocations: 169.6 kB / 474.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.624e-05/0.3974, allocations: 39.53 kB / 474.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.3989, allocations: 0.7405 MB / 475.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.3989, allocations: 4 kB / 475.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3989, allocations: 4 kB / 475.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.399, allocations: 3.984 kB / 475.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.4014, allocations: 1.395 MB / 476.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.4014, allocations: 0 / 476.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003626/0.4018, allocations: 87.89 kB / 477 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006478/0.4024, allocations: 385.5 kB / 477.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.4025, allocations: 23.97 kB / 477.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009997/0.4035, allocations: 1.304 MB / 478.7 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4035, allocations: 320 / 478.7 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.4054, allocations: 1.085 MB / 479.8 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.4056, allocations: 168.6 kB / 480 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.4057, allocations: 24 kB / 480 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.4062, allocations: 79.92 kB / 480.1 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.4064, allocations: 116.1 kB / 480.2 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.4064, allocations: 19.98 kB / 480.2 MB, free: 7.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001717/0.4066, allocations: 197.9 kB / 480.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4066, allocations: 0 / 480.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000487/0.4071, allocations: 132 kB / 480.5 MB, free: 7.277 MB / 362.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000223/0.4073, allocations: 143.7 kB / 480.7 MB, free: 7.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.4085, allocations: 0.6194 MB / 481.3 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4085, allocations: 0 / 481.3 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.4092, allocations: 330.2 kB / 481.6 MB, free: 6.168 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/0.4096, allocations: 75.05 kB / 481.7 MB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.4133, allocations: 1.757 MB / 483.4 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.4136, allocations: 0.8287 MB / 484.3 MB, free: 3.438 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.4138, allocations: 39.27 kB / 484.3 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.4139, allocations: 27.44 kB / 484.3 MB, free: 3.375 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4139, allocations: 4 kB / 484.3 MB, free: 3.371 MB / 362.7 MB Notification: Performance of Templates: time 0.01283/0.4267, allocations: 8.432 MB / 492.8 MB, free: 10.95 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches