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.001193/0.001193, allocations: 110.7 kB / 16.92 MB, free: 5.766 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.001267/0.001267, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.284/1.284, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 47.86 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09512, allocations: 49.44 MB / 350 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00408/0.09924, allocations: 2.995 MB / 353 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1014, allocations: 1.165 MB / 354.2 MB, free: 264 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.1016, allocations: 7.938 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004014/0.1021, allocations: 87.22 kB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.1024, allocations: 110.9 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008734/0.1032, allocations: 417.1 kB / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007534/0.104, allocations: 0.7997 MB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.1042, allocations: 89.61 kB / 355.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.1046, allocations: 359.1 kB / 356.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.1059, allocations: 1.335 MB / 357.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.106, allocations: 68 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.1062, allocations: 116 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.1064, allocations: 223.8 kB / 357.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.1068, allocations: 358 kB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007527/0.1075, allocations: 0.8607 MB / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.1075, allocations: 0 / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1075, allocations: 0 / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.1075, allocations: 0 / 359 MB, free: 11.46 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.003521/0.1111, allocations: 1.324 MB / 360.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.1111, allocations: 15.97 kB / 360.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1113, allocations: 76 kB / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000463/0.1117, allocations: 423.5 kB / 360.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.1118, allocations: 29.38 kB / 360.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.165e-05/0.1119, allocations: 36.28 kB / 360.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.1135, allocations: 1.161 MB / 362 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1136, allocations: 3.984 kB / 362.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.17e-05/0.1136, allocations: 16 kB / 362.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1137, allocations: 8 kB / 362.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002454/0.1161, allocations: 1.752 MB / 363.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003829/0.12, allocations: 2.475 MB / 366.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.1215, allocations: 0.9069 MB / 367.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.1226, allocations: 0.7162 MB / 367.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.1227, allocations: 4 kB / 367.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001441/0.1241, allocations: 0.9005 MB / 368.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 1.853e-06/0.1241, allocations: 0 / 368.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.1848/0.309, allocations: 5.782 MB / 374.6 MB, free: 25.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.309, allocations: 84.72 kB / 374.7 MB, free: 25.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.3105, allocations: 0.9169 MB / 375.6 MB, free: 25.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.3107, allocations: 48.62 kB / 375.7 MB, free: 25.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.3109, allocations: 296.3 kB / 375.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.3111, allocations: 165 kB / 376.1 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.3114, allocations: 126.8 kB / 376.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3115, allocations: 380.3 kB / 376.6 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.3129, allocations: 0.8504 MB / 377.5 MB, free: 24.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.3144, allocations: 0.9402 MB / 378.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/0.3169, allocations: 1.465 MB / 379.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.3169, allocations: 0.875 kB / 379.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00425/0.3212, allocations: 2.483 MB / 382.3 MB, free: 23.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3212, allocations: 7.906 kB / 382.4 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.3212, allocations: 3.938 kB / 382.4 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002097/0.3233, allocations: 1.902 MB / 384.3 MB, free: 22.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005311/0.3239, allocations: 117 kB / 384.4 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006467/0.3304, allocations: 6.7 MB / 391.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.3318, allocations: 231.5 kB / 391.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.332, allocations: 27.45 kB / 391.3 MB, free: 16.57 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.0004287/0.3324, allocations: 251.4 kB / 391.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.3326, allocations: 79.98 kB / 391.6 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.3328, allocations: 102.5 kB / 391.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.3328, allocations: 4.656 kB / 391.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3328, allocations: 0 / 391.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3328, allocations: 2.156 kB / 391.8 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.3363, allocations: 3.098 MB / 394.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.3364, allocations: 0 / 394.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/0.3368, allocations: 88.59 kB / 394.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.3382, allocations: 1.869 MB / 396.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.026e-05/0.3383, allocations: 28.83 kB / 396.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00529/0.3435, allocations: 6.324 MB / 403.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3436, allocations: 4.062 kB / 403.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/0.3476, allocations: 3.232 MB / 406.4 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3479, allocations: 208.2 kB / 406.6 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.348, allocations: 20 kB / 406.6 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/0.3498, allocations: 271.6 kB / 406.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/0.351, allocations: 0.5616 MB / 407.4 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.191e-05/0.3511, allocations: 30.03 kB / 407.5 MB, free: 336 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00064/0.3517, allocations: 0.6748 MB / 408.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3517, allocations: 0 / 408.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008587/0.3526, allocations: 191.1 kB / 408.3 MB, free: 15.47 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.0002916/0.3529, allocations: 163.5 kB / 408.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.356, allocations: 1.936 MB / 410.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3561, allocations: 0 / 410.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.3578, allocations: 1.086 MB / 411.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.3585, allocations: 69.38 kB / 411.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004225/0.3627, allocations: 1.97 MB / 413.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.3632, allocations: 0.9338 MB / 414.5 MB, free: 9.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002365/0.3635, allocations: 35.28 kB / 414.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.3636, allocations: 39.42 kB / 414.6 MB, free: 9.156 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3636, allocations: 0 / 414.6 MB, free: 9.156 MB / 318.1 MB Notification: Performance of Templates: time 0.03566/0.3993, allocations: 24.28 MB / 438.8 MB, free: 0.9102 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