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.0009872/0.0009872, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.00109/0.00109, allocations: 166.3 kB / 25.61 MB, free: 8.582 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.9034/0.9034, allocations: 177 MB / 205.9 MB, free: 4.441 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.193e-06/1.193e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.289e-05, allocations: 4.141 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004493/0.004516, allocations: 3.063 MB / 277.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.006844, allocations: 1.311 MB / 278.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.007025, allocations: 7.938 kB / 278.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.007426, allocations: 103.8 kB / 278.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.007673, allocations: 133 kB / 278.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008145/0.008488, allocations: 423 kB / 279.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008036/0.009292, allocations: 0.8385 MB / 280 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.009446, allocations: 65.73 kB / 280 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006975/0.01014, allocations: 0.4991 MB / 280.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.01167, allocations: 1.416 MB / 281.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.0118, allocations: 68 kB / 282 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.01203, allocations: 131.9 kB / 282.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.01225, allocations: 243.8 kB / 282.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.01251, allocations: 243.3 kB / 282.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008398/0.01335, allocations: 0.7319 MB / 283.3 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.01335, allocations: 0 / 283.3 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01335, allocations: 4 kB / 283.4 MB, free: 11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.01336, allocations: 0 / 283.4 MB, free: 11 MB / 266.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.00237/0.01573, allocations: 1.436 MB / 284.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.01576, allocations: 12.03 kB / 284.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004665/0.01623, allocations: 132.4 kB / 284.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.01675, allocations: 384.3 kB / 285.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.01679, allocations: 29.38 kB / 285.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.0169, allocations: 40.38 kB / 285.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009657/0.01787, allocations: 496.1 kB / 285.9 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.01789, allocations: 4.141 kB / 285.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.759e-05/0.01796, allocations: 20.12 kB / 285.9 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.01797, allocations: 8 kB / 285.9 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007253/0.01869, allocations: 310.3 kB / 286.2 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.02063, allocations: 1.331 MB / 287.5 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.02108, allocations: 289.9 kB / 287.8 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.02124, allocations: 129.9 kB / 287.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/0.02129, allocations: 12 kB / 287.9 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/0.02163, allocations: 322.4 kB / 288.3 MB, free: 5.887 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.463e-06/0.02163, allocations: 0 / 288.3 MB, free: 5.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003178/0.02481, allocations: 1.422 MB / 289.7 MB, free: 4.391 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.02484, allocations: 85.05 kB / 289.8 MB, free: 4.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/0.0255, allocations: 0.6828 MB / 290.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.02556, allocations: 49.69 kB / 290.5 MB, free: 3.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.02575, allocations: 379.3 kB / 290.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.02587, allocations: 174.6 kB / 291 MB, free: 2.988 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.02603, allocations: 131.8 kB / 291.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.0262, allocations: 0.5819 MB / 291.7 MB, free: 2.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.02646, allocations: 145.2 kB / 291.9 MB, free: 2.113 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.02684, allocations: 251.2 kB / 292.1 MB, free: 1.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.02713, allocations: 293.8 kB / 292.4 MB, free: 1.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.02714, allocations: 4 kB / 292.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000884/0.02802, allocations: 0.6143 MB / 293 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.02803, allocations: 8.219 kB / 293 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.02804, allocations: 4 kB / 293.1 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005302/0.02857, allocations: 438.6 kB / 293.5 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.0288, allocations: 103.9 kB / 293.6 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003019/0.03182, allocations: 5.228 MB / 298.8 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004161/0.03224, allocations: 148 kB / 299 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.03227, allocations: 20 kB / 299 MB, free: 10.66 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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.free) * 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,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.03243, allocations: 207.1 kB / 299.2 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.03255, allocations: 91.53 kB / 299.3 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.472e-05/0.03263, allocations: 90.17 kB / 299.4 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.03263, allocations: 8 kB / 299.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.03264, allocations: 0 / 299.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.03264, allocations: 3.984 kB / 299.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.03393, allocations: 0.981 MB / 300.3 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.03393, allocations: 0 / 300.3 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.03414, allocations: 75.89 kB / 300.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004659/0.0346, allocations: 418.7 kB / 300.8 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.03464, allocations: 27.95 kB / 300.9 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/0.0378, allocations: 4.779 MB / 305.6 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.03781, allocations: 3.984 kB / 305.6 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.03898, allocations: 0.8137 MB / 306.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.03919, allocations: 135.4 kB / 306.6 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.736e-05/0.03927, allocations: 28 kB / 306.6 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005243/0.03979, allocations: 171.8 kB / 306.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007334/0.04053, allocations: 0.5185 MB / 307.3 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.04057, allocations: 23.97 kB / 307.3 MB, free: 1.922 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002572/0.04083, allocations: 426.9 kB / 307.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04083, allocations: 0 / 307.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005302/0.04136, allocations: 172 kB / 307.9 MB, free: 1.34 MB / 282.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.0007824/0.04214, allocations: 389 kB / 308.3 MB, free: 1.062 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007903/0.04293, allocations: 0.7268 MB / 309 MB, free: 304 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.04294, allocations: 0 / 309 MB, free: 304 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.04342, allocations: 0.5624 MB / 309.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/0.04385, allocations: 113.6 kB / 309.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.04597, allocations: 1.477 MB / 311.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.04609, allocations: 161.9 kB / 311.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.04623, allocations: 51.25 kB / 311.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.04644, allocations: 150.2 kB / 311.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.04644, allocations: 0 / 311.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of Templates: time 0.01803/0.06448, allocations: 15.8 MB / 327.3 MB, free: 13.94 MB / 314.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.31475517898798]