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.001533/0.001533, allocations: 111.9 kB / 19.18 MB, free: 3.762 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.001705/0.001705, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.51/1.51, allocations: 230.2 MB / 255.2 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.001854/0.001854, allocations: 59.91 kB / 374.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.104, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004754/0.1088, allocations: 3.129 MB / 431 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.1114, allocations: 1.348 MB / 432.3 MB, free: 16 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.1116, allocations: 7.938 kB / 432.3 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.208/0.3196, allocations: 94.92 kB / 432.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003916/0.32, allocations: 122 kB / 432.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.321, allocations: 423.8 kB / 432.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009313/0.3219, allocations: 0.8159 MB / 433.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.3221, allocations: 62.77 kB / 433.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.3226, allocations: 377.5 kB / 434.2 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.3243, allocations: 1.469 MB / 435.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.3244, allocations: 69.12 kB / 435.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003/0.3247, allocations: 131 kB / 435.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002434/0.325, allocations: 234.4 kB / 436.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003308/0.3253, allocations: 357.4 kB / 436.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.3264, allocations: 0.9194 MB / 437.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3264, allocations: 1.469 kB / 437.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3264, allocations: 4 kB / 437.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.3265, allocations: 0.5625 kB / 437.3 MB, free: 8.176 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.003905/0.3304, allocations: 1.369 MB / 438.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3304, allocations: 9.094 kB / 438.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005104/0.3309, allocations: 105.1 kB / 438.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005681/0.3315, allocations: 446.9 kB / 439.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/0.3315, allocations: 29.25 kB / 439.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3316, allocations: 37.53 kB / 439.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.3331, allocations: 0.6424 MB / 440 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.3331, allocations: 5.328 kB / 440 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.453e-05/0.3332, allocations: 17.27 kB / 440 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.3332, allocations: 8.656 kB / 440 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.3352, allocations: 0.6929 MB / 440.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.3389, allocations: 1.657 MB / 442.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.3403, allocations: 477.5 kB / 442.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008256/0.3411, allocations: 288.3 kB / 443.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.401e-05/0.3412, allocations: 7.344 kB / 443.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3424, allocations: 493.4 kB / 443.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.214e-06/0.3424, allocations: 3.938 kB / 443.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009177/0.3516, allocations: 2.811 MB / 446.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.3516, allocations: 90.47 kB / 446.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.3526, allocations: 0.9173 MB / 447.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/0.3527, allocations: 47.58 kB / 447.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3529, allocations: 306.6 kB / 447.8 MB, free: 3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.353, allocations: 175.6 kB / 447.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.3533, allocations: 120.9 kB / 448 MB, free: 2.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3534, allocations: 384.5 kB / 448.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009267/0.3543, allocations: 329.7 kB / 448.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009406/0.3552, allocations: 411.7 kB / 449.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3566, allocations: 0.5107 MB / 449.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3566, allocations: 0 / 449.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002751/0.3594, allocations: 0.9878 MB / 450.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.3594, allocations: 5.5 kB / 450.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3594, allocations: 6.688 kB / 450.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009994/0.3604, allocations: 0.5475 MB / 451.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005106/0.3609, allocations: 108.6 kB / 451.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/0.3673, allocations: 4.749 MB / 456.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.3689, allocations: 231.3 kB / 456.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.369, allocations: 20.62 kB / 456.3 MB, free: 12.97 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.0005356/0.3695, allocations: 250.4 kB / 456.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3697, allocations: 86.05 kB / 456.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.3699, allocations: 104.3 kB / 456.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3699, allocations: 9.062 kB / 456.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.37, allocations: 3.938 kB / 456.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.37, allocations: 1.406 kB / 456.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.3733, allocations: 1.415 MB / 458.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3733, allocations: 0 / 458.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005153/0.3738, allocations: 89.06 kB / 458.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.3748, allocations: 0.5111 MB / 458.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.102e-05/0.3749, allocations: 27 kB / 458.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006047/0.3809, allocations: 4.357 MB / 463.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3809, allocations: 1.031 kB / 463.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/0.3848, allocations: 1.263 MB / 464.4 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003815/0.3852, allocations: 214.2 kB / 464.6 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.3853, allocations: 20.69 kB / 464.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.3872, allocations: 266.6 kB / 464.9 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001499/0.3887, allocations: 0.5785 MB / 465.5 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.3887, allocations: 25.62 kB / 465.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000837/0.3896, allocations: 0.6695 MB / 466.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3896, allocations: 0 / 466.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008764/0.3905, allocations: 183.5 kB / 466.4 MB, free: 5.504 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.001428/0.3919, allocations: 402.1 kB / 466.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.3945, allocations: 0.9186 MB / 467.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3945, allocations: 1 kB / 467.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.3959, allocations: 0.6072 MB / 468.3 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006883/0.3966, allocations: 76.42 kB / 468.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.4012, allocations: 1.967 MB / 470.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.4018, allocations: 0.9282 MB / 471.2 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.402, allocations: 51 kB / 471.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.402, allocations: 0 / 471.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of Templates: time 0.02166/0.4236, allocations: 14.19 MB / 485.5 MB, free: 5.359 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.953253398882225]