Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 84.34 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 169.3 kB / 24.27 MB, free: 144 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.27e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004832/0.004865, allocations: 2.424 MB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.006271, allocations: 0.5655 MB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.006471, allocations: 4 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.006822, allocations: 67.42 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004697/0.007291, allocations: 147 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005045/0.007796, allocations: 167.6 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008298/0.008626, allocations: 0.5263 MB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.008823, allocations: 44.91 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006129/0.009436, allocations: 311.5 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004562/0.009892, allocations: 215.5 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.009995, allocations: 40 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.01024, allocations: 99.89 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.01044, allocations: 103.7 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002633/0.0107, allocations: 151.6 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.01171, allocations: 0.5452 MB / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01171, allocations: 0 / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.01171, allocations: 0 / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.01173, allocations: 0 / 277.7 MB, free: 12.45 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001624/0.01335, allocations: 0.6297 MB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.0134, allocations: 12.03 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.01359, allocations: 68.7 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005149/0.0141, allocations: 245 kB / 278.6 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.01414, allocations: 25.03 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.877e-05/0.01422, allocations: 32.31 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008597/0.01508, allocations: 378.4 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.0151, allocations: 4.141 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.01515, allocations: 12.38 kB / 279.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.01516, allocations: 8.375 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009257/0.01609, allocations: 390.3 kB / 279.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.01831, allocations: 0.9603 MB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007087/0.01902, allocations: 307.1 kB / 280.7 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.01945, allocations: 180.8 kB / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.0195, allocations: 8 kB / 280.9 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.01955, allocations: 42.48 kB / 281 MB, free: 9.031 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.094e-06/0.01955, allocations: 0 / 281 MB, free: 9.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.005531/0.02508, allocations: 1.718 MB / 282.7 MB, free: 7.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.02514, allocations: 59.91 kB / 282.7 MB, free: 7.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.02547, allocations: 249.7 kB / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.493e-05/0.02553, allocations: 41.69 kB / 283 MB, free: 6.883 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.02577, allocations: 161 kB / 283.2 MB, free: 6.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.02595, allocations: 170.6 kB / 283.3 MB, free: 6.555 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.02614, allocations: 98.28 kB / 283.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.02636, allocations: 342.8 kB / 283.8 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.02679, allocations: 193.2 kB / 284 MB, free: 5.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.02731, allocations: 265.8 kB / 284.2 MB, free: 5.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007439/0.02806, allocations: 362.6 kB / 284.6 MB, free: 5.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.02806, allocations: 0 / 284.6 MB, free: 5.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001426/0.02948, allocations: 0.6239 MB / 285.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.02951, allocations: 11.94 kB / 285.2 MB, free: 4.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.02952, allocations: 3.984 kB / 285.2 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008313/0.03035, allocations: 341.6 kB / 285.5 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002926/0.03064, allocations: 71.89 kB / 285.6 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.03231, allocations: 1.362 MB / 287 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.03278, allocations: 67.94 kB / 287 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.107e-05/0.03283, allocations: 20.12 kB / 287.1 MB, free: 2.695 MB / 266.7 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.0002321/0.03306, allocations: 169.7 kB / 287.2 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.03321, allocations: 47.77 kB / 287.3 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001406/0.03335, allocations: 55.66 kB / 287.3 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.03336, allocations: 4 kB / 287.3 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.03336, allocations: 3.938 kB / 287.3 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.03337, allocations: 3.984 kB / 287.3 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003343/0.03671, allocations: 1.196 MB / 288.5 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.03672, allocations: 0 / 288.5 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.03702, allocations: 55.92 kB / 288.6 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.03777, allocations: 305.7 kB / 288.9 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.03782, allocations: 19.98 kB / 288.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1118/0.1496, allocations: 1.311 MB / 290.2 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.1496, allocations: 6.188 kB / 290.2 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.1514, allocations: 0.9157 MB / 291.1 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.1516, allocations: 83.58 kB / 291.2 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.036e-05/0.1517, allocations: 17.14 kB / 291.2 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.152, allocations: 39.78 kB / 291.3 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.1522, allocations: 98.09 kB / 291.4 MB, free: 27.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.1523, allocations: 21.48 kB / 291.4 MB, free: 27.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1524, allocations: 178.3 kB / 291.6 MB, free: 27.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1524, allocations: 0.9062 kB / 291.6 MB, free: 27.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004495/0.1529, allocations: 99.58 kB / 291.7 MB, free: 27.82 MB / 266.7 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.00167/0.1545, allocations: 413.4 kB / 292.1 MB, free: 27.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.1556, allocations: 475.1 kB / 292.5 MB, free: 27.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1556, allocations: 1.062 kB / 292.5 MB, free: 27.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.1562, allocations: 285.4 kB / 292.8 MB, free: 27.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.1567, allocations: 94.61 kB / 292.9 MB, free: 27.47 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.1589, allocations: 0.9438 MB / 293.9 MB, free: 27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.1591, allocations: 182.5 kB / 294 MB, free: 26.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.1592, allocations: 34.55 kB / 294.1 MB, free: 26.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.1593, allocations: 40.5 kB / 294.1 MB, free: 26.9 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1593, allocations: 0 / 294.1 MB, free: 26.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01222/0.1715, allocations: 7.426 MB / 301.5 MB, free: 24.58 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.687802380067296]