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.001359/0.001359, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.00139/0.00139, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.395/1.395, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 43.3 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 49.45 MB / 350.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004579/0.1145, allocations: 3.025 MB / 353.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1169, allocations: 1.165 MB / 354.2 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003872/0.1174, allocations: 11.94 kB / 354.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004681/0.1178, allocations: 55.61 kB / 354.3 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.1183, allocations: 107.2 kB / 354.4 MB, free: 472 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1194, allocations: 368.6 kB / 354.8 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.1204, allocations: 0.7606 MB / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.1206, allocations: 89.45 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006145/0.1213, allocations: 319 kB / 355.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.1227, allocations: 1.331 MB / 357.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1229, allocations: 36 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002319/0.1231, allocations: 87.95 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.1234, allocations: 204.2 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003311/0.1237, allocations: 318 kB / 357.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006744/0.1244, allocations: 0.6161 MB / 358.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1244, allocations: 0 / 358.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1244, allocations: 0 / 358.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1244, allocations: 0 / 358.5 MB, free: 12.35 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.003675/0.1281, allocations: 1.32 MB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1282, allocations: 8.031 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1283, allocations: 80 kB / 359.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.1289, allocations: 423.4 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.1289, allocations: 29.38 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.634e-05/0.129, allocations: 36.38 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.1309, allocations: 1.158 MB / 361.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.1309, allocations: 7.906 kB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.131, allocations: 19.98 kB / 361.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.131, allocations: 8 kB / 361.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.1337, allocations: 1.744 MB / 363.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.1382, allocations: 2.482 MB / 365.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.1399, allocations: 0.9108 MB / 366.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.141, allocations: 0.7162 MB / 367.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.659e-05/0.1411, allocations: 11.92 kB / 367.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001507/0.1426, allocations: 0.9044 MB / 368.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.364e-06/0.1426, allocations: 0 / 368.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2158/0.3584, allocations: 5.778 MB / 374.1 MB, free: 26.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.3585, allocations: 85.64 kB / 374.2 MB, free: 26.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.3598, allocations: 0.9131 MB / 375.1 MB, free: 25.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.36, allocations: 49.2 kB / 375.2 MB, free: 25.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.3602, allocations: 299.7 kB / 375.5 MB, free: 25.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3603, allocations: 165.6 kB / 375.6 MB, free: 25.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.3606, allocations: 123.3 kB / 375.8 MB, free: 25.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3607, allocations: 381.9 kB / 376.1 MB, free: 25.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.3621, allocations: 0.8482 MB / 377 MB, free: 24.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.3635, allocations: 0.9325 MB / 377.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00221/0.3658, allocations: 1.474 MB / 379.4 MB, free: 24.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3658, allocations: 0 / 379.4 MB, free: 24.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004266/0.3701, allocations: 2.476 MB / 381.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.3701, allocations: 5.656 kB / 381.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3701, allocations: 2.219 kB / 381.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002482/0.3726, allocations: 1.912 MB / 383.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.3732, allocations: 113.2 kB / 383.9 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00664/0.3798, allocations: 6.358 MB / 390.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3813, allocations: 232.3 kB / 390.5 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.636e-05/0.3814, allocations: 30.5 kB / 390.5 MB, free: 17.91 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.0003777/0.3818, allocations: 248.2 kB / 390.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.3819, allocations: 67.86 kB / 390.8 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.3821, allocations: 108.4 kB / 390.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3821, allocations: 8 kB / 390.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.3821, allocations: 0 / 390.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3821, allocations: 3.047 kB / 390.9 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003366/0.3855, allocations: 3.098 MB / 394 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.3855, allocations: 4 kB / 394 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.3859, allocations: 85.39 kB / 394.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001583/0.3875, allocations: 1.864 MB / 396 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.093e-05/0.3876, allocations: 31.89 kB / 396 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005192/0.3928, allocations: 6.085 MB / 402.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3928, allocations: 13.67 kB / 402.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003861/0.3967, allocations: 3.212 MB / 405.3 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.397, allocations: 216.2 kB / 405.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3972, allocations: 20 kB / 405.6 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.3987, allocations: 267.2 kB / 405.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/0.3999, allocations: 0.5498 MB / 406.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-05/0.4, allocations: 23.97 kB / 406.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005259/0.4006, allocations: 0.6787 MB / 407.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4006, allocations: 0 / 407.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008306/0.4014, allocations: 188 kB / 407.2 MB, free: 1.309 MB / 302.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.0002881/0.4017, allocations: 168.8 kB / 407.4 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.4047, allocations: 1.911 MB / 409.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.4047, allocations: 0 / 409.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.4063, allocations: 1.048 MB / 410.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006592/0.407, allocations: 66.97 kB / 410.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.4115, allocations: 2.218 MB / 412.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005963/0.4121, allocations: 0.9182 MB / 413.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.4123, allocations: 35.41 kB / 413.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4123, allocations: 0 / 413.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of Templates: time 0.019/0.4313, allocations: 13.7 MB / 427.3 MB, free: 13.16 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/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