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.001571/0.001571, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001794/0.001794, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.932/2.932, allocations: 461.9 MB / 0.7342 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 69.19 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3135, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.03336/0.3469, allocations: 22.45 MB / 1.074 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02365/0.3706, allocations: 17.59 MB / 1.091 GB, free: 0.6406 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00362/0.3742, allocations: 107.4 kB / 1.091 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01039/0.3847, allocations: 3.906 MB / 1.095 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.399, allocations: 3.208 MB / 1.098 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004156/0.4032, allocations: 1.184 MB / 1.099 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01037/0.4136, allocations: 7.058 MB / 1.106 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004673/0.4183, allocations: 2.499 MB / 1.109 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004139/0.4225, allocations: 2.167 MB / 1.111 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00461/0.4271, allocations: 2.455 MB / 1.113 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.4284, allocations: 228 kB / 1.113 GB, free: 9.719 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.4315, allocations: 1.115 MB / 1.115 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001834/0.4334, allocations: 1.051 MB / 1.116 GB, free: 7.547 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003782/0.4372, allocations: 1.857 MB / 1.117 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006945/0.4441, allocations: 5.069 MB / 1.122 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.4442, allocations: 0 / 1.122 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4442, allocations: 0 / 1.122 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002305/0.4444, allocations: 0 / 1.122 GB, free: 0.5938 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.0144/0.4589, allocations: 4.605 MB / 1.127 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 8.072e-05/0.459, allocations: 12.03 kB / 1.127 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01581/0.4748, allocations: 3.265 MB / 1.13 GB, free: 8.59 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005045/0.4799, allocations: 2.095 MB / 1.132 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.4803, allocations: 466.3 kB / 1.133 GB, free: 5.906 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006641/0.481, allocations: 235.9 kB / 1.133 GB, free: 5.676 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01114/0.4921, allocations: 4.81 MB / 1.137 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.294e-05/0.4922, allocations: 0 / 1.137 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003495/0.4926, allocations: 104 kB / 1.138 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001946/0.4928, allocations: 176.8 kB / 1.138 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.5064, allocations: 5.194 MB / 1.143 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02399/0.5305, allocations: 14.48 MB / 1.157 GB, free: 11.58 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009604/0.5401, allocations: 3.387 MB / 1.16 GB, free: 8.184 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003648/0.5438, allocations: 1.471 MB / 1.162 GB, free: 6.715 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000141/0.544, allocations: 29.25 kB / 1.162 GB, free: 6.684 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00424/0.5482, allocations: 1.79 MB / 1.163 GB, free: 4.828 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.998e-06/0.5483, allocations: 0 / 1.163 GB, free: 4.828 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1222/0.6705, allocations: 28.22 MB / 1.191 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002383/0.6707, allocations: 0.4889 MB / 1.191 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/0.6745, allocations: 2.296 MB / 1.194 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004103/0.6749, allocations: 85.69 kB / 1.194 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.6762, allocations: 1.434 MB / 1.195 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009438/0.6771, allocations: 0.8162 MB / 1.196 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009847/0.6781, allocations: 412.5 kB / 1.196 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.862e-05/0.6782, allocations: 301.1 kB / 1.197 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005136/0.6834, allocations: 1.933 MB / 1.199 GB, free: 468 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005362/0.6887, allocations: 2.235 MB / 1.201 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009833/0.6986, allocations: 4.154 MB / 1.205 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.6986, allocations: 4 kB / 1.205 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01806/0.7167, allocations: 6.543 MB / 1.211 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.7168, allocations: 153.5 kB / 1.211 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.7169, allocations: 4 kB / 1.211 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/0.7269, allocations: 2.934 MB / 1.214 GB, free: 88 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.7298, allocations: 483.2 kB / 1.215 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0376/0.7674, allocations: 17.35 MB / 1.232 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004366/0.7718, allocations: 315.6 kB / 1.232 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004049/0.7723, allocations: 91.97 kB / 1.232 GB, free: 13.63 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.001562/0.7738, allocations: 0.7066 MB / 1.233 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005681/0.7744, allocations: 328.1 kB / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006721/0.7751, allocations: 392 kB / 1.233 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.7751, allocations: 24 kB / 1.233 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.015e-05/0.7752, allocations: 16 kB / 1.233 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.7752, allocations: 11.95 kB / 1.233 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004619/0.7798, allocations: 3.624 MB / 1.237 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.7799, allocations: 0 / 1.237 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/0.7823, allocations: 423.3 kB / 1.237 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009676/0.792, allocations: 2.857 MB / 1.24 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004104/0.7924, allocations: 55.91 kB / 1.24 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5727/1.365, allocations: 17.1 MB / 1.257 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.365, allocations: 0 / 1.257 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/1.385, allocations: 6.17 MB / 1.263 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002562/1.387, allocations: 0.6973 MB / 1.264 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007197/1.388, allocations: 48.42 kB / 1.264 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003518/1.391, allocations: 315 kB / 1.264 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00159/1.393, allocations: 360.8 kB / 1.264 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002904/1.393, allocations: 67.44 kB / 1.264 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003511/1.397, allocations: 1.535 MB / 1.266 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/1.397, allocations: 0 / 1.266 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003495/1.4, allocations: 1.045 MB / 1.267 GB, free: 173.6 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.0004449/1.401, allocations: 162.7 kB / 1.267 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02359/1.424, allocations: 6.447 MB / 1.273 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/1.425, allocations: 1.375 kB / 1.273 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01742/1.442, allocations: 4.05 MB / 1.277 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005926/1.448, allocations: 1.053 MB / 1.278 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/1.463, allocations: 8.046 MB / 1.286 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/1.464, allocations: 2.232 MB / 1.288 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002686/1.467, allocations: 0.5153 MB / 1.289 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006867/1.468, allocations: 174.7 kB / 1.289 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.81e-07/1.468, allocations: 0 / 1.289 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.09812/1.566, allocations: 72.94 MB / 1.36 GB, free: 101.9 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