Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007094/0.007094, allocations: 99.45 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001308, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.338/2.338, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.89 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.059/1.06, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002911/1.063, allocations: 1.425 MB / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003512/1.066, allocations: 2.664 MB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.392e-05/1.067, allocations: 0.75 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001902/1.069, allocations: 0.5787 MB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.528e-05/1.069, allocations: 20.84 kB / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.439e-06/1.069, allocations: 0 / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002549/1.069, allocations: 162.9 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.052e-05/1.069, allocations: 33.58 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.93e-05/1.069, allocations: 65.72 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/1.069, allocations: 73.3 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/1.069, allocations: 2.906 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/1.07, allocations: 472.8 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/1.071, allocations: 33.69 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001318/1.071, allocations: 101.2 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008072/1.071, allocations: 433.6 kB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/1.071, allocations: 0.9062 kB / 1.094 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/1.071, allocations: 4 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.125e-06/1.072, allocations: 0 / 1.094 GB, free: 1.812 MB / 0.8575 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.0008105/1.072, allocations: 0.5584 MB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.072, allocations: 14.19 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/1.073, allocations: 100.4 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/1.073, allocations: 311.5 kB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/1.073, allocations: 160.9 kB / 1.095 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.703e-05/1.073, allocations: 153.5 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.088e-05/1.073, allocations: 102.3 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/1.073, allocations: 76.22 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/1.073, allocations: 155 kB / 1.095 GB, free: 296 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/1.073, allocations: 159.3 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.685e-05/1.073, allocations: 155.2 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/1.074, allocations: 0.5353 MB / 1.096 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/1.074, allocations: 170.7 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.395e-05/1.074, allocations: 80.64 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000144/1.074, allocations: 80.16 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.597e-05/1.074, allocations: 107.3 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=0): time 1.222e-06/1.074, allocations: 0.6875 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=0): time 0.0002134/1.074, allocations: 63.09 kB / 1.097 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/1.074, allocations: 128.4 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000719/1.075, allocations: 430.9 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/1.075, allocations: 30.27 kB / 1.097 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/1.075, allocations: 135.8 kB / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-06/1.075, allocations: 0 / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/1.075, allocations: 89.02 kB / 1.097 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.076, allocations: 340 kB / 1.098 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/1.076, allocations: 98.97 kB / 1.098 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/1.076, allocations: 166.2 kB / 1.098 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/1.076, allocations: 310 kB / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/1.076, allocations: 0 / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006126/1.077, allocations: 334.5 kB / 1.099 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/1.077, allocations: 8.812 kB / 1.099 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/1.077, allocations: 6.391 kB / 1.099 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/1.077, allocations: 6.406 kB / 1.099 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.838e-06/1.077, allocations: 2.438 kB / 1.099 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/1.077, allocations: 2.609 kB / 1.099 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/1.077, allocations: 45.38 kB / 1.099 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/1.077, allocations: 8.25 kB / 1.099 GB, free: 13.61 MB / 0.8731 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.0003587/1.078, allocations: 242.5 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.036e-05/1.078, allocations: 125.2 kB / 1.099 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/1.078, allocations: 120.1 kB / 1.099 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001332/1.078, allocations: 185.8 kB / 1.099 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.787e-05/1.078, allocations: 178.3 kB / 1.1 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.259e-05/1.078, allocations: 178.1 kB / 1.1 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004834/1.079, allocations: 476.5 kB / 1.1 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.665e-05/1.079, allocations: 106.8 kB / 1.1 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.368e-05/1.079, allocations: 106.8 kB / 1.1 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/1.079, allocations: 182.2 kB / 1.101 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-05/1.079, allocations: 182.1 kB / 1.101 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.462e-05/1.079, allocations: 186.2 kB / 1.101 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.082e-05/1.079, allocations: 177.4 kB / 1.101 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/1.079, allocations: 331.4 kB / 1.101 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/1.079, allocations: 203.3 kB / 1.102 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.842e-05/1.08, allocations: 194.6 kB / 1.102 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/1.08, allocations: 102.6 kB / 1.102 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/1.08, allocations: 186 kB / 1.102 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/1.08, allocations: 102.7 kB / 1.102 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003468/1.08, allocations: 280.6 kB / 1.102 GB, free: 9.918 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.41e-07/1.08, allocations: 0 / 1.102 GB, free: 9.918 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005164/1.081, allocations: 86.56 kB / 1.102 GB, free: 9.906 MB / 0.8731 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.0004913/1.081, allocations: 313.4 kB / 1.103 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002698/1.081, allocations: 164.8 kB / 1.103 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.082, allocations: 4.062 kB / 1.103 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/1.082, allocations: 1 kB / 1.103 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005362/1.082, allocations: 463.7 kB / 1.103 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008787/1.083, allocations: 498.5 kB / 1.104 GB, free: 8.844 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/1.083, allocations: 0.7771 MB / 1.105 GB, free: 8.137 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.934e-05/1.083, allocations: 3.406 kB / 1.105 GB, free: 8.137 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.016e-05/1.083, allocations: 13.41 kB / 1.105 GB, free: 8.125 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/1.083, allocations: 0 / 1.105 GB, free: 8.125 MB / 0.8731 GB Notification: Performance of Templates: time 0.00812/1.092, allocations: 3.066 MB / 1.108 GB, free: 7.762 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches