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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001569/0.001569, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001566/0.001565, allocations: 193.1 kB / 16.14 MB, free: 6.711 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.37/1.37, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.794/2.794, allocations: 472.7 MB / 0.7447 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 58.94 kB / 0.9114 GB, free: 33.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3191, allocations: 159.9 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02547/0.3447, allocations: 22.42 MB / 1.089 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03052/0.3752, allocations: 17.6 MB / 1.107 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.3793, allocations: 107.4 kB / 1.107 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01058/0.39, allocations: 3.91 MB / 1.111 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01173/0.4017, allocations: 3.206 MB / 1.114 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00435/0.4061, allocations: 1.17 MB / 1.115 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01189/0.418, allocations: 7.064 MB / 1.122 GB, free: 3.188 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005699/0.4237, allocations: 2.495 MB / 1.124 GB, free: 0.6172 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0046/0.4283, allocations: 2.179 MB / 1.126 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005276/0.4336, allocations: 2.448 MB / 1.129 GB, free: 11.97 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001336/0.435, allocations: 232 kB / 1.129 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003341/0.4383, allocations: 1.107 MB / 1.13 GB, free: 10.64 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001871/0.4402, allocations: 1.059 MB / 1.131 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.005131/0.4454, allocations: 1.857 MB / 1.133 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.008194/0.4536, allocations: 5.065 MB / 1.138 GB, free: 2.625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4536, allocations: 0 / 1.138 GB, free: 2.625 MB / 0.8887 GB Notification: Performance of FrontEnd: time 4.719e-06/0.4536, allocations: 3.984 kB / 1.138 GB, free: 2.621 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.707e-05/0.4537, allocations: 0 / 1.138 GB, free: 2.621 MB / 0.8887 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.009972/0.4637, allocations: 4.604 MB / 1.142 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4637, allocations: 8.031 kB / 1.142 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.4793, allocations: 3.265 MB / 1.145 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004918/0.4842, allocations: 2.084 MB / 1.148 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000423/0.4847, allocations: 474.2 kB / 1.148 GB, free: 7.941 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006238/0.4853, allocations: 235.9 kB / 1.148 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.4965, allocations: 4.814 MB / 1.153 GB, free: 2.75 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.341e-05/0.4966, allocations: 4 kB / 1.153 GB, free: 2.746 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003264/0.4969, allocations: 104 kB / 1.153 GB, free: 2.645 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002181/0.4972, allocations: 168.8 kB / 1.153 GB, free: 2.477 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.5103, allocations: 5.198 MB / 1.158 GB, free: 13.26 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/0.5342, allocations: 14.49 MB / 1.172 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009774/0.544, allocations: 3.387 MB / 1.176 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003866/0.548, allocations: 1.471 MB / 1.177 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001837/0.5482, allocations: 29.3 kB / 1.177 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004651/0.5528, allocations: 1.788 MB / 1.179 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 5.169e-06/0.5529, allocations: 0 / 1.179 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1281/0.681, allocations: 28.22 MB / 1.206 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003384/0.6813, allocations: 0.4928 MB / 1.207 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005024/0.6864, allocations: 2.304 MB / 1.209 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0005711/0.687, allocations: 77.7 kB / 1.209 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.6886, allocations: 1.43 MB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.001112/0.6897, allocations: 0.824 MB / 1.211 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/0.6909, allocations: 416.5 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6911, allocations: 305.1 kB / 1.212 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005309/0.6964, allocations: 1.929 MB / 1.214 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/0.7021, allocations: 2.233 MB / 1.216 GB, free: 172 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/0.7125, allocations: 4.158 MB / 1.22 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.7126, allocations: 0 / 1.22 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01913/0.7317, allocations: 6.539 MB / 1.227 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.7319, allocations: 154 kB / 1.227 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.7319, allocations: 8 kB / 1.227 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/0.743, allocations: 2.93 MB / 1.23 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003078/0.7462, allocations: 487.2 kB / 1.23 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0431/0.7893, allocations: 17.33 MB / 1.247 GB, free: 72 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.5979/1.387, allocations: 318.2 kB / 1.247 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006552/1.388, allocations: 90.64 kB / 1.247 GB, free: 166.4 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 (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.002216/1.39, allocations: 0.7051 MB / 1.248 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/1.391, allocations: 332.8 kB / 1.248 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009536/1.392, allocations: 384 kB / 1.249 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.914e-05/1.392, allocations: 24.03 kB / 1.249 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.692e-05/1.392, allocations: 11.31 kB / 1.249 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/1.392, allocations: 12.14 kB / 1.249 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005417/1.398, allocations: 3.628 MB / 1.252 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/1.398, allocations: 0.9688 kB / 1.252 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/1.4, allocations: 419.1 kB / 1.253 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01012/1.41, allocations: 2.867 MB / 1.256 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005247/1.411, allocations: 53.78 kB / 1.256 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03622/1.447, allocations: 17.11 MB / 1.272 GB, free: 159.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.447, allocations: 0 / 1.272 GB, free: 159.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01825/1.465, allocations: 6.179 MB / 1.278 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002105/1.468, allocations: 0.6984 MB / 1.279 GB, free: 157 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005167/1.468, allocations: 54.03 kB / 1.279 GB, free: 157 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003048/1.471, allocations: 313.7 kB / 1.279 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00158/1.473, allocations: 350.6 kB / 1.28 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/1.473, allocations: 70.2 kB / 1.28 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002631/1.476, allocations: 1.536 MB / 1.281 GB, free: 156.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.476, allocations: 3.172 kB / 1.281 GB, free: 156.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004078/1.48, allocations: 1.039 MB / 1.282 GB, free: 156.2 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 (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.0004328/1.48, allocations: 171.1 kB / 1.283 GB, free: 156.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02278/1.503, allocations: 6.453 MB / 1.289 GB, free: 153.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.503, allocations: 1.312 kB / 1.289 GB, free: 153.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01634/1.519, allocations: 4.048 MB / 1.293 GB, free: 152.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005184/1.525, allocations: 1.046 MB / 1.294 GB, free: 152.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/1.539, allocations: 8.041 MB / 1.302 GB, free: 148 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/1.541, allocations: 2.241 MB / 1.304 GB, free: 146.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002693/1.544, allocations: 0.5095 MB / 1.304 GB, free: 146.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/1.544, allocations: 175.6 kB / 1.305 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.543e-06/1.544, allocations: 0 / 1.305 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.1001/1.644, allocations: 72.94 MB / 1.376 GB, free: 77.93 MB / 0.9981 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 -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/jenkins/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