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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 106.2 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009228/0.0009232, allocations: 39.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2337, allocations: 49.43 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003249/0.237, allocations: 3.073 MB / 402.5 MB, free: 30.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2383, allocations: 0.926 MB / 403.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.2385, allocations: 11.94 kB / 403.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.2387, allocations: 51.62 kB / 403.5 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.2389, allocations: 107.1 kB / 403.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003707/0.2393, allocations: 187.7 kB / 403.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.2396, allocations: 0.6122 MB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.2398, allocations: 111.9 kB / 404.5 MB, free: 28.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.24, allocations: 259 kB / 404.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.2403, allocations: 278.9 kB / 405.1 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.588e-05/0.2403, allocations: 32 kB / 405.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2405, allocations: 75.89 kB / 405.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.17e-05/0.2406, allocations: 111.6 kB / 405.3 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.2407, allocations: 226.8 kB / 405.5 MB, free: 27.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000361/0.2411, allocations: 0.5581 MB / 406.1 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2411, allocations: 8 kB / 406.1 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2411, allocations: 0 / 406.1 MB, free: 26.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2411, allocations: 4 kB / 406.1 MB, free: 26.76 MB / 298.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.001172/0.2423, allocations: 0.7758 MB / 406.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.2424, allocations: 15.97 kB / 406.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.155e-05/0.2425, allocations: 48.38 kB / 406.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.2427, allocations: 327.2 kB / 407.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.2428, allocations: 29.38 kB / 407.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.2429, allocations: 40.36 kB / 407.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006581/0.2435, allocations: 478.6 kB / 407.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.2435, allocations: 7.891 kB / 407.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.2436, allocations: 16 kB / 407.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.2436, allocations: 12 kB / 407.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007415/0.2444, allocations: 475.7 kB / 408.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.2459, allocations: 1.129 MB / 409.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.2466, allocations: 393.9 kB / 409.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/0.247, allocations: 274 kB / 410 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.2471, allocations: 8.422 kB / 410.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.417e-05/0.2471, allocations: 39 kB / 410.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.425e-06/0.2471, allocations: 0 / 410.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004251/0.2514, allocations: 2.327 MB / 412.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2514, allocations: 55.97 kB / 412.5 MB, free: 20.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.2516, allocations: 291.3 kB / 412.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.2517, allocations: 41.7 kB / 412.8 MB, free: 19.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.371e-05/0.2518, allocations: 185.3 kB / 413 MB, free: 19.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/0.2519, allocations: 201.3 kB / 413.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.252, allocations: 106.2 kB / 413.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.2521, allocations: 350.8 kB / 413.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.2525, allocations: 241.2 kB / 413.9 MB, free: 18.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003947/0.2529, allocations: 288.8 kB / 414.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006021/0.2535, allocations: 418.3 kB / 414.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2535, allocations: 0 / 414.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001348/0.2549, allocations: 0.7833 MB / 415.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.2549, allocations: 4 kB / 415.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.2549, allocations: 4 kB / 415.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000731/0.2557, allocations: 0.5051 MB / 415.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.256, allocations: 87.89 kB / 415.9 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.257, allocations: 1.405 MB / 417.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.2575, allocations: 80.06 kB / 417.4 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.2575, allocations: 19.98 kB / 417.4 MB, free: 14.98 MB / 298.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 (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.0002132/0.2577, allocations: 165.7 kB / 417.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-05/0.2578, allocations: 43.53 kB / 417.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.258, allocations: 55.73 kB / 417.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.258, allocations: 8 kB / 417.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.2581, allocations: 4 kB / 417.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2581, allocations: 3.984 kB / 417.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.2604, allocations: 1.458 MB / 419.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.2604, allocations: 11.88 kB / 419.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.2607, allocations: 87.83 kB / 419.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005984/0.2613, allocations: 477.5 kB / 419.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.2614, allocations: 23.98 kB / 419.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008755/0.2623, allocations: 1.374 MB / 421.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2623, allocations: 0 / 421.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/0.2741, allocations: 9.048 MB / 430.2 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.2743, allocations: 164.6 kB / 430.3 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.2744, allocations: 23.98 kB / 430.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.2748, allocations: 47.94 kB / 430.4 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.275, allocations: 100.3 kB / 430.5 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-05/0.275, allocations: 23.98 kB / 430.5 MB, free: 1.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001406/0.2752, allocations: 201.9 kB / 430.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2752, allocations: 0 / 430.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006178/0.2758, allocations: 219.9 kB / 430.9 MB, free: 0.8008 MB / 298.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 (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.0002252/0.276, allocations: 165.4 kB / 431.1 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009917/0.277, allocations: 0.5928 MB / 431.7 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.277, allocations: 96 / 431.7 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006698/0.2777, allocations: 334.7 kB / 432 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.2783, allocations: 72.66 kB / 432.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004044/0.2824, allocations: 2.187 MB / 434.3 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.2827, allocations: 0.8397 MB / 435.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.2829, allocations: 47.25 kB / 435.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.283, allocations: 39.42 kB / 435.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of SimCode: time 1.533e-06/0.283, allocations: 0 / 435.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of Templates: time 0.01657/0.2996, allocations: 12.2 MB / 447.4 MB, free: 272 kB / 314.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches