Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 145.1 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.626/1.626, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.389e-05/4.575e-05, allocations: 9.766 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.006606/0.006651, allocations: 2.949 MB / 270.3 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.01016, allocations: 1.145 MB / 271.4 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003024/0.01046, allocations: 7.938 kB / 271.4 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000603/0.01106, allocations: 87.22 kB / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004183/0.01148, allocations: 126.8 kB / 271.6 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.01309, allocations: 419.1 kB / 272 MB, free: 2 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.01462, allocations: 0.8227 MB / 272.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.01489, allocations: 65.7 kB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.01606, allocations: 491.2 kB / 273.4 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003028/0.01909, allocations: 1.295 MB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.01935, allocations: 68 kB / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.0198, allocations: 116 kB / 274.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.02021, allocations: 227.8 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005288/0.02074, allocations: 243.3 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.02314, allocations: 0.9542 MB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.02314, allocations: 3.938 kB / 276.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.02314, allocations: 0 / 276.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.02316, allocations: 4 kB / 276.3 MB, free: 13.72 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005867/0.02902, allocations: 1.472 MB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.268e-05/0.0291, allocations: 16.91 kB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000403/0.0295, allocations: 108.4 kB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.03054, allocations: 376.3 kB / 278.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.9e-05/0.03063, allocations: 29.38 kB / 278.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.03082, allocations: 40.38 kB / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003474/0.03429, allocations: 1.105 MB / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.03432, allocations: 192 / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.03444, allocations: 20.12 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.03446, allocations: 12 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004855/0.03931, allocations: 1.58 MB / 281 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007962/0.04727, allocations: 2.312 MB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003013/0.05029, allocations: 0.8375 MB / 284.2 MB, free: 5.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/0.05222, allocations: 0.6319 MB / 284.8 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.05233, allocations: 12 kB / 284.8 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002625/0.05495, allocations: 0.8577 MB / 285.7 MB, free: 4.098 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 8.145e-06/0.05496, allocations: 4 kB / 285.7 MB, free: 4.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.1331/0.1881, allocations: 4.849 MB / 290.5 MB, free: 33.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1881, allocations: 89.47 kB / 290.6 MB, free: 33.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.1892, allocations: 0.9491 MB / 291.6 MB, free: 33.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.1893, allocations: 52.56 kB / 291.6 MB, free: 33.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.1896, allocations: 372.1 kB / 292 MB, free: 32.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.1898, allocations: 177.9 kB / 292.2 MB, free: 32.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.19, allocations: 141.2 kB / 292.3 MB, free: 32.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1902, allocations: 0.6001 MB / 292.9 MB, free: 32.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.1913, allocations: 0.7685 MB / 293.7 MB, free: 32.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.1924, allocations: 0.9107 MB / 294.6 MB, free: 31.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.1942, allocations: 1.364 MB / 295.9 MB, free: 31.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1942, allocations: 0 / 295.9 MB, free: 31.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003461/0.1977, allocations: 2.33 MB / 298.3 MB, free: 30.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1977, allocations: 6.406 kB / 298.3 MB, free: 30.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1977, allocations: 2.406 kB / 298.3 MB, free: 30.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.1995, allocations: 1.759 MB / 300 MB, free: 30.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.1999, allocations: 106.9 kB / 300.1 MB, free: 30.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.2055, allocations: 7.651 MB / 307.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009487/0.2065, allocations: 153.8 kB / 307.9 MB, free: 22.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/0.2066, allocations: 21.25 kB / 308 MB, free: 22.81 MB / 266.7 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002692/0.2068, allocations: 229.8 kB / 308.2 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.207, allocations: 83.58 kB / 308.3 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001956/0.2072, allocations: 91.3 kB / 308.4 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2072, allocations: 8 kB / 308.4 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.2072, allocations: 0 / 308.4 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.2072, allocations: 6.938 kB / 308.4 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.2103, allocations: 2.834 MB / 311.2 MB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.2103, allocations: 0 / 311.2 MB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.2107, allocations: 77.39 kB / 311.3 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.2119, allocations: 1.726 MB / 313 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.212, allocations: 23.91 kB / 313 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004714/0.2167, allocations: 7.141 MB / 320.2 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2167, allocations: 4 kB / 320.2 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.2201, allocations: 3.04 MB / 323.2 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.2204, allocations: 141.6 kB / 323.4 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.2205, allocations: 16 kB / 323.4 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.2216, allocations: 175.8 kB / 323.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/0.2226, allocations: 0.581 MB / 324.1 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.117e-05/0.2227, allocations: 27.97 kB / 324.2 MB, free: 6.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000455/0.2231, allocations: 0.6122 MB / 324.8 MB, free: 5.996 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2231, allocations: 0 / 324.8 MB, free: 5.996 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007092/0.2238, allocations: 190.5 kB / 325 MB, free: 5.812 MB / 266.7 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002264/0.2241, allocations: 155.4 kB / 325.1 MB, free: 5.656 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.2263, allocations: 1.895 MB / 327 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.2263, allocations: 6.016 kB / 327 MB, free: 3.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.2274, allocations: 1.094 MB / 328.1 MB, free: 2.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.228, allocations: 106.4 kB / 328.2 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.2308, allocations: 1.676 MB / 329.9 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.231, allocations: 318.5 kB / 330.2 MB, free: 472 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001939/0.2312, allocations: 35.28 kB / 330.2 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.2313, allocations: 48.48 kB / 330.3 MB, free: 388 kB / 266.7 MB Notification: Performance of SimCode: time 6.72e-07/0.2313, allocations: 4 kB / 330.3 MB, free: 384 kB / 266.7 MB Notification: Performance of Templates: time 0.03461/0.2659, allocations: 19.6 MB / 349.9 MB, free: 12.8 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.527165077044629]