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.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.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.001235/0.001236, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001611/0.001611, allocations: 189.8 kB / 16.25 MB, free: 6.621 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.357/1.357, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7343 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 71.28 kB / 0.8986 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3551, allocations: 157.4 MB / 1.052 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02354/0.3787, allocations: 22.44 MB / 1.074 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02394/0.4027, allocations: 17.44 MB / 1.091 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004129/0.4068, allocations: 111.3 kB / 1.091 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.4173, allocations: 3.921 MB / 1.095 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.428, allocations: 3.196 MB / 1.098 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003561/0.4316, allocations: 1.177 MB / 1.099 GB, free: 8.273 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00828/0.4399, allocations: 5.799 MB / 1.105 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006832/0.4468, allocations: 4.026 MB / 1.109 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00497/0.4518, allocations: 2.448 MB / 1.111 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004985/0.4568, allocations: 2.522 MB / 1.114 GB, free: 9.367 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001732/0.4585, allocations: 368 kB / 1.114 GB, free: 9.008 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.4623, allocations: 1.03 MB / 1.115 GB, free: 7.977 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001962/0.4642, allocations: 1.199 MB / 1.116 GB, free: 6.773 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004097/0.4683, allocations: 1.998 MB / 1.118 GB, free: 4.766 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.007704/0.4761, allocations: 5.171 MB / 1.123 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4761, allocations: 0 / 1.123 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.263e-06/0.4761, allocations: 0 / 1.123 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0002124/0.4763, allocations: 4 kB / 1.123 GB, free: 15.57 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.01318/0.4895, allocations: 4.612 MB / 1.128 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.4896, allocations: 12.62 kB / 1.128 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01611/0.5057, allocations: 3.269 MB / 1.131 GB, free: 7.559 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005567/0.5113, allocations: 2.08 MB / 1.133 GB, free: 5.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005265/0.5119, allocations: 466.3 kB / 1.134 GB, free: 4.891 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/0.5132, allocations: 235.9 kB / 1.134 GB, free: 4.66 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.5264, allocations: 4.818 MB / 1.139 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-05/0.5265, allocations: 0 / 1.139 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000637/0.5272, allocations: 108 kB / 1.139 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002231/0.5274, allocations: 176.8 kB / 1.139 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01525/0.5427, allocations: 5.191 MB / 1.144 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02841/0.5711, allocations: 14.47 MB / 1.158 GB, free: 10.57 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.5815, allocations: 3.392 MB / 1.161 GB, free: 7.168 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00398/0.5855, allocations: 1.467 MB / 1.163 GB, free: 5.703 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002138/0.5857, allocations: 33.27 kB / 1.163 GB, free: 5.668 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004743/0.5905, allocations: 1.782 MB / 1.165 GB, free: 3.82 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 6.462e-06/0.5905, allocations: 0 / 1.165 GB, free: 3.82 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.128/0.7185, allocations: 28.23 MB / 1.192 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002355/0.7187, allocations: 0.4889 MB / 1.193 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.7223, allocations: 2.3 MB / 1.195 GB, free: 4.445 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004607/0.7228, allocations: 77.7 kB / 1.195 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.7242, allocations: 1.434 MB / 1.196 GB, free: 2.914 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001105/0.7253, allocations: 0.8201 MB / 1.197 GB, free: 2.082 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/0.7267, allocations: 408.5 kB / 1.197 GB, free: 1.676 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.7269, allocations: 313.1 kB / 1.198 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005503/0.7324, allocations: 1.925 MB / 1.2 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006129/0.7385, allocations: 2.227 MB / 1.202 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/0.7502, allocations: 4.169 MB / 1.206 GB, free: 8.82 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.7502, allocations: 0 / 1.206 GB, free: 8.82 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01954/0.7698, allocations: 6.539 MB / 1.212 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.7699, allocations: 148.5 kB / 1.212 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.77, allocations: 4 kB / 1.212 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01067/0.7806, allocations: 2.95 MB / 1.215 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003093/0.7838, allocations: 491.2 kB / 1.216 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04325/0.827, allocations: 18.85 MB / 1.234 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004171/0.8312, allocations: 319.6 kB / 1.234 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004671/0.8317, allocations: 91.97 kB / 1.235 GB, free: 11.07 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.001758/0.8335, allocations: 0.7105 MB / 1.235 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008064/0.8343, allocations: 332.1 kB / 1.236 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000887/0.8352, allocations: 384.1 kB / 1.236 GB, free: 9.641 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.8352, allocations: 27.98 kB / 1.236 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.302e-05/0.8353, allocations: 8 kB / 1.236 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/0.8353, allocations: 11.95 kB / 1.236 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005292/0.8406, allocations: 3.639 MB / 1.24 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.346e-05/0.8406, allocations: 0 / 1.24 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/0.8432, allocations: 419.4 kB / 1.24 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01096/0.8542, allocations: 2.896 MB / 1.243 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005352/0.8548, allocations: 43.98 kB / 1.243 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6127/1.467, allocations: 18.62 MB / 1.261 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.468, allocations: 2.203 kB / 1.261 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/1.487, allocations: 6.171 MB / 1.267 GB, free: 174.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/1.489, allocations: 0.6992 MB / 1.268 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006618/1.49, allocations: 44.92 kB / 1.268 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003205/1.493, allocations: 314.2 kB / 1.268 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001433/1.494, allocations: 357.7 kB / 1.268 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002402/1.495, allocations: 70.22 kB / 1.268 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002362/1.497, allocations: 1.531 MB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.232e-06/1.497, allocations: 1.25 kB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003507/1.501, allocations: 1.047 MB / 1.271 GB, free: 173.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.0004652/1.501, allocations: 168 kB / 1.271 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02648/1.528, allocations: 7.307 MB / 1.278 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/1.528, allocations: 2.188 kB / 1.278 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01714/1.545, allocations: 4.059 MB / 1.282 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005816/1.551, allocations: 1.137 MB / 1.283 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/1.566, allocations: 8.045 MB / 1.291 GB, free: 165 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/1.568, allocations: 2.234 MB / 1.293 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003068/1.571, allocations: 0.5079 MB / 1.294 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008249/1.572, allocations: 185.8 kB / 1.294 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of SimCode: time 9.01e-07/1.572, allocations: 0 / 1.294 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.1005/1.673, allocations: 76.27 MB / 1.369 GB, free: 94.14 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