Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001723/0.001723, allocations: 79.73 kB / 21.25 MB, free: 392 kB / 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.002127/0.002127, allocations: 162.5 kB / 24.5 MB, free: 3.449 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.487/1.487, allocations: 177.1 MB / 204.7 MB, free: 9.035 MB / 190.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.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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 62.05 kB / 325.5 MB, free: 232 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09993, allocations: 53.39 MB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003999/0.1039, allocations: 2.424 MB / 381.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.105, allocations: 0.5656 MB / 381.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1051, allocations: 7.938 kB / 381.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.1054, allocations: 75.41 kB / 382 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.1057, allocations: 131.1 kB / 382.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.106, allocations: 171.7 kB / 382.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.1066, allocations: 0.5109 MB / 382.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.1067, allocations: 48.84 kB / 382.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.107, allocations: 235.4 kB / 383.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003594/0.1074, allocations: 235.1 kB / 383.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.009e-05/0.1075, allocations: 40 kB / 383.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.1077, allocations: 91.98 kB / 383.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.1078, allocations: 123.6 kB / 383.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.108, allocations: 163.3 kB / 383.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006002/0.1086, allocations: 0.5098 MB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1086, allocations: 0 / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.889e-06/0.1087, allocations: 3.984 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1087, allocations: 0 / 384.2 MB, free: 10.21 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001364/0.11, allocations: 0.6375 MB / 384.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1101, allocations: 8.031 kB / 384.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.1102, allocations: 44.64 kB / 384.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.1106, allocations: 245.8 kB / 385.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.1107, allocations: 25.03 kB / 385.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.1107, allocations: 28.38 kB / 385.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007334/0.1115, allocations: 378.5 kB / 385.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1115, allocations: 4.141 kB / 385.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.1115, allocations: 15.94 kB / 385.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1115, allocations: 8 kB / 385.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008169/0.1123, allocations: 386.3 kB / 386 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.1144, allocations: 0.9603 MB / 386.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006475/0.115, allocations: 313.1 kB / 387.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003894/0.1154, allocations: 184.8 kB / 387.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.1155, allocations: 4 kB / 387.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.1155, allocations: 38.56 kB / 387.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.014e-06/0.1155, allocations: 3.938 kB / 387.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004862/0.1204, allocations: 1.705 MB / 389.2 MB, free: 5.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.1204, allocations: 59.91 kB / 389.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003214/0.1207, allocations: 245.8 kB / 389.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.1208, allocations: 37.7 kB / 389.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1209, allocations: 164.9 kB / 389.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.1211, allocations: 170.6 kB / 389.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1212, allocations: 94.28 kB / 389.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1214, allocations: 346.8 kB / 390.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.1218, allocations: 185.2 kB / 390.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.1223, allocations: 277.8 kB / 390.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.1229, allocations: 350.7 kB / 391.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1229, allocations: 0 / 391.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001301/0.1242, allocations: 0.6082 MB / 391.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.1243, allocations: 8 kB / 391.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1243, allocations: 0 / 391.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008082/0.1251, allocations: 345.7 kB / 392 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.1254, allocations: 71.89 kB / 392.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.1269, allocations: 1.362 MB / 393.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.1273, allocations: 71.89 kB / 393.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.1274, allocations: 20 kB / 393.5 MB, free: 0.5195 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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002436/0.1276, allocations: 169.8 kB / 393.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.1277, allocations: 35.75 kB / 393.7 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1278, allocations: 47.62 kB / 393.8 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.1278, allocations: 7.938 kB / 393.8 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1279, allocations: 4 kB / 393.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1279, allocations: 3.984 kB / 393.8 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002847/0.1307, allocations: 1.193 MB / 395 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1307, allocations: 0 / 395 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.131, allocations: 55.92 kB / 395 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006436/0.1316, allocations: 309.6 kB / 395.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.1317, allocations: 23.92 kB / 395.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.133, allocations: 1.312 MB / 396.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.133, allocations: 4.031 kB / 396.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.1348, allocations: 0.9043 MB / 397.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/0.135, allocations: 79.91 kB / 397.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.699e-05/0.1351, allocations: 24 kB / 397.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.1354, allocations: 35.95 kB / 397.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.1356, allocations: 99.7 kB / 397.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.235e-05/0.1357, allocations: 15.98 kB / 397.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.1359, allocations: 181.2 kB / 398 MB, free: 11.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1359, allocations: 0 / 398 MB, free: 11.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004796/0.1364, allocations: 103.9 kB / 398.1 MB, free: 11.77 MB / 366.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.1378, allocations: 395.5 kB / 398.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.1389, allocations: 470 kB / 399 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1389, allocations: 0 / 399 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006289/0.1395, allocations: 275.7 kB / 399.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.14, allocations: 57.09 kB / 399.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.1425, allocations: 1.056 MB / 400.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/0.1427, allocations: 185.8 kB / 400.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.1429, allocations: 38.95 kB / 400.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.459e-05/0.143, allocations: 36.48 kB / 400.6 MB, free: 9.34 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.143, allocations: 3.938 kB / 400.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of Templates: time 0.01401/0.157, allocations: 7.405 MB / 408 MB, free: 1.996 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.6253380390116945]