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.00189/0.00189, allocations: 116.8 kB / 18.5 MB, free: 4.52 MB / 14.72 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.002957/0.002957, allocations: 212.9 kB / 21.46 MB, free: 1.566 MB / 14.72 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 1.524/1.524, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001859/0.001859, allocations: 59.89 kB / 373.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1034, allocations: 53.32 MB / 427.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004561/0.108, allocations: 3.129 MB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2511/0.3591, allocations: 1.344 MB / 431.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005372/0.3596, allocations: 6.125 kB / 431.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006265/0.3602, allocations: 97.89 kB / 431.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003144/0.3605, allocations: 126.9 kB / 431.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.3616, allocations: 417.8 kB / 432.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008386/0.3624, allocations: 0.8182 MB / 433.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.3626, allocations: 64.67 kB / 433.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.3631, allocations: 379.1 kB / 433.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001552/0.3646, allocations: 1.462 MB / 435 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.3648, allocations: 68.75 kB / 435 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003144/0.3651, allocations: 135 kB / 435.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.3654, allocations: 235.5 kB / 435.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.3657, allocations: 359.9 kB / 435.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.3669, allocations: 0.9165 MB / 436.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3669, allocations: 1.953 kB / 436.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3669, allocations: 0 / 436.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3669, allocations: 0 / 436.7 MB, free: 7.645 MB / 350.1 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.003976/0.3709, allocations: 1.373 MB / 438 MB, free: 6.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3709, allocations: 9.953 kB / 438 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005281/0.3715, allocations: 99.53 kB / 438.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006183/0.3721, allocations: 445.7 kB / 438.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.3721, allocations: 29.78 kB / 438.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.3722, allocations: 36.34 kB / 438.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.3738, allocations: 0.6414 MB / 439.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.3739, allocations: 6.891 kB / 439.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.374, allocations: 16.58 kB / 439.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.374, allocations: 9.312 kB / 439.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002028/0.376, allocations: 0.6913 MB / 440 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003973/0.38, allocations: 1.665 MB / 441.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.3814, allocations: 480.4 kB / 442.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008642/0.3822, allocations: 286 kB / 442.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.208e-05/0.3823, allocations: 9.234 kB / 442.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.3835, allocations: 488.6 kB / 442.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.215e-06/0.3835, allocations: 0 / 442.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009426/0.3929, allocations: 2.815 MB / 445.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.393, allocations: 86.48 kB / 445.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.3942, allocations: 0.9156 MB / 446.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.783e-05/0.3942, allocations: 52.72 kB / 446.8 MB, free: 3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.3944, allocations: 300.8 kB / 447.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.3946, allocations: 174.3 kB / 447.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.3948, allocations: 120 kB / 447.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.395, allocations: 389.9 kB / 447.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/0.3959, allocations: 324.5 kB / 448 MB, free: 2.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009666/0.3969, allocations: 416.6 kB / 448.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.3983, allocations: 0.507 MB / 449 MB, free: 1.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3983, allocations: 1.438 kB / 449 MB, free: 1.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00282/0.4011, allocations: 0.9881 MB / 450 MB, free: 1.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.4012, allocations: 6.562 kB / 450 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4012, allocations: 7.156 kB / 450 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.4022, allocations: 0.5534 MB / 450.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004996/0.4027, allocations: 112.8 kB / 450.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006347/0.4091, allocations: 4.735 MB / 455.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/0.4107, allocations: 230 kB / 455.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/0.4108, allocations: 24.48 kB / 455.6 MB, free: 12.74 MB / 366.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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006285/0.4114, allocations: 261.6 kB / 455.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.4116, allocations: 78 kB / 455.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.4118, allocations: 107.7 kB / 456 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4118, allocations: 5.469 kB / 456.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.4118, allocations: 2.562 kB / 456.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.4118, allocations: 1.344 kB / 456.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.415, allocations: 1.417 MB / 457.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.415, allocations: 1.312 kB / 457.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.4155, allocations: 85.78 kB / 457.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.4165, allocations: 0.5195 MB / 458.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.707e-05/0.4166, allocations: 25.28 kB / 458.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005824/0.4224, allocations: 4.35 MB / 462.5 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4224, allocations: 1.469 kB / 462.5 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.4263, allocations: 1.262 MB / 463.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004726/0.4268, allocations: 218.8 kB / 463.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.4269, allocations: 23.72 kB / 464 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.4287, allocations: 279.3 kB / 464.2 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001478/0.4301, allocations: 0.5669 MB / 464.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.851e-05/0.4302, allocations: 25.03 kB / 464.8 MB, free: 5.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009141/0.4311, allocations: 0.67 MB / 465.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4311, allocations: 1.469 kB / 465.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001023/0.4321, allocations: 178.5 kB / 465.7 MB, free: 5.281 MB / 366.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001499/0.4336, allocations: 394.7 kB / 466 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002615/0.4363, allocations: 0.9186 MB / 467 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.4363, allocations: 1.594 kB / 467 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.4378, allocations: 0.6488 MB / 467.6 MB, free: 4.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007287/0.4385, allocations: 78.91 kB / 467.7 MB, free: 4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004613/0.4432, allocations: 1.916 MB / 469.6 MB, free: 2.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.4437, allocations: 0.9297 MB / 470.5 MB, free: 2.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.444, allocations: 44.19 kB / 470.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.4441, allocations: 41.08 kB / 470.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4441, allocations: 0 / 470.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of Templates: time 0.02966/0.4738, allocations: 15.97 MB / 486.6 MB, free: 3.379 MB / 382.1 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.294526265002787]