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.001279/0.001279, allocations: 72.06 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.001311/0.001311, allocations: 161.4 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.477/1.477, allocations: 173.4 MB / 201.1 MB, free: 12.72 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.002533/0.002533, allocations: 47.8 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09955, allocations: 52.16 MB / 371.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003757/0.1033, allocations: 2.303 MB / 373.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009654/0.1043, allocations: 495.3 kB / 374.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.1044, allocations: 7.938 kB / 374.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.1046, allocations: 51.52 kB / 374.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.1047, allocations: 79.34 kB / 374.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005027/0.1052, allocations: 199.6 kB / 374.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.1057, allocations: 495 kB / 375.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1059, allocations: 44.86 kB / 375.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.1061, allocations: 215.4 kB / 375.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003203/0.1064, allocations: 223.2 kB / 375.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.566e-05/0.1065, allocations: 44 kB / 375.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1067, allocations: 91.94 kB / 375.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.1068, allocations: 103.7 kB / 375.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.107, allocations: 151.3 kB / 376 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005186/0.1075, allocations: 470.2 kB / 376.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1075, allocations: 0 / 376.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1075, allocations: 0 / 376.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1075, allocations: 0 / 376.5 MB, free: 2.445 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.001243/0.1088, allocations: 0.5949 MB / 377.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.1088, allocations: 12.92 kB / 377.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.1089, allocations: 36.7 kB / 377.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.1093, allocations: 222.9 kB / 377.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1093, allocations: 29.03 kB / 377.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.438e-05/0.1094, allocations: 28.38 kB / 377.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.1101, allocations: 382.5 kB / 377.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1101, allocations: 192 / 377.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.1101, allocations: 15.88 kB / 377.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1101, allocations: 8 kB / 377.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008053/0.1109, allocations: 406.3 kB / 378.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.1128, allocations: 0.9372 MB / 379.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005451/0.1134, allocations: 280.1 kB / 379.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.1139, allocations: 197.6 kB / 379.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.1139, allocations: 4 kB / 379.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1139, allocations: 38.5 kB / 379.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.643e-06/0.1139, allocations: 4 kB / 379.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.00469/0.1186, allocations: 1.727 MB / 381.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.1187, allocations: 59.41 kB / 381.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.1189, allocations: 233.7 kB / 381.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.671e-05/0.119, allocations: 41.69 kB / 381.7 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.1191, allocations: 149 kB / 381.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.1192, allocations: 162.7 kB / 382 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1194, allocations: 98.12 kB / 382.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1195, allocations: 338.8 kB / 382.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004095/0.1199, allocations: 208.9 kB / 382.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/0.1204, allocations: 284.3 kB / 382.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.1211, allocations: 386.6 kB / 383.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1211, allocations: 0 / 383.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001577/0.1227, allocations: 0.6979 MB / 384 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1227, allocations: 4 kB / 384 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1227, allocations: 4 kB / 384 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008722/0.1236, allocations: 493.5 kB / 384.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.1238, allocations: 71.91 kB / 384.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.1252, allocations: 1.398 MB / 385.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.1256, allocations: 67.91 kB / 386 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/0.1257, allocations: 16 kB / 386 MB, free: 8.531 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.0001998/0.1259, allocations: 158 kB / 386.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/0.126, allocations: 43.8 kB / 386.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1261, allocations: 43.31 kB / 386.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1261, allocations: 4 kB / 386.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.1261, allocations: 4 kB / 386.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1261, allocations: 3.984 kB / 386.3 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/0.1289, allocations: 1.199 MB / 387.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1289, allocations: 4.156 kB / 387.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.1292, allocations: 63.97 kB / 387.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007527/0.1299, allocations: 469.3 kB / 388 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.13, allocations: 19.97 kB / 388 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.1312, allocations: 1.335 MB / 389.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1312, allocations: 7.969 kB / 389.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.1331, allocations: 0.9526 MB / 390.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.1332, allocations: 79.77 kB / 390.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.034e-05/0.1333, allocations: 16 kB / 390.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003103/0.1336, allocations: 39.89 kB / 390.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.1338, allocations: 91.77 kB / 390.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.1339, allocations: 23.98 kB / 390.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.134, allocations: 161.2 kB / 390.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.134, allocations: 0 / 390.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.1345, allocations: 107.9 kB / 390.8 MB, free: 3.566 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.0002283/0.1347, allocations: 135.1 kB / 390.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.1358, allocations: 494.8 kB / 391.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.1358, allocations: 4 kB / 391.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.1364, allocations: 276 kB / 391.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.1369, allocations: 48.95 kB / 391.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.1391, allocations: 0.9738 MB / 392.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00019/0.1393, allocations: 173.8 kB / 392.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1395, allocations: 30.97 kB / 392.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.444e-05/0.1395, allocations: 40.44 kB / 393 MB, free: 1.348 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1395, allocations: 0 / 393 MB, free: 1.348 MB / 350.1 MB Notification: Performance of Templates: time 0.01373/0.1533, allocations: 7.305 MB / 400.3 MB, free: 10.12 MB / 366.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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.616116032004356]