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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 184.9 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.265/1.265, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.0009152/0.0009154, allocations: 107.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008345/0.0008345, allocations: 43.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2601, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003622/0.2638, allocations: 3.025 MB / 402.5 MB, free: 30.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.2653, allocations: 1.177 MB / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.2655, allocations: 4 kB / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.2659, allocations: 51.56 kB / 403.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.2661, allocations: 111.2 kB / 403.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007439/0.2668, allocations: 365.2 kB / 404.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000467/0.2673, allocations: 0.7645 MB / 405 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2675, allocations: 77.48 kB / 405 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.2678, allocations: 335 kB / 405.4 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009201/0.2687, allocations: 1.327 MB / 406.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.2e-05/0.2688, allocations: 36 kB / 406.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.269, allocations: 91.89 kB / 406.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.2692, allocations: 196.3 kB / 407 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.2694, allocations: 326 kB / 407.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005375/0.27, allocations: 0.8191 MB / 408.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.27, allocations: 0 / 408.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.27, allocations: 0 / 408.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.27, allocations: 0 / 408.1 MB, free: 24.68 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003351/0.2734, allocations: 1.332 MB / 409.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.2734, allocations: 8.031 kB / 409.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.2736, allocations: 80 kB / 409.6 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.274, allocations: 423.5 kB / 410 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.2741, allocations: 29.38 kB / 410 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-05/0.2741, allocations: 36.38 kB / 410 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.2756, allocations: 1.158 MB / 411.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.2756, allocations: 7.906 kB / 411.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.2757, allocations: 12 kB / 411.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.2757, allocations: 12 kB / 411.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.2778, allocations: 1.744 MB / 413 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003318/0.2811, allocations: 2.482 MB / 415.5 MB, free: 17.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.2825, allocations: 0.9116 MB / 416.4 MB, free: 16.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008632/0.2833, allocations: 0.7084 MB / 417.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.449e-05/0.2834, allocations: 11.92 kB / 417.1 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.2846, allocations: 0.9044 MB / 418 MB, free: 14.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.054e-06/0.2847, allocations: 0 / 418 MB, free: 14.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.009008/0.2937, allocations: 5.79 MB / 423.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.2937, allocations: 93.03 kB / 423.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008133/0.2945, allocations: 0.9064 MB / 424.8 MB, free: 7.629 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.041e-05/0.2946, allocations: 45.69 kB / 424.8 MB, free: 7.578 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.2948, allocations: 292.3 kB / 425.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.2949, allocations: 165.9 kB / 425.3 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.2951, allocations: 126.1 kB / 425.4 MB, free: 6.988 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.595e-05/0.2952, allocations: 382.8 kB / 425.8 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.2962, allocations: 0.8408 MB / 426.6 MB, free: 5.766 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.2972, allocations: 0.9324 MB / 427.5 MB, free: 4.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.2988, allocations: 1.475 MB / 429 MB, free: 3.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2988, allocations: 0 / 429 MB, free: 3.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002909/0.3017, allocations: 2.482 MB / 431.5 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.3017, allocations: 4 kB / 431.5 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3018, allocations: 7.938 kB / 431.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.3035, allocations: 1.896 MB / 433.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.304, allocations: 111.8 kB / 433.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/0.3115, allocations: 6.373 MB / 439.9 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.3131, allocations: 235.7 kB / 440.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.3132, allocations: 24.25 kB / 440.1 MB, free: 7.852 MB / 314.7 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.0004286/0.3136, allocations: 252 kB / 440.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3138, allocations: 71.14 kB / 440.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.314, allocations: 110.1 kB / 440.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.314, allocations: 4 kB / 440.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3141, allocations: 4 kB / 440.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3141, allocations: 4.031 kB / 440.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/0.3183, allocations: 3.09 MB / 443.7 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.3183, allocations: 0 / 443.7 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005064/0.3189, allocations: 87.94 kB / 443.7 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.3207, allocations: 1.861 MB / 445.6 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.016e-05/0.3208, allocations: 19.97 kB / 445.6 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006777/0.3276, allocations: 6.09 MB / 451.7 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.3277, allocations: 3.984 kB / 451.7 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03163/0.3593, allocations: 29.55 MB / 481.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004164/0.3598, allocations: 212.1 kB / 481.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.3599, allocations: 23.98 kB / 481.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.3616, allocations: 275.5 kB / 481.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/0.363, allocations: 0.5537 MB / 482.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/0.3631, allocations: 27.97 kB / 482.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007192/0.3638, allocations: 0.6748 MB / 483 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3638, allocations: 0 / 483 MB, free: 11.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001134/0.365, allocations: 276 kB / 483.3 MB, free: 11.64 MB / 362.7 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.0003525/0.3653, allocations: 186.1 kB / 483.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002875/0.3682, allocations: 1.914 MB / 485.4 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3682, allocations: 0 / 485.4 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.3699, allocations: 1.083 MB / 486.5 MB, free: 8.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.3705, allocations: 75.12 kB / 486.5 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004852/0.3753, allocations: 2.862 MB / 489.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.3759, allocations: 0.9377 MB / 490.3 MB, free: 4.418 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002679/0.3762, allocations: 47.27 kB / 490.4 MB, free: 4.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3764, allocations: 43.41 kB / 490.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3764, allocations: 0 / 490.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of Templates: time 0.204/0.5804, allocations: 28.82 MB / 0.5071 GB, free: 100.2 MB / 378.7 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@2/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