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.001172/0.001172, allocations: 97.22 kB / 16.3 MB, free: 5.992 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.001407/0.001407, allocations: 181.7 kB / 17.2 MB, free: 5.906 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.347/1.347, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002358, allocations: 9.438 kB / 300.7 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09196, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002777/0.09478, allocations: 2.437 MB / 353.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.09633, allocations: 1.104 MB / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.09647, allocations: 4 kB / 354.7 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.09676, allocations: 59.61 kB / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.09698, allocations: 143.6 kB / 354.9 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.09765, allocations: 326 kB / 355.2 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004898/0.09815, allocations: 460.2 kB / 355.6 MB, free: 7.215 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.09831, allocations: 81.47 kB / 355.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.09864, allocations: 315.1 kB / 356 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001174/0.09982, allocations: 1.412 MB / 357.4 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.487e-05/0.09991, allocations: 36 kB / 357.5 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1001, allocations: 75.89 kB / 357.6 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.1003, allocations: 199.4 kB / 357.7 MB, free: 5.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1004, allocations: 121.4 kB / 357.9 MB, free: 4.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005593/0.1009, allocations: 0.5962 MB / 358.5 MB, free: 4.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.101, allocations: 3.938 kB / 358.5 MB, free: 4.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.101, allocations: 7.938 kB / 358.5 MB, free: 4.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.101, allocations: 0 / 358.5 MB, free: 4.371 MB / 286.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.003493/0.1045, allocations: 1.313 MB / 359.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1045, allocations: 8.031 kB / 359.8 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1047, allocations: 83 kB / 359.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.1053, allocations: 394.9 kB / 360.3 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.974e-05/0.1053, allocations: 29 kB / 360.3 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.08e-05/0.1054, allocations: 39.91 kB / 360.3 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/0.1073, allocations: 1.161 MB / 361.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.1073, allocations: 7.984 kB / 361.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-05/0.1074, allocations: 16 kB / 361.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1074, allocations: 11.95 kB / 361.5 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002699/0.1101, allocations: 1.775 MB / 363.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.1147, allocations: 2.553 MB / 365.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.1163, allocations: 0.9367 MB / 366.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.361e-05/0.1164, allocations: 4 kB / 366.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.1178, allocations: 0.9162 MB / 367.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.194e-06/0.1179, allocations: 0 / 367.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.01105/0.1289, allocations: 6.023 MB / 373.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.129, allocations: 93 kB / 373.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.1301, allocations: 0.914 MB / 374.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.03e-05/0.1302, allocations: 49.69 kB / 374.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.1305, allocations: 292.3 kB / 375.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1306, allocations: 169.8 kB / 375.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-05/0.1307, allocations: 15.94 kB / 375.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1309, allocations: 382.8 kB / 375.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.1321, allocations: 0.8564 MB / 376.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.1334, allocations: 0.9558 MB / 377.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.1346, allocations: 0.7807 MB / 378.2 MB, free: 168 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1346, allocations: 7.938 kB / 378.2 MB, free: 160 kB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00368/0.1383, allocations: 2.486 MB / 380.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.1384, allocations: 13.7 kB / 380.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1384, allocations: 0 / 380.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.1403, allocations: 1.892 MB / 382.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.1409, allocations: 123.8 kB / 382.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00757/0.1485, allocations: 6.469 MB / 389.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.15, allocations: 303.6 kB / 389.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/0.1501, allocations: 23.98 kB / 389.5 MB, free: 4.539 MB / 318.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003887/0.1505, allocations: 256 kB / 389.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1506, allocations: 63.44 kB / 389.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.1508, allocations: 102.2 kB / 389.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.1508, allocations: 11.98 kB / 390 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1508, allocations: 0 / 390 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1508, allocations: 7.984 kB / 390 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004037/0.1549, allocations: 3.133 MB / 393.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1549, allocations: 128 / 393.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/0.1554, allocations: 99.94 kB / 393.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/0.1574, allocations: 1.869 MB / 395.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.776e-05/0.1575, allocations: 19.97 kB / 395.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006556/0.164, allocations: 6.18 MB / 401.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.164, allocations: 4.031 kB / 401.3 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.1689, allocations: 3.315 MB / 404.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003476/0.1692, allocations: 216.1 kB / 404.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.1693, allocations: 23.95 kB / 404.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/0.1711, allocations: 347.6 kB / 405.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/0.1724, allocations: 0.6432 MB / 405.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.894e-05/0.1725, allocations: 23.97 kB / 405.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006661/0.1732, allocations: 0.6748 MB / 406.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1732, allocations: 0 / 406.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000745/0.1739, allocations: 184 kB / 406.7 MB, free: 2.926 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002641/0.1742, allocations: 163.1 kB / 406.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.1771, allocations: 1.941 MB / 408.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1772, allocations: 8.125 kB / 408.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.1788, allocations: 1.098 MB / 409.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1792, allocations: 58.95 kB / 409.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004067/0.1833, allocations: 2.278 MB / 412.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006676/0.184, allocations: 0.9376 MB / 413.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.1842, allocations: 39.28 kB / 413.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1843, allocations: 39.42 kB / 413.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1843, allocations: 0 / 413.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Templates: time 0.2059/0.3903, allocations: 20.92 MB / 434.2 MB, free: 67.61 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches