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.001219/0.001219, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002002/0.00322, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001144/0.001144, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001622/0.002766, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.002/1.002, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08866/1.091, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.7 MB " [Timeout remaining time 179] 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 2.866e-06/2.866e-06, allocations: 3.938 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.374e-05/3.661e-05, allocations: 3.859 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004358/0.004394, allocations: 2.469 MB / 242 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.005719, allocations: 0.5029 MB / 242.5 MB, free: 200 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.005898, allocations: 7.938 kB / 242.5 MB, free: 192 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.006096, allocations: 51.56 kB / 242.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.00633, allocations: 83.22 kB / 242.6 MB, free: 56 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006407/0.006971, allocations: 195.6 kB / 242.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000644/0.007615, allocations: 490.9 kB / 243.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.007779, allocations: 58.77 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005155/0.008295, allocations: 315.4 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.008673, allocations: 199.5 kB / 243.9 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.189e-05/0.008745, allocations: 36 kB / 243.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.008995, allocations: 95.94 kB / 244 MB, free: 14.69 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.009106, allocations: 67.75 kB / 244.1 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.009241, allocations: 95.81 kB / 244.2 MB, free: 14.53 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.009736, allocations: 307 kB / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.865e-05/0.009754, allocations: 0 / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.009757, allocations: 3.984 kB / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.232e-05/0.009779, allocations: 0 / 244.5 MB, free: 14.23 MB / 250.7 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.001155/0.01093, allocations: 0.6243 MB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.01097, allocations: 8.031 kB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.01109, allocations: 44.91 kB / 245.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.01146, allocations: 206.2 kB / 245.3 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.01149, allocations: 24.97 kB / 245.4 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.54e-05/0.01156, allocations: 32.36 kB / 245.4 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005235/0.01208, allocations: 283.2 kB / 245.7 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.0121, allocations: 4.141 kB / 245.7 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.01214, allocations: 16.36 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.01215, allocations: 4.375 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.01251, allocations: 176.4 kB / 245.9 MB, free: 12.76 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.01391, allocations: 0.699 MB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.01424, allocations: 152.2 kB / 246.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.0144, allocations: 101.7 kB / 246.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.01444, allocations: 8 kB / 246.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.01447, allocations: 46.42 kB / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.164e-06/0.01448, allocations: 0 / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002877/0.01735, allocations: 1.177 MB / 248.1 MB, free: 10.46 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.01739, allocations: 59.34 kB / 248.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.01758, allocations: 217 kB / 248.3 MB, free: 10.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.01763, allocations: 41.7 kB / 248.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.916e-05/0.01772, allocations: 145 kB / 248.5 MB, free: 9.969 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.01785, allocations: 166.6 kB / 248.7 MB, free: 9.805 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.018, allocations: 90.09 kB / 248.8 MB, free: 9.711 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.01813, allocations: 342.8 kB / 249.1 MB, free: 9.367 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.01834, allocations: 88.95 kB / 249.2 MB, free: 9.281 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.01855, allocations: 164.3 kB / 249.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.01889, allocations: 250.5 kB / 249.6 MB, free: 8.828 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.01889, allocations: 0 / 249.6 MB, free: 8.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008037/0.01969, allocations: 408 kB / 250 MB, free: 8.414 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.01972, allocations: 7.938 kB / 250 MB, free: 8.406 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.01973, allocations: 4 kB / 250 MB, free: 8.402 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007053/0.02043, allocations: 393.4 kB / 250.4 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.02071, allocations: 79.91 kB / 250.5 MB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009143/0.02163, allocations: 1.194 MB / 251.6 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.02189, allocations: 52 kB / 251.7 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.02193, allocations: 12 kB / 251.7 MB, free: 6.625 MB / 250.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 (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.0001591/0.02209, allocations: 148.2 kB / 251.9 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.02216, allocations: 35.97 kB / 251.9 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-05/0.02224, allocations: 47.3 kB / 251.9 MB, free: 6.387 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.02225, allocations: 4 kB / 251.9 MB, free: 6.383 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.02226, allocations: 7.938 kB / 252 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.02226, allocations: 3.984 kB / 252 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.02393, allocations: 0.7876 MB / 252.7 MB, free: 5.539 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.02394, allocations: 0 / 252.7 MB, free: 5.539 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.0242, allocations: 71.91 kB / 252.8 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.02434, allocations: 51.77 kB / 252.9 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006049/0.02495, allocations: 377.5 kB / 253.2 MB, free: 5.043 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.02499, allocations: 19.97 kB / 253.3 MB, free: 5.023 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008079/0.0258, allocations: 1.179 MB / 254.4 MB, free: 3.793 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.0258, allocations: 4 kB / 254.4 MB, free: 3.789 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000993/0.02679, allocations: 0.5822 MB / 255 MB, free: 3.172 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.02687, allocations: 16 kB / 255 MB, free: 3.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.02707, allocations: 31.97 kB / 255.1 MB, free: 3.125 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.02725, allocations: 87.77 kB / 255.1 MB, free: 3.039 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-05/0.02729, allocations: 15.97 kB / 255.2 MB, free: 3.023 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.325e-05/0.02737, allocations: 66.8 kB / 255.2 MB, free: 2.953 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02737, allocations: 0 / 255.2 MB, free: 2.953 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000462/0.02783, allocations: 107.9 kB / 255.3 MB, free: 2.848 MB / 250.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.02809, allocations: 128.3 kB / 255.5 MB, free: 2.715 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.02871, allocations: 302.5 kB / 255.8 MB, free: 2.418 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/0.02873, allocations: 4.312 kB / 255.8 MB, free: 2.414 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.02908, allocations: 194.5 kB / 255.9 MB, free: 2.223 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.02957, allocations: 100.7 kB / 256 MB, free: 2.129 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.03211, allocations: 0.7533 MB / 256.8 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.422e-05/0.03219, allocations: 101.3 kB / 256.9 MB, free: 1.215 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.03234, allocations: 35.16 kB / 256.9 MB, free: 1.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.03252, allocations: 99.36 kB / 257 MB, free: 1.082 MB / 250.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03252, allocations: 0 / 257 MB, free: 1.082 MB / 250.7 MB Notification: Performance of Templates: time 0.01521/0.04773, allocations: 8.217 MB / 265.2 MB, free: 8.953 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.755721239373088]