Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.008446/0.008447, allocations: 171.2 kB / 16.26 MB, free: 6.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.425/1.425, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.818/2.818, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003888, allocations: 9.531 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3175, allocations: 159.6 MB / 1.059 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02537/0.3429, allocations: 21.68 MB / 1.08 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02915/0.3721, allocations: 17.38 MB / 1.097 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004309/0.3765, allocations: 99.44 kB / 1.097 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.003184/0.3797, allocations: 0.5775 MB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01187/0.3916, allocations: 3.204 MB / 1.101 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004489/0.3961, allocations: 1.194 MB / 1.102 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01125/0.4074, allocations: 6.847 MB / 1.108 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004654/0.4121, allocations: 2.503 MB / 1.111 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004497/0.4166, allocations: 1.949 MB / 1.113 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005013/0.4217, allocations: 2.241 MB / 1.115 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001396/0.4231, allocations: 164 kB / 1.115 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.426, allocations: 1.041 MB / 1.116 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.4273, allocations: 0.9496 MB / 1.117 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002807/0.4302, allocations: 1.746 MB / 1.119 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005629/0.4358, allocations: 4.826 MB / 1.124 GB, free: 2.805 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4358, allocations: 0 / 1.124 GB, free: 2.805 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4358, allocations: 0 / 1.124 GB, free: 2.805 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001243/0.436, allocations: 0 / 1.124 GB, free: 2.805 MB / 0.8731 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.008449/0.4444, allocations: 3.83 MB / 1.127 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4445, allocations: 16.02 kB / 1.127 GB, free: 14.85 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01741/0.4619, allocations: 3.359 MB / 1.131 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005454/0.4674, allocations: 2.057 MB / 1.133 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.4676, allocations: 193 kB / 1.133 GB, free: 9.164 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005993/0.4682, allocations: 236.1 kB / 1.133 GB, free: 8.934 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.4806, allocations: 4.737 MB / 1.138 GB, free: 4.051 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-05/0.4808, allocations: 3.938 kB / 1.138 GB, free: 4.047 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006624/0.4814, allocations: 104 kB / 1.138 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/0.4817, allocations: 172.8 kB / 1.138 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.4971, allocations: 5.237 MB / 1.143 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02501/0.5222, allocations: 14.13 MB / 1.157 GB, free: 15.21 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01231/0.5345, allocations: 3.852 MB / 1.161 GB, free: 11.36 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004057/0.5386, allocations: 1.518 MB / 1.162 GB, free: 9.836 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/0.5388, allocations: 33.22 kB / 1.162 GB, free: 9.805 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004732/0.5436, allocations: 1.827 MB / 1.164 GB, free: 7.914 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.898e-06/0.5436, allocations: 0 / 1.164 GB, free: 7.914 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1388/0.6824, allocations: 33.42 MB / 1.196 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002588/0.6827, allocations: 496.7 kB / 1.197 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004128/0.6869, allocations: 2.304 MB / 1.199 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0006241/0.6875, allocations: 69.7 kB / 1.199 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.6894, allocations: 1.438 MB / 1.201 GB, free: 1.828 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001438/0.6908, allocations: 0.8201 MB / 1.201 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007523/0.6916, allocations: 186.4 kB / 1.202 GB, free: 0.8086 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.6918, allocations: 309.1 kB / 1.202 GB, free: 0.5039 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005828/0.6976, allocations: 1.933 MB / 1.204 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005797/0.7034, allocations: 2.234 MB / 1.206 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.7148, allocations: 4.216 MB / 1.21 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.641e-05/0.7149, allocations: 4 kB / 1.21 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01881/0.7337, allocations: 6.196 MB / 1.216 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003229/0.734, allocations: 399.4 kB / 1.217 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.7341, allocations: 12 kB / 1.217 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006999/0.7411, allocations: 1.852 MB / 1.218 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003346/0.7445, allocations: 0.589 MB / 1.219 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02504/0.7695, allocations: 14.18 MB / 1.233 GB, free: 224 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/0.7738, allocations: 407.6 kB / 1.233 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004879/0.7744, allocations: 87.97 kB / 1.233 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.7744, allocations: 5.875 kB / 1.233 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01814/0.7925, allocations: 5.784 MB / 1.239 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.973e-05/0.7926, allocations: 4 kB / 1.239 GB, free: 9.859 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005953/0.7986, allocations: 1.825 MB / 1.241 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003504/0.8021, allocations: 0.6047 MB / 1.241 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6384/1.441, allocations: 13.46 MB / 1.254 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004005/1.445, allocations: 407.3 kB / 1.255 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/1.445, allocations: 86.12 kB / 1.255 GB, free: 170.9 MB / 0.9981 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 (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.001502/1.446, allocations: 0.7852 MB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005414/1.447, allocations: 333.6 kB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007781/1.448, allocations: 398.2 kB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/1.448, allocations: 23.97 kB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.684e-05/1.448, allocations: 10.25 kB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/1.448, allocations: 13.41 kB / 1.256 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/1.452, allocations: 3.161 MB / 1.26 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.452, allocations: 0.75 kB / 1.26 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/1.455, allocations: 0.5162 MB / 1.26 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006117/1.461, allocations: 1.723 MB / 1.262 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/1.461, allocations: 49.33 kB / 1.262 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/1.484, allocations: 13.97 MB / 1.275 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.484, allocations: 3.938 kB / 1.275 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.016/1.5, allocations: 5.808 MB / 1.281 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.501, allocations: 0.6681 MB / 1.282 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008737/1.502, allocations: 44.41 kB / 1.282 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003491/1.506, allocations: 397.9 kB / 1.282 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/1.507, allocations: 297.7 kB / 1.282 GB, free: 164 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/1.507, allocations: 68.39 kB / 1.282 GB, free: 164 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00237/1.51, allocations: 1.532 MB / 1.284 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.71e-07/1.51, allocations: 0 / 1.284 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005635/1.515, allocations: 1.626 MB / 1.286 GB, free: 163.3 MB / 0.9981 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 (128): * Single equations (assignments): 116 * 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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000423/1.516, allocations: 166.5 kB / 1.286 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02342/1.539, allocations: 10.1 MB / 1.296 GB, free: 159.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/1.539, allocations: 3.938 kB / 1.296 GB, free: 159.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.009716/1.549, allocations: 3.49 MB / 1.299 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006891/1.556, allocations: 1.04 MB / 1.3 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.571, allocations: 7.971 MB / 1.308 GB, free: 153.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/1.574, allocations: 2.304 MB / 1.31 GB, free: 152 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003571/1.577, allocations: 0.6343 MB / 1.311 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008521/1.578, allocations: 188.3 kB / 1.311 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of SimCode: time 9.02e-07/1.578, allocations: 0 / 1.311 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.1103/1.689, allocations: 76.11 MB / 1.385 GB, free: 76.52 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLines.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches