Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.001712/0.001712, allocations: 120.5 kB / 18.41 MB, free: 4.551 MB / 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.001967/0.001967, allocations: 190.7 kB / 21.35 MB, free: 1.617 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.479/1.479, allocations: 222.9 MB / 247 MB, free: 4.336 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.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 51.92 kB / 358.7 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1068, allocations: 49.43 MB / 408.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004634/0.1115, allocations: 2.454 MB / 410.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.113, allocations: 499.2 kB / 411 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.1133, allocations: 4 kB / 411 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.1136, allocations: 47.52 kB / 411.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.114, allocations: 79.34 kB / 411.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006534/0.1146, allocations: 203.6 kB / 411.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007778/0.1154, allocations: 491.1 kB / 411.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.1157, allocations: 62.75 kB / 411.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.1161, allocations: 215.4 kB / 412.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.1167, allocations: 239.2 kB / 412.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.1168, allocations: 36 kB / 412.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.117, allocations: 87.89 kB / 412.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.1172, allocations: 103.6 kB / 412.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.1175, allocations: 183.2 kB / 412.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007275/0.1183, allocations: 466.3 kB / 413.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1183, allocations: 0 / 413.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1183, allocations: 0 / 413.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.1183, allocations: 4 kB / 413.2 MB, free: 1.844 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00164/0.1199, allocations: 0.6701 MB / 413.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.12, allocations: 8.031 kB / 413.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.1202, allocations: 36.7 kB / 413.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.1207, allocations: 296.6 kB / 414.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.1207, allocations: 20.94 kB / 414.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-05/0.1208, allocations: 28.38 kB / 414.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008347/0.1217, allocations: 381.2 kB / 414.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.311e-05/0.1217, allocations: 192 / 414.6 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.056e-05/0.1218, allocations: 19.94 kB / 414.6 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.1218, allocations: 4 kB / 414.6 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008789/0.1227, allocations: 409.9 kB / 415 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.125, allocations: 1.104 MB / 416.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.1256, allocations: 299.3 kB / 416.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.126, allocations: 197.8 kB / 416.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.1261, allocations: 4 kB / 416.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.1261, allocations: 38.5 kB / 416.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.673e-06/0.1261, allocations: 4 kB / 416.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004937/0.1311, allocations: 2.033 MB / 418.7 MB, free: 12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.1311, allocations: 59.34 kB / 418.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.1314, allocations: 237 kB / 419 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.715e-05/0.1315, allocations: 41.69 kB / 419 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1316, allocations: 161 kB / 419.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1318, allocations: 154.7 kB / 419.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.132, allocations: 102.2 kB / 419.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1322, allocations: 346.7 kB / 419.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004237/0.1326, allocations: 205 kB / 420 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.1331, allocations: 288.8 kB / 420.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007566/0.1339, allocations: 369.7 kB / 420.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1339, allocations: 4 kB / 420.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001563/0.1355, allocations: 0.6925 MB / 421.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1355, allocations: 8.156 kB / 421.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1355, allocations: 4 kB / 421.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009495/0.1365, allocations: 493.4 kB / 421.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.1368, allocations: 79.91 kB / 421.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.1383, allocations: 1.39 MB / 423.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004535/0.1388, allocations: 72.03 kB / 423.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.1389, allocations: 16 kB / 423.4 MB, free: 7.168 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002385/0.1391, allocations: 166.2 kB / 423.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.264e-05/0.1392, allocations: 35.75 kB / 423.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/0.1393, allocations: 47.31 kB / 423.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.1394, allocations: 7.984 kB / 423.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.1394, allocations: 0 / 423.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.1394, allocations: 0 / 423.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.1425, allocations: 1.353 MB / 425 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.1425, allocations: 0 / 425 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.1428, allocations: 59.91 kB / 425 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008283/0.1436, allocations: 465.5 kB / 425.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.1437, allocations: 15.98 kB / 425.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.145, allocations: 1.343 MB / 426.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1451, allocations: 0 / 426.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.147, allocations: 0.9482 MB / 427.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.1472, allocations: 156.9 kB / 428 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.1473, allocations: 23.94 kB / 428 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.1477, allocations: 35.95 kB / 428 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/0.1479, allocations: 83.86 kB / 428.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.1479, allocations: 23.97 kB / 428.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.1481, allocations: 168.5 kB / 428.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1481, allocations: 8 kB / 428.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000491/0.1486, allocations: 103.9 kB / 428.4 MB, free: 1.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002741/0.1489, allocations: 139.6 kB / 428.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.1501, allocations: 0.507 MB / 429 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1501, allocations: 4 kB / 429 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006136/0.1508, allocations: 295.7 kB / 429.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005205/0.1513, allocations: 56.48 kB / 429.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2047/0.356, allocations: 1.001 MB / 430.4 MB, free: 23.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.3562, allocations: 0.7784 MB / 431.2 MB, free: 22.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.3564, allocations: 36.83 kB / 431.2 MB, free: 22.77 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3564, allocations: 0 / 431.2 MB, free: 22.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01096/0.3674, allocations: 6.661 MB / 437.9 MB, free: 22.44 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.8027788590407]