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.001163/0.001163, allocations: 114.2 kB / 17.06 MB, free: 5.965 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.001448/0.001448, allocations: 198.8 kB / 18 MB, free: 5.051 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.281, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004185/0.2852, allocations: 3.033 MB / 403.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.2869, allocations: 0.9426 MB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.2871, allocations: 4 kB / 404.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.2873, allocations: 63.31 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002589/0.2876, allocations: 142.8 kB / 404.9 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.2882, allocations: 211.6 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005814/0.2888, allocations: 0.6395 MB / 405.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.289, allocations: 124.3 kB / 405.9 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000334/0.2893, allocations: 287 kB / 406.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/0.2897, allocations: 302.9 kB / 406.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-05/0.2898, allocations: 48 kB / 406.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.2899, allocations: 99.94 kB / 406.6 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.2901, allocations: 127.5 kB / 406.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.2903, allocations: 250.8 kB / 407 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006044/0.2909, allocations: 0.5968 MB / 407.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.291, allocations: 0 / 407.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.291, allocations: 0 / 407.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.291, allocations: 0 / 407.6 MB, free: 2.027 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.001412/0.2924, allocations: 0.7757 MB / 408.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2924, allocations: 12.03 kB / 408.3 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.2926, allocations: 52.28 kB / 408.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.293, allocations: 331.2 kB / 408.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.2931, allocations: 33.31 kB / 408.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.714e-05/0.2932, allocations: 48.36 kB / 408.8 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008709/0.294, allocations: 474.6 kB / 409.3 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.2941, allocations: 11.91 kB / 409.3 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.2941, allocations: 16 kB / 409.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.2941, allocations: 8 kB / 409.3 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009659/0.2951, allocations: 475.7 kB / 409.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.2971, allocations: 1.114 MB / 410.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008083/0.2979, allocations: 396.3 kB / 411.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.2985, allocations: 269.3 kB / 411.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.2985, allocations: 4.438 kB / 411.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.2985, allocations: 39 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.094e-06/0.2986, allocations: 0 / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005278/0.3038, allocations: 2.339 MB / 413.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3039, allocations: 55.97 kB / 414 MB, free: 11.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.3042, allocations: 287.3 kB / 414.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.779e-05/0.3043, allocations: 41.7 kB / 414.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.3044, allocations: 185.3 kB / 414.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.3046, allocations: 189.3 kB / 414.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.3048, allocations: 110.2 kB / 414.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.305, allocations: 346.8 kB / 415.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004865/0.3054, allocations: 245.2 kB / 415.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/0.306, allocations: 292.8 kB / 415.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008132/0.3068, allocations: 410.3 kB / 416 MB, free: 9.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3068, allocations: 0 / 416 MB, free: 9.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001668/0.3085, allocations: 0.7911 MB / 416.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3085, allocations: 4 kB / 416.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3085, allocations: 3.938 kB / 416.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009432/0.3095, allocations: 0.5129 MB / 417.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.3098, allocations: 87.89 kB / 417.4 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.3112, allocations: 1.394 MB / 418.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.3117, allocations: 80.02 kB / 418.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.3118, allocations: 20 kB / 418.9 MB, free: 6.238 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.000247/0.312, allocations: 178.1 kB / 419.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.959e-05/0.3121, allocations: 39.53 kB / 419.1 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.3123, allocations: 59.73 kB / 419.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3123, allocations: 4 kB / 419.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3123, allocations: 0 / 419.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3123, allocations: 4 kB / 419.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.3152, allocations: 1.444 MB / 420.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.3152, allocations: 3.938 kB / 420.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.3156, allocations: 83.89 kB / 420.7 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007614/0.3163, allocations: 489.5 kB / 421.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.3164, allocations: 15.98 kB / 421.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.3176, allocations: 1.386 MB / 422.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3177, allocations: 4.031 kB / 422.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.3197, allocations: 1.093 MB / 423.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.32, allocations: 164.6 kB / 423.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3201, allocations: 23.94 kB / 423.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.3205, allocations: 59.92 kB / 423.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.3207, allocations: 92.3 kB / 424 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.3208, allocations: 23.97 kB / 424 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.321, allocations: 205.9 kB / 424.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.321, allocations: 96 / 424.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005256/0.3216, allocations: 135.9 kB / 424.4 MB, free: 0.5625 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.0003022/0.3219, allocations: 151 kB / 424.5 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.3232, allocations: 0.5966 MB / 425.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3232, allocations: 0 / 425.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.3239, allocations: 342.6 kB / 425.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.3245, allocations: 79.14 kB / 425.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.3282, allocations: 1.436 MB / 427 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3286, allocations: 0.8202 MB / 427.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.3287, allocations: 39.27 kB / 427.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.3288, allocations: 39.42 kB / 427.9 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3289, allocations: 0 / 427.9 MB, free: 13 MB / 350.1 MB Notification: Performance of Templates: time 0.01621/0.3451, allocations: 10.03 MB / 437.9 MB, free: 3.012 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