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.001485/0.001485, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001674/0.001674, allocations: 191 kB / 18.63 MB, free: 4.375 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: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 43.06 kB / 302 MB, free: 5.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08507/0.08616, allocations: 49.46 MB / 351.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003963/0.09016, allocations: 2.991 MB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.09196, allocations: 1.157 MB / 355.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.09211, allocations: 11.94 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003533/0.09247, allocations: 79.3 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.09268, allocations: 118.9 kB / 355.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007091/0.09339, allocations: 406.2 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006406/0.09404, allocations: 0.7997 MB / 357.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.09423, allocations: 97.59 kB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.0946, allocations: 367.1 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.09578, allocations: 1.335 MB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.975e-05/0.09589, allocations: 68 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.09608, allocations: 120 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.09628, allocations: 227.7 kB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.09659, allocations: 342.1 kB / 359.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007139/0.09732, allocations: 0.876 MB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09733, allocations: 4 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09734, allocations: 0 / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.09736, allocations: 0 / 360.5 MB, free: 10.73 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.00335/0.1007, allocations: 1.316 MB / 361.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1008, allocations: 12.03 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.1009, allocations: 76 kB / 361.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.1015, allocations: 427.5 kB / 362.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.1016, allocations: 33.31 kB / 362.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.1016, allocations: 40.28 kB / 362.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.1033, allocations: 1.161 MB / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.1034, allocations: 3.938 kB / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.289e-05/0.1034, allocations: 16 kB / 363.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1034, allocations: 8 kB / 363.5 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.1059, allocations: 1.744 MB / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.1097, allocations: 2.471 MB / 367.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.1112, allocations: 0.9147 MB / 368.7 MB, free: 2.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.1123, allocations: 0.7201 MB / 369.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.566e-05/0.1123, allocations: 4 kB / 369.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.1137, allocations: 0.9005 MB / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 3.266e-06/0.1137, allocations: 0 / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1593/0.273, allocations: 5.785 MB / 376.1 MB, free: 25.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.273, allocations: 83.09 kB / 376.2 MB, free: 25.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.2741, allocations: 0.9176 MB / 377.1 MB, free: 25.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.513e-05/0.2741, allocations: 47.98 kB / 377.1 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.2743, allocations: 300 kB / 377.4 MB, free: 24.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/0.2744, allocations: 161.2 kB / 377.6 MB, free: 24.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.2746, allocations: 118.8 kB / 377.7 MB, free: 24.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.2747, allocations: 380.5 kB / 378.1 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.276, allocations: 0.8488 MB / 378.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.2772, allocations: 0.9396 MB / 379.9 MB, free: 23.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/0.2792, allocations: 1.464 MB / 381.3 MB, free: 23.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2792, allocations: 0.9062 kB / 381.3 MB, free: 23.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004209/0.2834, allocations: 2.48 MB / 383.8 MB, free: 23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.2834, allocations: 7.125 kB / 383.8 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2835, allocations: 5.031 kB / 383.8 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001901/0.2854, allocations: 1.905 MB / 385.7 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.2859, allocations: 113.9 kB / 385.8 MB, free: 22.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005927/0.2918, allocations: 6.704 MB / 392.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.2931, allocations: 227.8 kB / 392.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.75e-05/0.2932, allocations: 29.64 kB / 392.8 MB, free: 16.05 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.0003111/0.2935, allocations: 262.6 kB / 393 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.2936, allocations: 74.89 kB / 393.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.2938, allocations: 101.9 kB / 393.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2938, allocations: 4 kB / 393.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2938, allocations: 0 / 393.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2938, allocations: 3.938 kB / 393.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.2971, allocations: 3.1 MB / 396.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.2971, allocations: 4 kB / 396.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.2975, allocations: 83.92 kB / 396.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.2989, allocations: 1.87 MB / 398.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.064e-05/0.299, allocations: 23.97 kB / 398.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004957/0.3039, allocations: 6.322 MB / 404.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3039, allocations: 0 / 404.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003823/0.3078, allocations: 3.236 MB / 407.9 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.3081, allocations: 196.3 kB / 408.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.3082, allocations: 29.73 kB / 408.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.3098, allocations: 275.1 kB / 408.4 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001271/0.3111, allocations: 0.5617 MB / 408.9 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.466e-05/0.3112, allocations: 27.97 kB / 408.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006579/0.3118, allocations: 0.6709 MB / 409.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3118, allocations: 0 / 409.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008255/0.3127, allocations: 188.5 kB / 409.8 MB, free: 14.88 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.0002865/0.313, allocations: 170.4 kB / 410 MB, free: 14.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.3159, allocations: 1.918 MB / 411.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.3159, allocations: 4 kB / 411.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.3176, allocations: 1.081 MB / 413 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005994/0.3182, allocations: 71.7 kB / 413 MB, free: 11.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003886/0.3221, allocations: 1.954 MB / 415 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.3226, allocations: 0.9299 MB / 415.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.3229, allocations: 39.28 kB / 416 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.323, allocations: 39.42 kB / 416 MB, free: 8.586 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.323, allocations: 0 / 416 MB, free: 8.586 MB / 318.1 MB Notification: Performance of Templates: time 0.0347/0.3577, allocations: 24.3 MB / 440.3 MB, free: 340 kB / 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 -s gbode -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