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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) 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(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 184 kB / 16.92 MB, free: 6.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.81/2.81, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003423, allocations: 10.5 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2953, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.001729/0.2971, allocations: 1.138 MB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003409/0.3005, allocations: 2.605 MB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.69e-05/0.3006, allocations: 0 / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.3024, allocations: 0.5512 MB / 1.064 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.739e-05/0.3025, allocations: 23.91 kB / 1.064 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.038e-06/0.3026, allocations: 0 / 1.064 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.3028, allocations: 174.9 kB / 1.064 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.322e-05/0.3029, allocations: 32.41 kB / 1.064 GB, free: 472 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.257e-05/0.303, allocations: 55.67 kB / 1.064 GB, free: 416 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.3032, allocations: 79.59 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.3032, allocations: 0 / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.3044, allocations: 0.4914 MB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.459e-05/0.3044, allocations: 39.77 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.3046, allocations: 117.1 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.3049, allocations: 298.7 kB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.305, allocations: 0 / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.643e-06/0.305, allocations: 0 / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.305, allocations: 0 / 1.065 GB, free: 15.38 MB / 0.8262 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.0007344/0.3057, allocations: 0.5217 MB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3058, allocations: 11.97 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.3059, allocations: 103.9 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.3062, allocations: 314.2 kB / 1.066 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.3063, allocations: 150.9 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.3063, allocations: 154.9 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.323e-05/0.3064, allocations: 101.5 kB / 1.066 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.3064, allocations: 75.47 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.3065, allocations: 154.5 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.863e-05/0.3065, allocations: 158.6 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.898e-05/0.3066, allocations: 154.5 kB / 1.067 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003721/0.307, allocations: 0.5289 MB / 1.067 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.925e-05/0.3071, allocations: 169.1 kB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.098e-05/0.3071, allocations: 84.14 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.3071, allocations: 75.28 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.3072, allocations: 109.8 kB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.3072, allocations: 0 / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.0001827/0.3074, allocations: 61.28 kB / 1.068 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.3074, allocations: 126.7 kB / 1.068 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004432/0.3079, allocations: 437.2 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.3079, allocations: 25.7 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.308, allocations: 132.5 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.815e-06/0.308, allocations: 0 / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.3081, allocations: 69.67 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3082, allocations: 342.8 kB / 1.069 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3083, allocations: 104.4 kB / 1.069 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.3085, allocations: 169.2 kB / 1.069 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.3088, allocations: 301.7 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3088, allocations: 0 / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004995/0.3093, allocations: 332.9 kB / 1.07 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3093, allocations: 11.94 kB / 1.07 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3094, allocations: 4.156 kB / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3094, allocations: 8 kB / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.3094, allocations: 0 / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.3094, allocations: 4 kB / 1.07 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.3095, allocations: 43.28 kB / 1.07 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.3096, allocations: 4.078 kB / 1.07 GB, free: 10.14 MB / 0.8262 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.0001954/0.3098, allocations: 252.9 kB / 1.07 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.135e-05/0.3098, allocations: 116.7 kB / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.049e-05/0.3099, allocations: 122.9 kB / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-05/0.31, allocations: 184.2 kB / 1.07 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.652e-05/0.31, allocations: 180.2 kB / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.028e-05/0.3101, allocations: 176.3 kB / 1.071 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.3104, allocations: 481.1 kB / 1.071 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-05/0.3104, allocations: 109 kB / 1.071 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.3105, allocations: 104.9 kB / 1.071 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.864e-05/0.3105, allocations: 184.2 kB / 1.071 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-05/0.3106, allocations: 188.1 kB / 1.072 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.075e-05/0.3107, allocations: 184.2 kB / 1.072 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.897e-05/0.3107, allocations: 180.3 kB / 1.072 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.3109, allocations: 327.6 kB / 1.072 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.311, allocations: 213.8 kB / 1.072 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.129e-05/0.3111, allocations: 180.2 kB / 1.073 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.3112, allocations: 101 kB / 1.073 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.3113, allocations: 192.2 kB / 1.073 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.3114, allocations: 101 kB / 1.073 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002912/0.3117, allocations: 279.1 kB / 1.073 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3117, allocations: 0 / 1.073 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003889/0.3121, allocations: 76 kB / 1.073 GB, free: 6.074 MB / 0.8262 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.0003899/0.3125, allocations: 290.4 kB / 1.074 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.3127, allocations: 168.2 kB / 1.074 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3127, allocations: 0 / 1.074 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.548e-06/0.3127, allocations: 0 / 1.074 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.3131, allocations: 0.5323 MB / 1.074 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006928/0.3138, allocations: 0.5806 MB / 1.075 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.3142, allocations: 0.7668 MB / 1.076 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.97e-05/0.3142, allocations: 15.44 kB / 1.076 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3142, allocations: 0 / 1.076 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of Templates: time 0.005587/0.3198, allocations: 3.028 MB / 1.079 GB, free: 0.6328 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) 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) Reference file matches