Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 109.8 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 39.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2703, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.0043/0.2746, allocations: 3.03 MB / 403.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.2766, allocations: 0.9348 MB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/0.2769, allocations: 11.94 kB / 404.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002369/0.2772, allocations: 63.31 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.2775, allocations: 138.9 kB / 404.9 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005667/0.2781, allocations: 223.6 kB / 405.1 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005541/0.2786, allocations: 0.6279 MB / 405.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.2789, allocations: 132.2 kB / 405.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.2792, allocations: 283.1 kB / 406.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000364/0.2796, allocations: 302.8 kB / 406.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.2797, allocations: 48 kB / 406.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.2799, allocations: 95.95 kB / 406.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2801, allocations: 135.5 kB / 406.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.2804, allocations: 246.8 kB / 407 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007371/0.2811, allocations: 0.6007 MB / 407.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2811, allocations: 0 / 407.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2812, allocations: 0 / 407.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2812, allocations: 0 / 407.6 MB, free: 2.016 MB / 318.1 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.001462/0.2826, allocations: 0.7796 MB / 408.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.634e-05/0.2827, allocations: 8.031 kB / 408.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.2828, allocations: 52.28 kB / 408.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000531/0.2834, allocations: 331.2 kB / 408.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.847e-05/0.2834, allocations: 33.38 kB / 408.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.183e-05/0.2835, allocations: 36.38 kB / 408.8 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000842/0.2844, allocations: 486.5 kB / 409.3 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.2844, allocations: 3.906 kB / 409.3 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.2845, allocations: 16 kB / 409.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2845, allocations: 8 kB / 409.3 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009036/0.2854, allocations: 483.7 kB / 409.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.2874, allocations: 1.114 MB / 410.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007754/0.2882, allocations: 389.7 kB / 411.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004768/0.2887, allocations: 272.7 kB / 411.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.796e-05/0.2887, allocations: 8.438 kB / 411.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.2887, allocations: 38.98 kB / 411.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.063e-06/0.2888, allocations: 0 / 411.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004703/0.2935, allocations: 2.342 MB / 413.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.2935, allocations: 59.97 kB / 414 MB, free: 11.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.2938, allocations: 283.3 kB / 414.2 MB, free: 11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.2939, allocations: 45.64 kB / 414.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.294, allocations: 185.3 kB / 414.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.2941, allocations: 189.3 kB / 414.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.2943, allocations: 114.2 kB / 414.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2944, allocations: 346.8 kB / 415.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004534/0.2949, allocations: 237.2 kB / 415.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004812/0.2954, allocations: 296.8 kB / 415.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007119/0.2961, allocations: 410.4 kB / 416 MB, free: 9.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2961, allocations: 0 / 416 MB, free: 9.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001565/0.2977, allocations: 0.7872 MB / 416.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2977, allocations: 8 kB / 416.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.2977, allocations: 0 / 416.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008681/0.2986, allocations: 0.5012 MB / 417.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.299, allocations: 87.83 kB / 417.4 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.3002, allocations: 1.405 MB / 418.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.3007, allocations: 76.06 kB / 418.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.3007, allocations: 23.98 kB / 418.9 MB, free: 6.223 MB / 334.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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002248/0.301, allocations: 174.1 kB / 419.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.458e-05/0.3011, allocations: 39.53 kB / 419.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.3012, allocations: 59.73 kB / 419.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3012, allocations: 8 kB / 419.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.3012, allocations: 0 / 419.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.3012, allocations: 3.984 kB / 419.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.3039, allocations: 1.441 MB / 420.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3039, allocations: 7.938 kB / 420.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.3042, allocations: 83.89 kB / 420.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007738/0.305, allocations: 473.4 kB / 421.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.3051, allocations: 23.97 kB / 421.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.3063, allocations: 1.378 MB / 422.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3063, allocations: 3.938 kB / 422.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.3083, allocations: 1.105 MB / 423.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3085, allocations: 160.6 kB / 423.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.476e-05/0.3087, allocations: 27.92 kB / 423.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.309, allocations: 52.06 kB / 423.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.3092, allocations: 96.22 kB / 424 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.3093, allocations: 31.98 kB / 424.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.3095, allocations: 201.9 kB / 424.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3095, allocations: 0 / 424.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004571/0.31, allocations: 136 kB / 424.4 MB, free: 0.5508 MB / 334.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000216/0.3102, allocations: 143 kB / 424.5 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3115, allocations: 0.5967 MB / 425.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3115, allocations: 3.938 kB / 425.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007066/0.3122, allocations: 342.1 kB / 425.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.3128, allocations: 89.08 kB / 425.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.3162, allocations: 1.421 MB / 427 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.3166, allocations: 0.8241 MB / 427.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3168, allocations: 39.28 kB / 427.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3169, allocations: 35.42 kB / 427.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3169, allocations: 0 / 427.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of Templates: time 0.01536/0.3323, allocations: 10.03 MB / 437.9 MB, free: 3.008 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches