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.0009398/0.0009399, allocations: 89.62 kB / 16.65 MB, free: 6.594 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.0009194/0.0009194, allocations: 180 kB / 17.56 MB, free: 6.203 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 248 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002721, allocations: 15.94 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.09426, allocations: 50.41 MB / 351.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002906/0.09721, allocations: 2.654 MB / 354.5 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.09909, allocations: 1.158 MB / 355.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.09925, allocations: 4 kB / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.09959, allocations: 55.61 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.09979, allocations: 103.1 kB / 355.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.1005, allocations: 374.4 kB / 356.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006496/0.1012, allocations: 0.7606 MB / 356.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.1014, allocations: 81.48 kB / 357 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000373/0.1018, allocations: 319 kB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.103, allocations: 1.327 MB / 358.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.821e-05/0.1031, allocations: 36 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.1033, allocations: 79.95 kB / 358.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.1035, allocations: 200.2 kB / 359 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002809/0.1038, allocations: 343.8 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007206/0.1045, allocations: 0.8021 MB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1046, allocations: 0 / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1046, allocations: 0 / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.1046, allocations: 4 kB / 360.1 MB, free: 11.43 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.003582/0.1082, allocations: 1.309 MB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.1082, allocations: 12.03 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1084, allocations: 76 kB / 361.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.1089, allocations: 431.5 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.1089, allocations: 25.38 kB / 361.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.59e-05/0.109, allocations: 36.38 kB / 362 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.1108, allocations: 1.177 MB / 363.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.1108, allocations: 0 / 363.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-05/0.1109, allocations: 16 kB / 363.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1109, allocations: 8 kB / 363.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002688/0.1136, allocations: 1.783 MB / 365 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004593/0.1182, allocations: 2.549 MB / 367.5 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.12, allocations: 0.9459 MB / 368.4 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.1211, allocations: 0.7352 MB / 369.2 MB, free: 2.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-05/0.1211, allocations: 4 kB / 369.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/0.1226, allocations: 0.92 MB / 370.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.845e-06/0.1226, allocations: 0 / 370.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1879/0.3105, allocations: 6.029 MB / 376.1 MB, free: 24.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3106, allocations: 83.42 kB / 376.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.312, allocations: 0.9217 MB / 377.1 MB, free: 24.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.3122, allocations: 47.3 kB / 377.2 MB, free: 24.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.3124, allocations: 295.1 kB / 377.5 MB, free: 24.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.3126, allocations: 161.5 kB / 377.6 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3127, allocations: 64.45 kB / 377.7 MB, free: 24.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3128, allocations: 376 kB / 378.1 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/0.3144, allocations: 0.8655 MB / 378.9 MB, free: 23.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00165/0.316, allocations: 0.9524 MB / 379.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.3184, allocations: 1.503 MB / 381.4 MB, free: 23.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3185, allocations: 1.594 kB / 381.4 MB, free: 23.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004091/0.3226, allocations: 2.513 MB / 383.9 MB, free: 22.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.3226, allocations: 8 kB / 383.9 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3226, allocations: 4.641 kB / 383.9 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002084/0.3247, allocations: 1.906 MB / 385.8 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/0.3252, allocations: 119.4 kB / 385.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00593/0.3312, allocations: 6.465 MB / 392.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.3327, allocations: 307.8 kB / 392.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/0.3327, allocations: 23.8 kB / 392.7 MB, free: 15.78 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.0003104/0.3331, allocations: 255.4 kB / 393 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.554e-05/0.3332, allocations: 67.16 kB / 393 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.3333, allocations: 107.2 kB / 393.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3334, allocations: 4 kB / 393.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3334, allocations: 4 kB / 393.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3334, allocations: 6.844 kB / 393.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.3365, allocations: 3.136 MB / 396.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3365, allocations: 0 / 396.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.337, allocations: 95.94 kB / 396.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.3384, allocations: 1.869 MB / 398.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.026e-05/0.3384, allocations: 27.91 kB / 398.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00503/0.3435, allocations: 6.157 MB / 404.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3435, allocations: 3.188 kB / 404.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00391/0.3474, allocations: 3.273 MB / 407.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.3477, allocations: 212.2 kB / 407.9 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.3478, allocations: 20 kB / 407.9 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.3495, allocations: 347.6 kB / 408.3 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001339/0.3508, allocations: 0.5498 MB / 408.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.547e-05/0.3509, allocations: 23.97 kB / 408.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007042/0.3516, allocations: 0.6824 MB / 409.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.3516, allocations: 0 / 409.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008107/0.3525, allocations: 191.9 kB / 409.7 MB, free: 14.64 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.0003303/0.3528, allocations: 155 kB / 409.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002994/0.3558, allocations: 1.941 MB / 411.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3558, allocations: 0 / 411.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001695/0.3575, allocations: 1.106 MB / 412.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006471/0.3582, allocations: 66.97 kB / 413 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004394/0.3626, allocations: 2.357 MB / 415.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005427/0.3631, allocations: 0.9182 MB / 416.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.3634, allocations: 39.28 kB / 416.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.3635, allocations: 43.34 kB / 416.3 MB, free: 7.91 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3635, allocations: 0 / 416.3 MB, free: 7.91 MB / 318.1 MB Notification: Performance of Templates: time 0.03396/0.3975, allocations: 21.71 MB / 438.1 MB, free: 2.238 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/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