Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.006018/0.006018, allocations: 153.4 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8764/0.8764, allocations: 177 MB / 204.9 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.732e-05/1.856e-05, allocations: 3.266 kB / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002708/0.002727, allocations: 2.903 MB / 328.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.004229, allocations: 1.304 MB / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.004345, allocations: 7.938 kB / 330 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003776/0.004722, allocations: 99.16 kB / 330.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.00489, allocations: 134.7 kB / 330.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004869/0.005377, allocations: 442.3 kB / 330.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007213/0.006098, allocations: 0.8307 MB / 331.5 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.006245, allocations: 69.62 kB / 331.5 MB, free: 9.461 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.006664, allocations: 0.4992 MB / 332 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008873/0.007551, allocations: 1.404 MB / 333.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.021e-05/0.007621, allocations: 71.94 kB / 333.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.007775, allocations: 131.9 kB / 333.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.007929, allocations: 247.8 kB / 333.9 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.008077, allocations: 243.4 kB / 334.1 MB, free: 6.875 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000643/0.00872, allocations: 0.9854 MB / 335.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.008725, allocations: 0 / 335.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.008726, allocations: 0 / 335.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.008734, allocations: 3.938 kB / 335.1 MB, free: 5.883 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001848/0.01058, allocations: 1.427 MB / 336.5 MB, free: 4.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.01061, allocations: 15.98 kB / 336.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/0.01088, allocations: 104.4 kB / 336.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.01128, allocations: 381.5 kB / 337 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.01131, allocations: 29.38 kB / 337.1 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.01137, allocations: 36.38 kB / 337.1 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008283/0.0122, allocations: 0.6423 MB / 337.7 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.01222, allocations: 8.141 kB / 337.7 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.657e-05/0.01227, allocations: 24.12 kB / 337.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.01227, allocations: 8 kB / 337.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.01375, allocations: 0.6818 MB / 338.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.0156, allocations: 1.422 MB / 339.9 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000726/0.01633, allocations: 472.3 kB / 340.3 MB, free: 500 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/0.01674, allocations: 293.5 kB / 340.6 MB, free: 200 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.01679, allocations: 11.94 kB / 340.6 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006268/0.01741, allocations: 491.1 kB / 341.1 MB, free: 15.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/0.01741, allocations: 3.984 kB / 341.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.00434/0.02175, allocations: 2.441 MB / 343.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.02179, allocations: 85.11 kB / 343.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005585/0.02235, allocations: 0.9141 MB / 344.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.02241, allocations: 53.7 kB / 344.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.02255, allocations: 292.6 kB / 344.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/0.02293, allocations: 182.6 kB / 345.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.02306, allocations: 114.3 kB / 345.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.02317, allocations: 382.8 kB / 345.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004689/0.02364, allocations: 329.1 kB / 345.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.02414, allocations: 418.9 kB / 346.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007239/0.02486, allocations: 0.5047 MB / 346.8 MB, free: 9.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.02487, allocations: 0 / 346.8 MB, free: 9.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001429/0.02629, allocations: 0.9911 MB / 347.8 MB, free: 8.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.02631, allocations: 4 kB / 347.8 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.02632, allocations: 4 kB / 347.8 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006561/0.02697, allocations: 0.5451 MB / 348.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.02721, allocations: 111.9 kB / 348.4 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.03096, allocations: 4.459 MB / 352.9 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/0.03156, allocations: 235.7 kB / 353.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.03161, allocations: 23.98 kB / 353.2 MB, free: 3.203 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00029/0.0319, allocations: 256.3 kB / 353.4 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.03201, allocations: 75.53 kB / 353.5 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001293/0.03214, allocations: 102.2 kB / 353.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.03214, allocations: 12.03 kB / 353.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.03215, allocations: 0 / 353.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.03216, allocations: 7.922 kB / 353.6 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.03414, allocations: 1.208 MB / 354.8 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.03415, allocations: 12 kB / 354.8 MB, free: 1.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.03437, allocations: 79.88 kB / 354.9 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005733/0.03494, allocations: 0.5138 MB / 355.4 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.03498, allocations: 28.09 kB / 355.4 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003315/0.03829, allocations: 4.079 MB / 359.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.03829, allocations: 0 / 359.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.04007, allocations: 1.259 MB / 360.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.04025, allocations: 131.5 kB / 360.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.04031, allocations: 27.94 kB / 360.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006934/0.041, allocations: 267.6 kB / 361.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008512/0.04185, allocations: 0.5732 MB / 361.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.0419, allocations: 35.97 kB / 361.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004288/0.04232, allocations: 0.6631 MB / 362.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04233, allocations: 0 / 362.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004702/0.0428, allocations: 187.9 kB / 362.6 MB, free: 9.371 MB / 330.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006586/0.04345, allocations: 406.2 kB / 363 MB, free: 9.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.0447, allocations: 0.9189 MB / 364 MB, free: 8.145 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.0447, allocations: 4.062 kB / 364 MB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006562/0.04536, allocations: 0.615 MB / 364.6 MB, free: 7.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.04573, allocations: 78.88 kB / 364.7 MB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.04795, allocations: 1.805 MB / 366.5 MB, free: 5.578 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.04839, allocations: 326.8 kB / 366.8 MB, free: 5.238 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.0485, allocations: 52.47 kB / 366.8 MB, free: 5.188 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.04851, allocations: 4 kB / 366.8 MB, free: 5.184 MB / 330.7 MB Notification: Performance of Templates: time 0.01124/0.05974, allocations: 14.43 MB / 381.3 MB, free: 6.754 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.4284380273893476]