Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002415/0.002415, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00274/0.00274, allocations: 164.6 kB / 25.03 MB, free: 8.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 250.3 MB, free: 7.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.563e-05, allocations: 2.312 kB / 250.3 MB, free: 7.73 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004611/0.004636, allocations: 2.942 MB / 253.3 MB, free: 4.762 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.006923, allocations: 1.193 MB / 254.5 MB, free: 3.566 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.007067, allocations: 4 kB / 254.5 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000385/0.007452, allocations: 79.23 kB / 254.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.007708, allocations: 130.8 kB / 254.7 MB, free: 3.355 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008706/0.008579, allocations: 415.1 kB / 255.1 MB, free: 2.949 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009105/0.009489, allocations: 0.8227 MB / 255.9 MB, free: 2.125 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.009671, allocations: 65.69 kB / 256 MB, free: 2.055 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006837/0.01035, allocations: 491.2 kB / 256.5 MB, free: 1.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001668/0.01202, allocations: 1.291 MB / 257.8 MB, free: 288 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.01217, allocations: 68 kB / 257.8 MB, free: 220 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.01243, allocations: 115.9 kB / 257.9 MB, free: 104 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002945/0.01272, allocations: 239.8 kB / 258.2 MB, free: 15.87 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.01303, allocations: 231.4 kB / 258.4 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.01422, allocations: 0.9542 MB / 259.3 MB, free: 14.68 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.01423, allocations: 0 / 259.3 MB, free: 14.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01423, allocations: 0 / 259.3 MB, free: 14.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.01424, allocations: 0 / 259.3 MB, free: 14.68 MB / 250.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.003338/0.01758, allocations: 1.487 MB / 260.8 MB, free: 13.14 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.01762, allocations: 11.98 kB / 260.8 MB, free: 13.12 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.01786, allocations: 108.4 kB / 261 MB, free: 13.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006556/0.01852, allocations: 376.3 kB / 261.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.01857, allocations: 29.38 kB / 261.3 MB, free: 12.6 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.01868, allocations: 44.33 kB / 261.4 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/0.02058, allocations: 1.105 MB / 262.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.0206, allocations: 192 / 262.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.407e-05/0.02067, allocations: 20.12 kB / 262.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.02069, allocations: 8 kB / 262.5 MB, free: 11.41 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00314/0.02383, allocations: 1.584 MB / 264.1 MB, free: 9.828 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006452/0.03028, allocations: 2.312 MB / 266.4 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.03282, allocations: 0.8259 MB / 267.2 MB, free: 6.598 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.03447, allocations: 0.628 MB / 267.9 MB, free: 5.961 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001002/0.03457, allocations: 8 kB / 267.9 MB, free: 5.953 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0023/0.03687, allocations: 0.8776 MB / 268.8 MB, free: 5.055 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 3.206e-06/0.03688, allocations: 0 / 268.8 MB, free: 5.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.01572/0.05259, allocations: 4.849 MB / 273.6 MB, free: 132 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.05269, allocations: 89.05 kB / 273.7 MB, free: 24 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.05451, allocations: 0.9525 MB / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004772/0.05499, allocations: 45.7 kB / 274.7 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/0.05547, allocations: 383.4 kB / 275.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002905/0.05576, allocations: 178.7 kB / 275.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000435/0.0562, allocations: 143.9 kB / 275.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005537/0.05675, allocations: 0.5938 MB / 276 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/0.05868, allocations: 0.7744 MB / 276.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.06073, allocations: 0.8975 MB / 277.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/0.06387, allocations: 1.356 MB / 279 MB, free: 10.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.06387, allocations: 4 kB / 279 MB, free: 10.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006036/0.06991, allocations: 2.335 MB / 281.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.06995, allocations: 8 kB / 281.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.06996, allocations: 3.938 kB / 281.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003741/0.07371, allocations: 1.752 MB / 283.1 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007625/0.07447, allocations: 111.8 kB / 283.2 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/0.08781, allocations: 7.656 MB / 290.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.08932, allocations: 148 kB / 291 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.08943, allocations: 27.97 kB / 291 MB, free: 14.23 MB / 282.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.0004977/0.08992, allocations: 219.1 kB / 291.3 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.09021, allocations: 87.56 kB / 291.3 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003057/0.09051, allocations: 98.11 kB / 291.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.09052, allocations: 4 kB / 291.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.09053, allocations: 3.938 kB / 291.4 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.09053, allocations: 0 / 291.4 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006284/0.09682, allocations: 2.843 MB / 294.3 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.09683, allocations: 7.938 kB / 294.3 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004458/0.09727, allocations: 75.95 kB / 294.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002699/0.09997, allocations: 1.717 MB / 296.1 MB, free: 9.094 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.1001, allocations: 27.97 kB / 296.1 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009006/0.1091, allocations: 7.136 MB / 303.3 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1091, allocations: 0 / 303.3 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005457/0.1145, allocations: 3.033 MB / 306.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004322/0.115, allocations: 139.3 kB / 306.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.1151, allocations: 23.94 kB / 306.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.1163, allocations: 183.7 kB / 306.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001421/0.1177, allocations: 0.5813 MB / 307.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/0.1178, allocations: 23.97 kB / 307.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007874/0.1186, allocations: 0.6161 MB / 307.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1186, allocations: 0 / 307.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008224/0.1194, allocations: 184 kB / 308 MB, free: 12.84 MB / 298.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.0003277/0.1197, allocations: 159 kB / 308.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003184/0.1229, allocations: 1.9 MB / 310.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1229, allocations: 0 / 310.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.1249, allocations: 1.101 MB / 311.2 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006549/0.1255, allocations: 98.86 kB / 311.3 MB, free: 9.492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00389/0.1294, allocations: 1.665 MB / 312.9 MB, free: 7.777 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.1298, allocations: 322.7 kB / 313.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.13, allocations: 35.28 kB / 313.3 MB, free: 7.406 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.1302, allocations: 48.48 kB / 313.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1302, allocations: 0 / 313.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of Templates: time 0.03505/0.1653, allocations: 19.59 MB / 332.9 MB, free: 3.707 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.445963207050227]