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.002017/0.002017, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.002587/0.002587, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.52/1.52, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001504/0.001504, allocations: 47.92 kB / 374.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1163, allocations: 53.33 MB / 427.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004926/0.1212, allocations: 3.125 MB / 430.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2146/0.3358, allocations: 1.338 MB / 431.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003968/0.3362, allocations: 8.531 kB / 431.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005078/0.3367, allocations: 101.1 kB / 432 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.337, allocations: 127 kB / 432.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008616/0.3378, allocations: 422.5 kB / 432.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006913/0.3385, allocations: 0.8196 MB / 433.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.3387, allocations: 64.17 kB / 433.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004116/0.3391, allocations: 385 kB / 433.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.3406, allocations: 1.466 MB / 435.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3407, allocations: 72.34 kB / 435.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.3409, allocations: 132.1 kB / 435.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.3412, allocations: 233.4 kB / 435.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.3415, allocations: 357.4 kB / 436.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.3425, allocations: 0.9206 MB / 437 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3425, allocations: 0 / 437 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3425, allocations: 0 / 437 MB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.3425, allocations: 1.344 kB / 437 MB, free: 7.633 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.003826/0.3463, allocations: 1.373 MB / 438.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3464, allocations: 9.344 kB / 438.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005076/0.3469, allocations: 101.1 kB / 438.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/0.3474, allocations: 446 kB / 438.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.3475, allocations: 31.34 kB / 438.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.43e-05/0.3476, allocations: 35.16 kB / 439 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3491, allocations: 0.6393 MB / 439.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.3491, allocations: 5.844 kB / 439.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.3492, allocations: 15.94 kB / 439.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.3492, allocations: 8.906 kB / 439.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.3511, allocations: 0.702 MB / 440.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.3547, allocations: 1.653 MB / 442 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.3561, allocations: 483.2 kB / 442.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008091/0.3569, allocations: 284.6 kB / 442.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.555e-05/0.3569, allocations: 13 kB / 442.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.3581, allocations: 490.6 kB / 443.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.3581, allocations: 0 / 443.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009335/0.3674, allocations: 2.815 MB / 446.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.3674, allocations: 85.17 kB / 446.1 MB, free: 3.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.3686, allocations: 0.9175 MB / 447.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.325e-05/0.3687, allocations: 48.25 kB / 447.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.3689, allocations: 304 kB / 447.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.369, allocations: 173.7 kB / 447.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.3693, allocations: 121.7 kB / 447.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3694, allocations: 384.3 kB / 448.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000894/0.3703, allocations: 322.4 kB / 448.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009486/0.3712, allocations: 419.4 kB / 448.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.3726, allocations: 0.5083 MB / 449.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3726, allocations: 0 / 449.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002652/0.3753, allocations: 0.9832 MB / 450.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3753, allocations: 5.75 kB / 450.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3753, allocations: 10.53 kB / 450.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.3763, allocations: 0.5504 MB / 450.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.3769, allocations: 115.1 kB / 451 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006249/0.3831, allocations: 4.73 MB / 455.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.3846, allocations: 228.6 kB / 455.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.3847, allocations: 24.2 kB / 455.9 MB, free: 12.64 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.0005331/0.3852, allocations: 258.1 kB / 456.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.3854, allocations: 78.62 kB / 456.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002265/0.3856, allocations: 110.9 kB / 456.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3856, allocations: 6.375 kB / 456.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3856, allocations: 0 / 456.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3856, allocations: 1.125 kB / 456.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/0.3888, allocations: 1.423 MB / 457.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3888, allocations: 1.094 kB / 457.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.3893, allocations: 85 kB / 457.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009986/0.3903, allocations: 0.5137 MB / 458.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.702e-05/0.3904, allocations: 21.81 kB / 458.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008456/0.3988, allocations: 4.362 MB / 462.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3988, allocations: 0.9062 kB / 462.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005495/0.4043, allocations: 1.263 MB / 464.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005644/0.4049, allocations: 226 kB / 464.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.4051, allocations: 20.34 kB / 464.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002715/0.4078, allocations: 275.5 kB / 464.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002176/0.41, allocations: 0.5666 MB / 465.1 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.4101, allocations: 24.78 kB / 465.2 MB, free: 5.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001277/0.4114, allocations: 0.6701 MB / 465.8 MB, free: 5.199 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4114, allocations: 0 / 465.8 MB, free: 5.199 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001517/0.4129, allocations: 186.9 kB / 466 MB, free: 5.172 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.001993/0.4149, allocations: 397.2 kB / 466.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00367/0.4186, allocations: 0.9184 MB / 467.3 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/0.4186, allocations: 5.219 kB / 467.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.4206, allocations: 0.6025 MB / 467.9 MB, free: 3.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.4219, allocations: 76.91 kB / 468 MB, free: 3.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006668/0.4286, allocations: 1.955 MB / 469.9 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008014/0.4294, allocations: 0.9333 MB / 470.9 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.4296, allocations: 50.44 kB / 470.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4296, allocations: 0 / 470.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of Templates: time 0.0245/0.4541, allocations: 14.19 MB / 485.1 MB, free: 5.012 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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: 9.094831030000933]