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.001501/0.001501, allocations: 104.5 kB / 19.8 MB, free: 2.516 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.001762/0.001762, allocations: 214.7 kB / 23 MB, free: 5.609 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.431/1.431, allocations: 230.2 MB / 256.2 MB, free: 8.551 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.001893/0.001893, allocations: 67.89 kB / 376.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2746, allocations: 53.32 MB / 429.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004792/0.2794, allocations: 3.139 MB / 432.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.2819, allocations: 1.352 MB / 434.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.2821, allocations: 4 kB / 434.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.2828, allocations: 103.2 kB / 434.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.283, allocations: 126.9 kB / 434.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.2841, allocations: 418.3 kB / 434.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000973/0.2851, allocations: 0.823 MB / 435.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.2853, allocations: 69.58 kB / 435.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005349/0.2858, allocations: 375.1 kB / 436.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.2874, allocations: 1.471 MB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2875, allocations: 68 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002395/0.2878, allocations: 139.9 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.288, allocations: 231.8 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003401/0.2883, allocations: 358 kB / 438.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.2893, allocations: 0.9079 MB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2894, allocations: 0 / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2894, allocations: 3.938 kB / 439.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.2894, allocations: 0 / 439.3 MB, free: 13.99 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.003629/0.293, allocations: 1.374 MB / 440.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.2931, allocations: 12.03 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.2935, allocations: 108.4 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.2942, allocations: 444 kB / 441.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.397e-05/0.2942, allocations: 29.38 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.539e-05/0.2943, allocations: 36.38 kB / 441.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.2958, allocations: 0.6343 MB / 442 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.2958, allocations: 7.953 kB / 442 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.871e-05/0.2959, allocations: 23.94 kB / 442 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2959, allocations: 8 kB / 442 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00191/0.2978, allocations: 0.6898 MB / 442.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.3013, allocations: 1.659 MB / 444.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.3026, allocations: 480.8 kB / 444.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000808/0.3034, allocations: 288.4 kB / 445.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.32e-05/0.3035, allocations: 8.281 kB / 445.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.3046, allocations: 498.2 kB / 445.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.643e-06/0.3046, allocations: 0 / 445.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008703/0.3133, allocations: 2.809 MB / 448.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.3133, allocations: 93.09 kB / 448.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.3143, allocations: 0.9181 MB / 449.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.28e-05/0.3144, allocations: 45.7 kB / 449.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.3147, allocations: 304.7 kB / 449.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3148, allocations: 174.6 kB / 449.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.3151, allocations: 126.2 kB / 450 MB, free: 2.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.3153, allocations: 386.7 kB / 450.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008777/0.3162, allocations: 321.1 kB / 450.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009565/0.3171, allocations: 422.9 kB / 451.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.3185, allocations: 0.5032 MB / 451.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3185, allocations: 0 / 451.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002698/0.3212, allocations: 0.9836 MB / 452.6 MB, free: 180 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3212, allocations: 15.94 kB / 452.6 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3212, allocations: 4 kB / 452.7 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.3223, allocations: 0.5528 MB / 453.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.3228, allocations: 111.9 kB / 453.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006318/0.3292, allocations: 4.732 MB / 458 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.3305, allocations: 231.7 kB / 458.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.3306, allocations: 27.98 kB / 458.3 MB, free: 10.2 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.0004284/0.331, allocations: 256 kB / 458.6 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3311, allocations: 71.52 kB / 458.6 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.3313, allocations: 106.2 kB / 458.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3313, allocations: 4 kB / 458.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3314, allocations: 3.984 kB / 458.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3314, allocations: 4 kB / 458.7 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003086/0.3344, allocations: 1.404 MB / 460.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3344, allocations: 0 / 460.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.3349, allocations: 95.97 kB / 460.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009858/0.3359, allocations: 0.5177 MB / 460.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.336, allocations: 23.97 kB / 460.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00566/0.3416, allocations: 4.352 MB / 465.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3416, allocations: 3.938 kB / 465.1 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.3451, allocations: 1.261 MB / 466.4 MB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.3455, allocations: 216.5 kB / 466.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.3456, allocations: 24.38 kB / 466.6 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.3471, allocations: 271.6 kB / 466.9 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00141/0.3486, allocations: 0.5694 MB / 467.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-05/0.3486, allocations: 27.97 kB / 467.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007413/0.3494, allocations: 0.6748 MB / 468.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3494, allocations: 0 / 468.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007631/0.3501, allocations: 176 kB / 468.3 MB, free: 15.71 MB / 382.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.001366/0.3515, allocations: 394.7 kB / 468.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3539, allocations: 0.9181 MB / 469.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.3539, allocations: 16.05 kB / 469.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.3554, allocations: 0.645 MB / 470.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000641/0.356, allocations: 79.09 kB / 470.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.3603, allocations: 1.92 MB / 472.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.361, allocations: 0.9374 MB / 473.2 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002363/0.3612, allocations: 39.28 kB / 473.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3614, allocations: 47.36 kB / 473.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3614, allocations: 0 / 473.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of Templates: time 0.02769/0.3891, allocations: 16.35 MB / 489.7 MB, free: 10.39 MB / 398.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.12756871804595]