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.001373/0.001373, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 14.72 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.001327/0.001327, allocations: 160.2 kB / 24.49 MB, free: 3.461 MB / 14.72 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.399/1.399, allocations: 173.4 MB / 201 MB, free: 12.71 MB / 190.1 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 0.001541/0.001541, allocations: 51.61 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09169, allocations: 52.16 MB / 371.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004401/0.09609, allocations: 2.794 MB / 374.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.0981, allocations: 1.126 MB / 375.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.09824, allocations: 11.94 kB / 375.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.0986, allocations: 79.28 kB / 375.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.09881, allocations: 114.9 kB / 375.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008555/0.09966, allocations: 422.1 kB / 376.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008121/0.1005, allocations: 0.8035 MB / 376.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1006, allocations: 61.7 kB / 376.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00048/0.1011, allocations: 371.1 kB / 377.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.1027, allocations: 1.318 MB / 378.6 MB, free: 280 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.1028, allocations: 68 kB / 378.7 MB, free: 212 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.103, allocations: 120 kB / 378.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002509/0.1033, allocations: 227.8 kB / 379 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.1036, allocations: 294.5 kB / 379.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009705/0.1046, allocations: 0.8911 MB / 380.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1046, allocations: 0 / 380.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1046, allocations: 0 / 380.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1046, allocations: 0 / 380.2 MB, free: 14.68 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003965/0.1086, allocations: 1.408 MB / 381.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1086, allocations: 12.92 kB / 381.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.1087, allocations: 88.41 kB / 381.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006062/0.1094, allocations: 366.2 kB / 382.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/0.1094, allocations: 29.38 kB / 382.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.609e-05/0.1095, allocations: 36.38 kB / 382.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.1114, allocations: 1.161 MB / 383.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.1114, allocations: 4 kB / 383.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.493e-05/0.1115, allocations: 20 kB / 383.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1115, allocations: 8 kB / 383.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002838/0.1143, allocations: 1.744 MB / 385.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004286/0.1186, allocations: 2.238 MB / 387.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.1203, allocations: 0.8952 MB / 388.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.1215, allocations: 0.7083 MB / 388.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.141e-05/0.1216, allocations: 8 kB / 388.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001538/0.1231, allocations: 0.8974 MB / 389.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.763e-06/0.1231, allocations: 0 / 389.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01176/0.1349, allocations: 5.422 MB / 395.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.135, allocations: 89.11 kB / 395.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.1362, allocations: 0.9063 MB / 396.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.394e-05/0.1363, allocations: 49.69 kB / 396.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.1365, allocations: 292.7 kB / 396.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.1367, allocations: 182.6 kB / 396.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.1369, allocations: 110.3 kB / 396.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1371, allocations: 386.8 kB / 397.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.1385, allocations: 0.8447 MB / 398.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.14, allocations: 0.9401 MB / 399 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.1424, allocations: 1.467 MB / 400.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1424, allocations: 0 / 400.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004091/0.1465, allocations: 2.471 MB / 403 MB, free: 7.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1465, allocations: 7.984 kB / 403 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1465, allocations: 8.031 kB / 403 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/0.1487, allocations: 1.896 MB / 404.9 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.1493, allocations: 107.9 kB / 405 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008253/0.1575, allocations: 6.431 MB / 411.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.159, allocations: 235.7 kB / 411.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.1591, allocations: 23.98 kB / 411.7 MB, free: 14.61 MB / 382.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003725/0.1594, allocations: 260.3 kB / 411.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.1596, allocations: 71.52 kB / 412 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.1598, allocations: 102.2 kB / 412.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1598, allocations: 4 kB / 412.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1598, allocations: 0 / 412.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1598, allocations: 3.984 kB / 412.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.1642, allocations: 2.911 MB / 415 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1642, allocations: 0 / 415 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005162/0.1647, allocations: 91.92 kB / 415.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/0.1669, allocations: 1.861 MB / 417 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.399e-05/0.1669, allocations: 31.95 kB / 417 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007575/0.1745, allocations: 6.047 MB / 423 MB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1745, allocations: 3.984 kB / 423 MB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005429/0.1799, allocations: 3.231 MB / 426.3 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.1803, allocations: 139.4 kB / 426.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.1804, allocations: 20 kB / 426.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001834/0.1822, allocations: 275.6 kB / 426.7 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001546/0.1838, allocations: 0.5732 MB / 427.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.938e-05/0.1838, allocations: 35.95 kB / 427.3 MB, free: 14.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007339/0.1846, allocations: 0.6631 MB / 428 MB, free: 13.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1846, allocations: 0 / 428 MB, free: 13.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007595/0.1853, allocations: 192 kB / 428.2 MB, free: 13.78 MB / 398.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002741/0.1856, allocations: 151.5 kB / 428.3 MB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003245/0.1889, allocations: 1.874 MB / 430.2 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1889, allocations: 0 / 430.2 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.1907, allocations: 1.083 MB / 431.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.1913, allocations: 70.89 kB / 431.3 MB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.1956, allocations: 1.973 MB / 433.3 MB, free: 8.527 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.1959, allocations: 318.7 kB / 433.6 MB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001992/0.1961, allocations: 47.27 kB / 433.7 MB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.1963, allocations: 44.48 kB / 433.7 MB, free: 8.109 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1963, allocations: 0 / 433.7 MB, free: 8.109 MB / 398.1 MB Notification: Performance of Templates: time 0.03171/0.228, allocations: 19.63 MB / 453.3 MB, free: 4.473 MB / 414.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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.34444098896347]