Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 114.3 kB / 16.37 MB, free: 6 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.001507/0.001507, allocations: 195.9 kB / 17.31 MB, free: 5.613 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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.476/2.476, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 64.25 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3083, allocations: 153 MB / 1.027 GB, free: 2.047 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02757/0.336, allocations: 22.63 MB / 1.049 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02597/0.362, allocations: 17.63 MB / 1.066 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003964/0.366, allocations: 111.4 kB / 1.066 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01075/0.3768, allocations: 4.173 MB / 1.07 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.3901, allocations: 3.515 MB / 1.074 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004109/0.3942, allocations: 1.318 MB / 1.075 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5906/0.9848, allocations: 5.767 MB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006147/0.991, allocations: 3.588 MB / 1.084 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006569/0.9976, allocations: 2.409 MB / 1.086 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007255/1.005, allocations: 2.446 MB / 1.089 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002065/1.007, allocations: 369.3 kB / 1.089 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004393/1.011, allocations: 1.032 MB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.00235/1.014, allocations: 1.202 MB / 1.091 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005586/1.019, allocations: 1.99 MB / 1.093 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01002/1.029, allocations: 5.167 MB / 1.098 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/1.029, allocations: 0 / 1.098 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.845e-06/1.029, allocations: 0.7031 kB / 1.098 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002301/1.03, allocations: 1.188 kB / 1.098 GB, free: 11.41 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01498/1.045, allocations: 4.613 MB / 1.103 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.045, allocations: 9.156 kB / 1.103 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/1.062, allocations: 3.265 MB / 1.106 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006617/1.068, allocations: 2.236 MB / 1.108 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004336/1.069, allocations: 467.3 kB / 1.109 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/1.07, allocations: 232.9 kB / 1.109 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/1.083, allocations: 4.812 MB / 1.114 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.385e-05/1.083, allocations: 1.5 kB / 1.114 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000392/1.083, allocations: 106.2 kB / 1.114 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002241/1.083, allocations: 173 kB / 1.114 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/1.097, allocations: 5.197 MB / 1.119 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02699/1.124, allocations: 14.4 MB / 1.133 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/1.135, allocations: 3.378 MB / 1.136 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004167/1.139, allocations: 1.474 MB / 1.138 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002184/1.139, allocations: 25.92 kB / 1.138 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004657/1.144, allocations: 1.797 MB / 1.14 GB, free: 6.859 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=163): time 5.76e-06/1.144, allocations: 0 / 1.14 GB, free: 6.859 MB / 0.8575 GB Notification: Performance of matching and sorting (n=250): time 0.1213/1.265, allocations: 28.21 MB / 1.167 GB, free: 2.148 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000233/1.265, allocations: 0.5031 MB / 1.168 GB, free: 1.535 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/1.269, allocations: 2.292 MB / 1.17 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0004886/1.27, allocations: 81.69 kB / 1.17 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001327/1.271, allocations: 1.436 MB / 1.171 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.272, allocations: 0.8146 MB / 1.172 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/1.273, allocations: 416.5 kB / 1.172 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.273, allocations: 301.1 kB / 1.173 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005127/1.279, allocations: 1.929 MB / 1.175 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005323/1.284, allocations: 2.235 MB / 1.177 GB, free: 7.93 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.294, allocations: 4.16 MB / 1.181 GB, free: 3.656 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/1.294, allocations: 7.938 kB / 1.181 GB, free: 3.648 MB / 0.8887 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01879/1.313, allocations: 6.534 MB / 1.187 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001616/1.313, allocations: 148.5 kB / 1.187 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/1.313, allocations: 4 kB / 1.187 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/1.324, allocations: 2.932 MB / 1.19 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00312/1.327, allocations: 488.8 kB / 1.191 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03964/1.367, allocations: 18.85 MB / 1.209 GB, free: 6.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004642/1.371, allocations: 323.6 kB / 1.209 GB, free: 6.203 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006025/1.372, allocations: 87.97 kB / 1.21 GB, free: 6.117 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.002043/1.374, allocations: 0.7084 MB / 1.21 GB, free: 5.418 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.375, allocations: 328.1 kB / 1.211 GB, free: 5.094 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/1.376, allocations: 388.1 kB / 1.211 GB, free: 4.707 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/1.376, allocations: 27.38 kB / 1.211 GB, free: 4.684 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.808e-05/1.376, allocations: 12 kB / 1.211 GB, free: 4.672 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.492e-05/1.376, allocations: 11.95 kB / 1.211 GB, free: 4.66 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006062/1.382, allocations: 3.623 MB / 1.215 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/1.382, allocations: 0 / 1.215 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002453/1.385, allocations: 420 kB / 1.215 GB, free: 0.625 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01017/1.395, allocations: 2.869 MB / 1.218 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004862/1.396, allocations: 47.97 kB / 1.218 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03875/1.434, allocations: 18.61 MB / 1.236 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.434, allocations: 0 / 1.236 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01825/1.453, allocations: 6.175 MB / 1.242 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003598/1.456, allocations: 0.6962 MB / 1.243 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001666/1.458, allocations: 47.98 kB / 1.243 GB, free: 3.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004431/1.463, allocations: 316.1 kB / 1.243 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001513/1.464, allocations: 359.4 kB / 1.243 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004256/1.465, allocations: 67.97 kB / 1.243 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002929/1.467, allocations: 1.539 MB / 1.245 GB, free: 1.676 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.61e-07/1.467, allocations: 0 / 1.245 GB, free: 1.676 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.004056/1.472, allocations: 1.039 MB / 1.246 GB, free: 0.6367 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005466/1.472, allocations: 161.6 kB / 1.246 GB, free: 488 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.02214/1.494, allocations: 6.484 MB / 1.252 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.494, allocations: 1.219 kB / 1.252 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.01693/1.511, allocations: 4.062 MB / 1.256 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009546/1.521, allocations: 1.13 MB / 1.257 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01903/1.54, allocations: 6.699 MB / 1.264 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00318/1.543, allocations: 2.223 MB / 1.266 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003268/1.546, allocations: 0.5138 MB / 1.267 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/1.548, allocations: 191.4 kB / 1.267 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of SimCode: time 1.723e-06/1.548, allocations: 3.938 kB / 1.267 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of Templates: time 0.1456/1.693, allocations: 74.84 MB / 1.34 GB, free: 1.398 MB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches