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.001675/0.001676, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.002066/0.002066, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.382/1.382, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001139, allocations: 43.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2875, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004841/0.2924, allocations: 3.035 MB / 404.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.2945, allocations: 0.9232 MB / 405.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.2947, allocations: 7.938 kB / 405.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.2951, allocations: 67.36 kB / 405.4 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.2954, allocations: 130.8 kB / 405.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006198/0.296, allocations: 227.5 kB / 405.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006676/0.2967, allocations: 0.6317 MB / 406.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.2969, allocations: 132.2 kB / 406.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.2973, allocations: 279.1 kB / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003865/0.2977, allocations: 302.9 kB / 407.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.782e-05/0.2978, allocations: 48 kB / 407.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.298, allocations: 99.89 kB / 407.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.2982, allocations: 127.6 kB / 407.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.2984, allocations: 246.8 kB / 407.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006904/0.2991, allocations: 0.6006 MB / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2992, allocations: 0 / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2992, allocations: 0 / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.2992, allocations: 0 / 408.2 MB, free: 2.004 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.001438/0.3006, allocations: 0.7719 MB / 409 MB, free: 1.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3007, allocations: 12.03 kB / 409 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.3008, allocations: 52.28 kB / 409.1 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005004/0.3013, allocations: 339.2 kB / 409.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.3013, allocations: 33.31 kB / 409.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.823e-05/0.3014, allocations: 40.38 kB / 409.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009021/0.3023, allocations: 478.6 kB / 409.9 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.3024, allocations: 3.906 kB / 409.9 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.3024, allocations: 19.98 kB / 410 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.3025, allocations: 12 kB / 410 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009163/0.3034, allocations: 483.6 kB / 410.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3054, allocations: 1.114 MB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.3063, allocations: 381.9 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005191/0.3068, allocations: 274 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.3069, allocations: 8.438 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.3069, allocations: 42.94 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.284e-06/0.3069, allocations: 0 / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005153/0.3121, allocations: 2.339 MB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.3122, allocations: 55.97 kB / 414.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.3125, allocations: 279.4 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.798e-05/0.3126, allocations: 49.69 kB / 415 MB, free: 10.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.3127, allocations: 181.3 kB / 415.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.3129, allocations: 193.3 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.3131, allocations: 114.2 kB / 415.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3133, allocations: 346.8 kB / 415.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.3137, allocations: 237.2 kB / 416 MB, free: 9.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005074/0.3143, allocations: 296.7 kB / 416.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007795/0.315, allocations: 418.4 kB / 416.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3151, allocations: 0 / 416.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001617/0.3167, allocations: 0.7833 MB / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3167, allocations: 4 kB / 417.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3167, allocations: 4 kB / 417.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008745/0.3176, allocations: 0.4973 MB / 418 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.318, allocations: 87.89 kB / 418.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.3193, allocations: 1.413 MB / 419.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000538/0.3199, allocations: 76.06 kB / 419.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.3199, allocations: 16 kB / 419.6 MB, free: 6.211 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.0002804/0.3202, allocations: 174.2 kB / 419.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.647e-05/0.3203, allocations: 39.53 kB / 419.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.3204, allocations: 59.73 kB / 419.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.3205, allocations: 8 kB / 419.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.3205, allocations: 4 kB / 419.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3205, allocations: 7.984 kB / 419.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.3234, allocations: 1.44 MB / 421.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.3234, allocations: 7.938 kB / 421.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.3238, allocations: 88.05 kB / 421.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007655/0.3245, allocations: 473.4 kB / 421.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/0.3246, allocations: 23.97 kB / 421.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.3258, allocations: 1.374 MB / 423.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3258, allocations: 3.938 kB / 423.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.3279, allocations: 1.101 MB / 424.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.3282, allocations: 160.6 kB / 424.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.479e-05/0.3283, allocations: 27.92 kB / 424.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.3287, allocations: 55.94 kB / 424.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.3289, allocations: 96.28 kB / 424.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.3289, allocations: 19.98 kB / 424.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.3292, allocations: 205.9 kB / 424.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.3292, allocations: 0 / 424.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.3297, allocations: 143.9 kB / 425.1 MB, free: 0.5312 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.0002839/0.33, allocations: 150.3 kB / 425.2 MB, free: 384 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3312, allocations: 0.5889 MB / 425.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3313, allocations: 4.156 kB / 425.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006781/0.332, allocations: 350.1 kB / 426.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.3326, allocations: 68.91 kB / 426.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/0.3363, allocations: 1.458 MB / 427.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.3367, allocations: 0.8202 MB / 428.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.3368, allocations: 43.36 kB / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3369, allocations: 0 / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of Templates: time 0.01143/0.3483, allocations: 8.576 MB / 437.1 MB, free: 4.41 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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