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.001602/0.001602, allocations: 108.3 kB / 17.7 MB, free: 5.496 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.001939/0.001939, allocations: 183.8 kB / 18.62 MB, free: 4.578 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.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 39.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2715, allocations: 49.43 MB / 401.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004315/0.2758, allocations: 3.032 MB / 404.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.2778, allocations: 0.9348 MB / 405.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.2781, allocations: 7.938 kB / 405.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002729/0.2784, allocations: 67.31 kB / 405.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.2787, allocations: 130.9 kB / 405.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.2792, allocations: 223.5 kB / 405.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005655/0.2798, allocations: 0.6318 MB / 406.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.2801, allocations: 128.2 kB / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.2804, allocations: 275.1 kB / 406.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.2808, allocations: 306.8 kB / 407 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.928e-05/0.2809, allocations: 48 kB / 407.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.281, allocations: 99.94 kB / 407.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.2812, allocations: 123.6 kB / 407.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.2814, allocations: 254.8 kB / 407.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005705/0.282, allocations: 0.5929 MB / 408.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.282, allocations: 4 kB / 408.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.282, allocations: 0 / 408.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.282, allocations: 0 / 408.2 MB, free: 2.055 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.001365/0.2834, allocations: 0.7718 MB / 408.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2834, allocations: 15.97 kB / 408.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.2836, allocations: 56.28 kB / 409 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004305/0.284, allocations: 335.2 kB / 409.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.284, allocations: 29.38 kB / 409.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-05/0.2841, allocations: 44.38 kB / 409.4 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007879/0.2849, allocations: 474.6 kB / 409.9 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.285, allocations: 11.89 kB / 409.9 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.665e-05/0.285, allocations: 16 kB / 409.9 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.285, allocations: 8 kB / 409.9 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.2859, allocations: 483.8 kB / 410.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.2879, allocations: 1.114 MB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.2887, allocations: 393.8 kB / 411.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005009/0.2892, allocations: 274 kB / 412.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.2892, allocations: 4.438 kB / 412.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.2893, allocations: 39 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.014e-06/0.2893, allocations: 0 / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.00499/0.2943, allocations: 2.342 MB / 414.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.2943, allocations: 55.97 kB / 414.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.2946, allocations: 283.3 kB / 414.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.2947, allocations: 45.64 kB / 414.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2948, allocations: 185.3 kB / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.295, allocations: 189.3 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.2952, allocations: 114.2 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2953, allocations: 346.8 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004468/0.2958, allocations: 241.2 kB / 415.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.2963, allocations: 288.8 kB / 416.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007261/0.297, allocations: 414.4 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.297, allocations: 0 / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001591/0.2986, allocations: 0.7911 MB / 417.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.2986, allocations: 4 kB / 417.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2987, allocations: 0 / 417.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008654/0.2995, allocations: 0.4973 MB / 417.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.2999, allocations: 91.83 kB / 418 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.3011, allocations: 1.409 MB / 419.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004966/0.3017, allocations: 76.02 kB / 419.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.3017, allocations: 20 kB / 419.5 MB, free: 6.254 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.0002399/0.302, allocations: 174.1 kB / 419.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.302, allocations: 43.52 kB / 419.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.3022, allocations: 55.75 kB / 419.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3022, allocations: 7.984 kB / 419.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3022, allocations: 4 kB / 419.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3022, allocations: 4 kB / 419.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.305, allocations: 1.437 MB / 421.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.305, allocations: 3.938 kB / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.3053, allocations: 88.05 kB / 421.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007439/0.3061, allocations: 481.3 kB / 421.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.648e-05/0.3062, allocations: 15.98 kB / 421.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.3073, allocations: 1.378 MB / 423.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3073, allocations: 7.969 kB / 423.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.3093, allocations: 1.093 MB / 424.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.3095, allocations: 164.6 kB / 424.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.101e-05/0.3096, allocations: 23.94 kB / 424.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.31, allocations: 63.91 kB / 424.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.3102, allocations: 96.23 kB / 424.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.3103, allocations: 24.09 kB / 424.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.3105, allocations: 202 kB / 424.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3105, allocations: 4 kB / 424.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.311, allocations: 136 kB / 425 MB, free: 0.582 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.0002485/0.3112, allocations: 146.1 kB / 425.1 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.3125, allocations: 0.5967 MB / 425.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3125, allocations: 0 / 425.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006466/0.3131, allocations: 338.1 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.3137, allocations: 89.11 kB / 426.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003591/0.3173, allocations: 1.463 MB / 427.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3177, allocations: 0.8163 MB / 428.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.3178, allocations: 39.44 kB / 428.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3179, allocations: 4 kB / 428.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Templates: time 0.01072/0.3286, allocations: 8.529 MB / 437 MB, free: 4.496 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