Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007672/0.0007672, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.000836/0.000836, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.124/1.124, allocations: 223.3 MB / 242.3 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002075/0.0002075, allocations: 8.719 kB / 302.1 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06891/0.06913, allocations: 50.41 MB / 352.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002403/0.07154, allocations: 2.655 MB / 355.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.0732, allocations: 1.154 MB / 356.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.07337, allocations: 4 kB / 356.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002813/0.07366, allocations: 63.5 kB / 356.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.07387, allocations: 99.22 kB / 356.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00067/0.07454, allocations: 370.4 kB / 356.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.07514, allocations: 0.7645 MB / 357.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.07529, allocations: 81.47 kB / 357.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003719/0.07567, allocations: 315 kB / 358 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.07684, allocations: 1.327 MB / 359.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.994e-05/0.07694, allocations: 32 kB / 359.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.07711, allocations: 79.95 kB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.07728, allocations: 204.2 kB / 359.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.07753, allocations: 343.8 kB / 359.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.07799, allocations: 0.6042 MB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.078, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.07801, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.07802, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003075/0.0811, allocations: 1.301 MB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.08114, allocations: 11.97 kB / 361.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.08128, allocations: 80 kB / 361.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.08169, allocations: 423.5 kB / 362.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.08173, allocations: 29.38 kB / 362.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.924e-05/0.08183, allocations: 40.38 kB / 362.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.0834, allocations: 1.173 MB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.08343, allocations: 0 / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.0835, allocations: 20 kB / 363.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.08352, allocations: 8 kB / 363.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00228/0.0858, allocations: 1.779 MB / 365.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003586/0.0894, allocations: 2.549 MB / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.09083, allocations: 0.9459 MB / 368.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009684/0.09181, allocations: 0.7319 MB / 369.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.09187, allocations: 7.984 kB / 369.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.0931, allocations: 0.9239 MB / 370.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.833e-06/0.09311, allocations: 0 / 370.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1327/0.2258, allocations: 6.027 MB / 376.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.2258, allocations: 83.95 kB / 376.7 MB, free: 24.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.2269, allocations: 0.9237 MB / 377.6 MB, free: 24.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.822e-05/0.227, allocations: 48.03 kB / 377.6 MB, free: 24.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.2271, allocations: 295.4 kB / 377.9 MB, free: 24.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.2273, allocations: 166.1 kB / 378.1 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9e-05/0.2274, allocations: 55.19 kB / 378.1 MB, free: 24.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.2275, allocations: 382.4 kB / 378.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.2286, allocations: 0.8647 MB / 379.4 MB, free: 23.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.2297, allocations: 0.9551 MB / 380.3 MB, free: 23.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.2316, allocations: 1.502 MB / 381.8 MB, free: 22.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2316, allocations: 1.375 kB / 381.8 MB, free: 22.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003187/0.2348, allocations: 2.512 MB / 384.4 MB, free: 22.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2348, allocations: 10.02 kB / 384.4 MB, free: 22.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2348, allocations: 2.875 kB / 384.4 MB, free: 22.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.2365, allocations: 1.902 MB / 386.3 MB, free: 22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.2369, allocations: 124.1 kB / 386.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005114/0.242, allocations: 6.457 MB / 392.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.2433, allocations: 305.5 kB / 393.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.2434, allocations: 24.45 kB / 393.2 MB, free: 15.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002493/0.2436, allocations: 253.3 kB / 393.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.2437, allocations: 72.14 kB / 393.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001638/0.2439, allocations: 102.2 kB / 393.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2439, allocations: 4 kB / 393.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2439, allocations: 0.75 kB / 393.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2439, allocations: 6.281 kB / 393.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/0.2467, allocations: 3.139 MB / 396.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2467, allocations: 4.5 kB / 396.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003934/0.2471, allocations: 99.92 kB / 396.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.2483, allocations: 1.866 MB / 398.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.533e-05/0.2483, allocations: 31.89 kB / 398.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00436/0.2527, allocations: 6.152 MB / 404.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2527, allocations: 0 / 404.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003458/0.2562, allocations: 3.273 MB / 408.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.2564, allocations: 204.2 kB / 408.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.302e-05/0.2565, allocations: 27.45 kB / 408.4 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.258, allocations: 351.6 kB / 408.7 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001141/0.2591, allocations: 0.5502 MB / 409.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.898e-05/0.2592, allocations: 27.97 kB / 409.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005518/0.2597, allocations: 0.6786 MB / 410 MB, free: 14.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2597, allocations: 0 / 410 MB, free: 14.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006014/0.2604, allocations: 187.9 kB / 410.2 MB, free: 14.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000218/0.2606, allocations: 164.4 kB / 410.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.2631, allocations: 1.949 MB / 412.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2631, allocations: 4.375 kB / 412.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.2645, allocations: 1.054 MB / 413.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.2651, allocations: 71.89 kB / 413.4 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.2688, allocations: 2.386 MB / 415.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.2692, allocations: 0.9259 MB / 416.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.2693, allocations: 39.42 kB / 416.8 MB, free: 7.984 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2693, allocations: 0 / 416.8 MB, free: 7.984 MB / 318.1 MB Notification: Performance of Templates: time 0.01473/0.2841, allocations: 13.61 MB / 430.4 MB, free: 10.38 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches