Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.001675/0.001675, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001718/0.001718, allocations: 221.5 kB / 22.99 MB, free: 4.914 MB / 14.72 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.349/3.349, allocations: 0.5107 GB / 0.8166 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) 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(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002703/0.002703, allocations: 71.27 kB / 1.187 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.393, allocations: 181.9 MB / 1.365 GB, free: 13.66 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003284/0.3963, allocations: 1.426 MB / 1.366 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003829/0.4002, allocations: 2.405 MB / 1.368 GB, free: 9.809 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.4002, allocations: 0 / 1.368 GB, free: 9.809 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.4021, allocations: 0.5426 MB / 1.369 GB, free: 9.266 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.815e-05/0.4022, allocations: 23.84 kB / 1.369 GB, free: 9.242 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 4.248e-06/0.4022, allocations: 4 kB / 1.369 GB, free: 9.238 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.4025, allocations: 154.9 kB / 1.369 GB, free: 9.086 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 6.469e-05/0.4026, allocations: 16.53 kB / 1.369 GB, free: 9.066 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.4027, allocations: 67.66 kB / 1.369 GB, free: 9 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.4028, allocations: 79.58 kB / 1.369 GB, free: 8.922 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.4028, allocations: 4 kB / 1.369 GB, free: 8.918 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.4039, allocations: 407.5 kB / 1.37 GB, free: 8.52 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.111e-05/0.404, allocations: 35.83 kB / 1.37 GB, free: 8.484 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.4041, allocations: 83.42 kB / 1.37 GB, free: 8.402 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0009027/0.405, allocations: 434 kB / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.405, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.794e-06/0.405, allocations: 4 kB / 1.37 GB, free: 7.973 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.4051, allocations: 0 / 1.37 GB, free: 7.973 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0008581/0.4059, allocations: 488.8 kB / 1.371 GB, free: 7.461 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.4059, allocations: 11.97 kB / 1.371 GB, free: 7.449 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.4061, allocations: 108 kB / 1.371 GB, free: 7.344 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.4064, allocations: 248.5 kB / 1.371 GB, free: 7.078 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.09e-05/0.4065, allocations: 154.9 kB / 1.371 GB, free: 6.926 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.048e-05/0.4066, allocations: 154.9 kB / 1.371 GB, free: 6.773 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.678e-05/0.4067, allocations: 101.5 kB / 1.371 GB, free: 6.668 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/0.4067, allocations: 79.47 kB / 1.371 GB, free: 6.59 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.4068, allocations: 154.5 kB / 1.372 GB, free: 6.438 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.801e-05/0.4069, allocations: 150.6 kB / 1.372 GB, free: 6.289 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.295e-05/0.4069, allocations: 154.5 kB / 1.372 GB, free: 6.137 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004805/0.4074, allocations: 497.3 kB / 1.372 GB, free: 5.621 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.986e-05/0.4075, allocations: 169.1 kB / 1.372 GB, free: 5.445 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.677e-05/0.4076, allocations: 80.14 kB / 1.373 GB, free: 5.363 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.718e-05/0.4076, allocations: 75.28 kB / 1.373 GB, free: 5.289 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.293e-05/0.4077, allocations: 109.9 kB / 1.373 GB, free: 5.172 MB / 1.061 GB Notification: Performance of pre-optimization done (n=0): time 1.633e-06/0.4077, allocations: 3.938 kB / 1.373 GB, free: 5.168 MB / 1.061 GB Notification: Performance of matching and sorting (n=0): time 0.0002808/0.408, allocations: 65.38 kB / 1.373 GB, free: 5.098 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.408, allocations: 134.7 kB / 1.373 GB, free: 4.953 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/0.4085, allocations: 433.3 kB / 1.373 GB, free: 4.52 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.4085, allocations: 25.7 kB / 1.373 GB, free: 4.488 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.66e-05/0.4086, allocations: 136.6 kB / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.685e-06/0.4086, allocations: 0 / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.4087, allocations: 93.66 kB / 1.374 GB, free: 4.254 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4089, allocations: 338.8 kB / 1.374 GB, free: 3.914 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.409, allocations: 100.6 kB / 1.374 GB, free: 3.816 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.4092, allocations: 161.8 kB / 1.374 GB, free: 3.637 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.4096, allocations: 305.6 kB / 1.374 GB, free: 3.316 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4096, allocations: 0 / 1.374 GB, free: 3.316 MB / 1.061 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005503/0.4101, allocations: 337 kB / 1.375 GB, free: 2.98 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.4102, allocations: 4 kB / 1.375 GB, free: 2.977 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4102, allocations: 224 / 1.375 GB, free: 2.977 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.4102, allocations: 11.94 kB / 1.375 GB, free: 2.965 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.098e-06/0.4102, allocations: 4 kB / 1.375 GB, free: 2.961 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.4102, allocations: 0 / 1.375 GB, free: 2.961 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.4104, allocations: 39.56 kB / 1.375 GB, free: 2.922 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.4104, allocations: 7.984 kB / 1.375 GB, free: 2.914 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002831/0.4106, allocations: 245 kB / 1.375 GB, free: 2.664 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.129e-05/0.4107, allocations: 124.8 kB / 1.375 GB, free: 2.535 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.628e-05/0.4108, allocations: 114.9 kB / 1.375 GB, free: 2.418 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.85e-05/0.4109, allocations: 188.1 kB / 1.375 GB, free: 2.227 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.758e-05/0.411, allocations: 184.3 kB / 1.376 GB, free: 2.039 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.031e-05/0.4111, allocations: 180.2 kB / 1.376 GB, free: 1.855 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.4114, allocations: 420.8 kB / 1.376 GB, free: 1.406 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.368e-05/0.4114, allocations: 105 kB / 1.376 GB, free: 1.297 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.4115, allocations: 108.9 kB / 1.376 GB, free: 1.184 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.969e-05/0.4116, allocations: 176.3 kB / 1.377 GB, free: 1.004 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/0.4116, allocations: 184.2 kB / 1.377 GB, free: 0.8164 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.842e-05/0.4117, allocations: 180.5 kB / 1.377 GB, free: 0.6328 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.901e-05/0.4118, allocations: 180.2 kB / 1.377 GB, free: 460 kB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.412, allocations: 343.6 kB / 1.377 GB, free: 92 kB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.4121, allocations: 128.7 kB / 1.378 GB, free: 15.96 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4122, allocations: 188.2 kB / 1.378 GB, free: 15.77 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.4124, allocations: 105 kB / 1.378 GB, free: 15.66 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.293e-05/0.4125, allocations: 184.1 kB / 1.378 GB, free: 15.47 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.884e-05/0.4125, allocations: 105 kB / 1.378 GB, free: 15.36 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.00033/0.4129, allocations: 283.1 kB / 1.378 GB, free: 15.08 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4129, allocations: 3.938 kB / 1.378 GB, free: 15.08 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004059/0.4133, allocations: 83.92 kB / 1.378 GB, free: 15 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004246/0.4137, allocations: 305.2 kB / 1.379 GB, free: 14.69 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.4139, allocations: 124.2 kB / 1.379 GB, free: 14.57 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4139, allocations: 4.062 kB / 1.379 GB, free: 14.57 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.472e-06/0.4139, allocations: 0 / 1.379 GB, free: 14.57 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.4144, allocations: 467 kB / 1.379 GB, free: 14.11 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007817/0.4152, allocations: 0.52 MB / 1.38 GB, free: 13.55 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.4154, allocations: 168.1 kB / 1.38 GB, free: 13.36 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.4154, allocations: 11.44 kB / 1.38 GB, free: 13.36 MB / 1.076 GB Notification: Performance of SimCode: time 4.41e-07/0.4154, allocations: 0 / 1.38 GB, free: 13.36 MB / 1.076 GB Notification: Performance of Templates: time 0.005802/0.4212, allocations: 3.253 MB / 1.383 GB, free: 10.11 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.711815068032593]