Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001889/0.001889, allocations: 84.39 kB / 20.23 MB, free: 4.172 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.002464/0.002464, allocations: 161.3 kB / 23.55 MB, free: 0.8594 MB / 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.554/1.554, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.936/2.936, allocations: 377.9 MB / 0.6232 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 0.8108 GB, free: 2.16 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.366e-05/4.587e-05, allocations: 3.594 kB / 0.8108 GB, free: 2.156 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003371/0.003417, allocations: 1.43 MB / 0.8122 GB, free: 0.7383 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.003911/0.007329, allocations: 2.394 MB / 0.8145 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.096e-05/0.007369, allocations: 0 / 0.8145 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.009064, allocations: 0.5549 MB / 0.815 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.076e-05/0.009125, allocations: 19.84 kB / 0.8151 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 5.029e-06/0.00913, allocations: 0.9688 kB / 0.8151 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.009477, allocations: 166.8 kB / 0.8152 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 6.29e-05/0.00954, allocations: 17.67 kB / 0.8152 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.009673, allocations: 87.78 kB / 0.8153 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.009835, allocations: 59.77 kB / 0.8154 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.009854, allocations: 5.375 kB / 0.8154 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.01094, allocations: 402.8 kB / 0.8158 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.235e-05/0.011, allocations: 35.78 kB / 0.8158 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.01111, allocations: 59.86 kB / 0.8159 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0007355/0.01184, allocations: 460 kB / 0.8163 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.01184, allocations: 0 / 0.8163 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.984e-06/0.01185, allocations: 0 / 0.8163 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.01185, allocations: 0 / 0.8163 GB, free: 12.51 MB / 0.7761 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.0009994/0.01285, allocations: 485.4 kB / 0.8168 GB, free: 12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.0129, allocations: 14.53 kB / 0.8168 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.01309, allocations: 104 kB / 0.8169 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.01339, allocations: 251.8 kB / 0.8171 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.0135, allocations: 150.9 kB / 0.8173 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.633e-05/0.01359, allocations: 154.9 kB / 0.8174 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.914e-05/0.01369, allocations: 105.5 kB / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.804e-05/0.01374, allocations: 75.47 kB / 0.8176 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.01385, allocations: 156.7 kB / 0.8177 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.01395, allocations: 154.9 kB / 0.8179 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.01406, allocations: 158.4 kB / 0.818 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004785/0.01454, allocations: 489.3 kB / 0.8185 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.01468, allocations: 169.7 kB / 0.8187 GB, free: 9.988 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.49e-05/0.01473, allocations: 80.14 kB / 0.8187 GB, free: 9.906 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.01478, allocations: 79.83 kB / 0.8188 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.064e-05/0.01485, allocations: 111.2 kB / 0.8189 GB, free: 9.711 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.01485, allocations: 0 / 0.8189 GB, free: 9.711 MB / 0.7761 GB Notification: Performance of matching and sorting (n=0): time 0.0001983/0.01505, allocations: 57.45 kB / 0.819 GB, free: 9.648 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.01514, allocations: 131.3 kB / 0.8191 GB, free: 9.508 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005665/0.01571, allocations: 437.3 kB / 0.8195 GB, free: 9.074 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.01573, allocations: 30.36 kB / 0.8195 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.01586, allocations: 136.6 kB / 0.8197 GB, free: 8.902 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-06/0.01586, allocations: 3.688 kB / 0.8197 GB, free: 8.902 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.01598, allocations: 89.66 kB / 0.8198 GB, free: 8.809 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002186/0.01619, allocations: 338.8 kB / 0.8201 GB, free: 8.469 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.01633, allocations: 100.6 kB / 0.8202 GB, free: 8.371 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.01654, allocations: 165.8 kB / 0.8203 GB, free: 8.191 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.01697, allocations: 305.7 kB / 0.8206 GB, free: 7.871 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01697, allocations: 0 / 0.8206 GB, free: 7.871 MB / 0.7761 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006896/0.01766, allocations: 361 kB / 0.821 GB, free: 7.512 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.01768, allocations: 8 kB / 0.821 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.01769, allocations: 1.875 kB / 0.821 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.053e-05/0.01772, allocations: 4 kB / 0.821 GB, free: 7.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.01772, allocations: 0 / 0.821 GB, free: 7.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.01773, allocations: 4 kB / 0.821 GB, free: 7.496 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.01789, allocations: 43.5 kB / 0.821 GB, free: 7.453 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.01791, allocations: 5.031 kB / 0.821 GB, free: 7.449 MB / 0.7761 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.0003594/0.01826, allocations: 250 kB / 0.8213 GB, free: 7.195 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.01839, allocations: 128.8 kB / 0.8214 GB, free: 7.062 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.028e-05/0.01848, allocations: 110.9 kB / 0.8215 GB, free: 6.945 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001363/0.01862, allocations: 185.3 kB / 0.8217 GB, free: 6.758 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000115/0.01874, allocations: 180.4 kB / 0.8219 GB, free: 6.574 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00012/0.01886, allocations: 188.1 kB / 0.822 GB, free: 6.383 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004216/0.01928, allocations: 425.9 kB / 0.8224 GB, free: 5.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.128e-05/0.01936, allocations: 109 kB / 0.8225 GB, free: 5.816 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.01963, allocations: 104.9 kB / 0.8226 GB, free: 5.707 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.01976, allocations: 181 kB / 0.8228 GB, free: 5.523 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.01991, allocations: 188.2 kB / 0.823 GB, free: 5.332 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001023/0.02001, allocations: 176.9 kB / 0.8232 GB, free: 5.152 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001244/0.02014, allocations: 184.2 kB / 0.8233 GB, free: 4.965 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.02037, allocations: 324.9 kB / 0.8236 GB, free: 4.625 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.02049, allocations: 132.7 kB / 0.8238 GB, free: 4.488 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.02062, allocations: 180.3 kB / 0.8239 GB, free: 4.305 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.02077, allocations: 110.8 kB / 0.8241 GB, free: 4.191 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.02088, allocations: 184.2 kB / 0.8242 GB, free: 4.004 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.302e-05/0.02093, allocations: 101 kB / 0.8243 GB, free: 3.898 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003189/0.02125, allocations: 279.1 kB / 0.8246 GB, free: 3.625 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.02125, allocations: 0 / 0.8246 GB, free: 3.625 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004403/0.02169, allocations: 86.34 kB / 0.8247 GB, free: 3.543 MB / 0.7761 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.0004941/0.02218, allocations: 320.1 kB / 0.825 GB, free: 3.223 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000255/0.02244, allocations: 115.9 kB / 0.8251 GB, free: 3.109 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.02244, allocations: 4 kB / 0.8251 GB, free: 3.105 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.643e-06/0.02244, allocations: 0 / 0.8251 GB, free: 3.105 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005361/0.02298, allocations: 466.8 kB / 0.8255 GB, free: 2.648 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000786/0.02377, allocations: 0.4897 MB / 0.826 GB, free: 2.133 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.02396, allocations: 168.5 kB / 0.8262 GB, free: 1.945 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.097e-05/0.02397, allocations: 0 / 0.8262 GB, free: 1.945 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.053e-05/0.024, allocations: 16.48 kB / 0.8262 GB, free: 1.93 MB / 0.7761 GB Notification: Performance of SimCode: time 3.9e-07/0.024, allocations: 0 / 0.8262 GB, free: 1.93 MB / 0.7761 GB Notification: Performance of Templates: time 0.008268/0.03227, allocations: 3.071 MB / 0.8292 GB, free: 14.89 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.32370320498012]