Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001115/0.001115, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.0009844/0.0009845, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001393, allocations: 51.92 kB / 280.6 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1159, allocations: 46.63 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005836/0.1218, allocations: 2.972 MB / 330.2 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.1247, allocations: 1.205 MB / 331.4 MB, free: 268 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004851/0.1252, allocations: 11.94 kB / 331.5 MB, free: 256 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007173/0.126, allocations: 79.3 kB / 331.5 MB, free: 176 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006227/0.1267, allocations: 118.9 kB / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.128, allocations: 407.2 kB / 332.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.1291, allocations: 0.8036 MB / 332.9 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.1294, allocations: 93.56 kB / 332.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007205/0.1301, allocations: 367 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002024/0.1322, allocations: 1.335 MB / 334.6 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003048/0.1325, allocations: 68 kB / 334.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003489/0.1329, allocations: 112 kB / 334.8 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.1331, allocations: 231.7 kB / 335 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/0.1336, allocations: 346.1 kB / 335.4 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1347, allocations: 0.8644 MB / 336.2 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.1347, allocations: 0 / 336.2 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1347, allocations: 3.938 kB / 336.2 MB, free: 11.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.794e-05/0.1347, allocations: 0 / 336.2 MB, free: 11.45 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.003889/0.1386, allocations: 1.324 MB / 337.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1387, allocations: 8.031 kB / 337.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.1389, allocations: 76 kB / 337.7 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.1394, allocations: 435.5 kB / 338.1 MB, free: 9.523 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.1395, allocations: 29.38 kB / 338.1 MB, free: 9.492 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1396, allocations: 36.38 kB / 338.1 MB, free: 9.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.1414, allocations: 1.154 MB / 339.3 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1414, allocations: 4 kB / 339.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.235e-05/0.1415, allocations: 19.98 kB / 339.3 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1415, allocations: 11.98 kB / 339.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/0.1441, allocations: 1.744 MB / 341.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.1482, allocations: 2.482 MB / 343.6 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.1498, allocations: 0.9146 MB / 344.5 MB, free: 3.016 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.1509, allocations: 0.7084 MB / 345.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.151, allocations: 4 kB / 345.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.1523, allocations: 0.9082 MB / 346.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.304e-06/0.1524, allocations: 0 / 346.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01066/0.163, allocations: 5.784 MB / 351.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.1631, allocations: 89.05 kB / 352 MB, free: 11.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.1642, allocations: 0.918 MB / 352.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.501e-05/0.1643, allocations: 45.7 kB / 352.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.1645, allocations: 296.3 kB / 353.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1647, allocations: 165.9 kB / 353.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1649, allocations: 122.2 kB / 353.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1651, allocations: 378.8 kB / 353.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.1663, allocations: 0.8447 MB / 354.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.1676, allocations: 0.9363 MB / 355.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.1696, allocations: 1.457 MB / 357.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1696, allocations: 4 kB / 357.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003467/0.1731, allocations: 2.482 MB / 359.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.1731, allocations: 8 kB / 359.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.1732, allocations: 4 kB / 359.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002164/0.1753, allocations: 1.904 MB / 361.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.1758, allocations: 107.9 kB / 361.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007842/0.1837, allocations: 6.715 MB / 368.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.1851, allocations: 231.7 kB / 368.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.1852, allocations: 23.94 kB / 368.6 MB, free: 10.26 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,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.0004802/0.1857, allocations: 256 kB / 368.8 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.1858, allocations: 67.23 kB / 368.9 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.186, allocations: 106.2 kB / 369 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.186, allocations: 4 kB / 369 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.186, allocations: 3.938 kB / 369 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.1861, allocations: 4 kB / 369 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.1903, allocations: 3.098 MB / 372.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1903, allocations: 0 / 372.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.1908, allocations: 79.88 kB / 372.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/0.1925, allocations: 1.873 MB / 374.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-05/0.1926, allocations: 19.97 kB / 374.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1915/0.3841, allocations: 6.329 MB / 380.4 MB, free: 54.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3841, allocations: 1.375 kB / 380.4 MB, free: 54.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/0.3894, allocations: 3.226 MB / 383.6 MB, free: 54.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.3897, allocations: 211.1 kB / 383.8 MB, free: 54.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.3899, allocations: 25.05 kB / 383.9 MB, free: 54.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.3915, allocations: 263 kB / 384.1 MB, free: 54.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/0.3929, allocations: 0.5733 MB / 384.7 MB, free: 54.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.393, allocations: 25.53 kB / 384.7 MB, free: 54.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007542/0.3938, allocations: 0.6745 MB / 385.4 MB, free: 53.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.3938, allocations: 0.9688 kB / 385.4 MB, free: 53.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008066/0.3946, allocations: 190.3 kB / 385.6 MB, free: 53.96 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.0003073/0.3949, allocations: 160.1 kB / 385.7 MB, free: 53.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.398, allocations: 1.931 MB / 387.7 MB, free: 53.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3981, allocations: 5.125 kB / 387.7 MB, free: 53.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.3997, allocations: 1.082 MB / 388.8 MB, free: 52.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005733/0.4003, allocations: 74.48 kB / 388.8 MB, free: 52.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.4041, allocations: 1.969 MB / 390.8 MB, free: 52.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.4045, allocations: 0.921 MB / 391.7 MB, free: 51.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.4047, allocations: 47.11 kB / 391.8 MB, free: 51.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.4048, allocations: 43.64 kB / 391.8 MB, free: 51.3 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4048, allocations: 0 / 391.8 MB, free: 51.3 MB / 318.1 MB Notification: Performance of Templates: time 0.02631/0.4312, allocations: 24.28 MB / 416.1 MB, free: 29.21 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches