Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001319/0.001319, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001425/0.001425, allocations: 211.8 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.586/1.586, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.86 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2559, allocations: 53.36 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004456/0.2604, allocations: 2.905 MB / 434.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002469/0.2629, allocations: 1.293 MB / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.263, allocations: 4 kB / 435.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004347/0.2635, allocations: 103.2 kB / 435.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002316/0.2637, allocations: 126.8 kB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008423/0.2645, allocations: 434.3 kB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000814/0.2654, allocations: 0.8154 MB / 437.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.2655, allocations: 69.69 kB / 437.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005293/0.2661, allocations: 375.1 kB / 437.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.2677, allocations: 1.436 MB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.2678, allocations: 72 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.2681, allocations: 136 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002416/0.2684, allocations: 235.8 kB / 439.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.2686, allocations: 298.4 kB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009779/0.2696, allocations: 0.9284 MB / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2696, allocations: 0 / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2696, allocations: 0 / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2696, allocations: 0 / 440.7 MB, free: 13.52 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.00379/0.2734, allocations: 1.439 MB / 442.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.2735, allocations: 12.03 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004743/0.2739, allocations: 100.4 kB / 442.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006526/0.2746, allocations: 374.2 kB / 442.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.577e-05/0.2746, allocations: 29.38 kB / 442.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.316e-05/0.2747, allocations: 44.31 kB / 442.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.2763, allocations: 0.6458 MB / 443.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.2763, allocations: 3.953 kB / 443.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.2764, allocations: 16 kB / 443.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.2764, allocations: 12 kB / 443.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.2784, allocations: 0.6779 MB / 444.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004015/0.2824, allocations: 1.441 MB / 445.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.2839, allocations: 479.7 kB / 446 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008768/0.2848, allocations: 289.6 kB / 446.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.2848, allocations: 4 kB / 446.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.2861, allocations: 490.8 kB / 446.8 MB, free: 7.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 4.228e-06/0.2861, allocations: 3.984 kB / 446.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009124/0.2952, allocations: 2.433 MB / 449.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.2952, allocations: 89.09 kB / 449.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.2964, allocations: 0.9218 MB / 450.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.731e-05/0.2965, allocations: 49.69 kB / 450.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.2968, allocations: 300.6 kB / 450.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.2969, allocations: 170.7 kB / 450.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.2972, allocations: 122.3 kB / 450.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.2974, allocations: 382.7 kB / 451.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009304/0.2983, allocations: 325.1 kB / 451.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.2994, allocations: 411 kB / 451.9 MB, free: 2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3009, allocations: 0.5134 MB / 452.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3009, allocations: 0 / 452.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002857/0.3037, allocations: 0.9832 MB / 453.4 MB, free: 472 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3038, allocations: 8 kB / 453.4 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3038, allocations: 0 / 453.4 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.3049, allocations: 0.5568 MB / 454 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.3055, allocations: 111.9 kB / 454.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006884/0.3124, allocations: 4.448 MB / 458.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/0.3139, allocations: 235.7 kB / 458.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.307e-05/0.314, allocations: 27.98 kB / 458.8 MB, free: 10.84 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.0005407/0.3145, allocations: 254.9 kB / 459.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.3147, allocations: 75.53 kB / 459.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.3149, allocations: 106.1 kB / 459.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3149, allocations: 12.03 kB / 459.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3149, allocations: 0 / 459.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3149, allocations: 7.922 kB / 459.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.318, allocations: 1.219 MB / 460.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.318, allocations: 4 kB / 460.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000468/0.3185, allocations: 83.88 kB / 460.6 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009891/0.3195, allocations: 0.51 MB / 461.1 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/0.3196, allocations: 31.84 kB / 461.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005981/0.3255, allocations: 4.079 MB / 465.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3255, allocations: 0 / 465.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/0.3292, allocations: 1.259 MB / 466.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003672/0.3296, allocations: 143.3 kB / 466.6 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.3297, allocations: 20 kB / 466.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/0.3315, allocations: 267.6 kB / 466.9 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001428/0.3329, allocations: 0.5771 MB / 467.4 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.622e-05/0.333, allocations: 35.95 kB / 467.5 MB, free: 1.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008027/0.3338, allocations: 0.6592 MB / 468.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3338, allocations: 0 / 468.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008174/0.3346, allocations: 184 kB / 468.3 MB, free: 1 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.001557/0.3361, allocations: 429.9 kB / 468.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.3386, allocations: 0.9181 MB / 469.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3386, allocations: 0 / 469.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.3401, allocations: 0.6503 MB / 470.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006741/0.3408, allocations: 85.34 kB / 470.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.3452, allocations: 1.919 MB / 472.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.3456, allocations: 330.7 kB / 472.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.3458, allocations: 43.28 kB / 472.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.346, allocations: 47.41 kB / 472.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.346, allocations: 0 / 472.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of Templates: time 0.0255/0.3715, allocations: 14.8 MB / 487.5 MB, free: 13.88 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.417381728067994]