Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Validation.Routing.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.Templates.Components.Validation.Routing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mulMul.ports_a.1..m_flow|mulMul.ports_b.1..m_flow|mulMul.m_flow_nominal|mulMulCom.ports_a.1..m_flow|mulMulCom.ports_b.1..m_flow|mulMulCom.m_flow_nominal|mulSin.ports_a.1..m_flow|mulSin.port_b.m_flow|mulSin.m_flow_nominal|sinMul.port_a.m_flow|sinMul.ports_b.1..m_flow|sinMul.m_flow_nominal|pas.port_a.m_flow",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Routing") translateModel(Buildings.Templates.Components.Validation.Routing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mulMul.ports_a.1..m_flow|mulMul.ports_b.1..m_flow|mulMul.m_flow_nominal|mulMulCom.ports_a.1..m_flow|mulMulCom.ports_b.1..m_flow|mulMulCom.m_flow_nominal|mulSin.ports_a.1..m_flow|mulSin.port_b.m_flow|mulSin.m_flow_nominal|sinMul.port_a.m_flow|sinMul.ports_b.1..m_flow|sinMul.m_flow_nominal|pas.port_a.m_flow",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Routing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 90.83 kB / 15.06 MB, free: 1.094 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.001287/0.001287, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.052/3.052, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004637, allocations: 8.156 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4172, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Routing): time 0.1024/0.5197, allocations: 105.2 MB / 1.161 GB, free: 11.86 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.04435/0.5641, allocations: 27.7 MB / 1.188 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01026/0.5745, allocations: 115.3 kB / 1.188 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.006433/0.581, allocations: 0.9274 MB / 1.189 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01293/0.594, allocations: 2.713 MB / 1.191 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.007666/0.6016, allocations: 1.955 MB / 1.193 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01637/0.618, allocations: 12.16 MB / 1.205 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005799/0.6239, allocations: 2.842 MB / 1.208 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009726/0.6336, allocations: 3.142 MB / 1.211 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006564/0.6403, allocations: 2.617 MB / 1.214 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0007446/0.641, allocations: 120 kB / 1.214 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005438/0.6465, allocations: 1.154 MB / 1.215 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0008874/0.6474, allocations: 0.5677 MB / 1.215 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.6495, allocations: 0.703 MB / 1.216 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.006051/0.6555, allocations: 3.815 MB / 1.22 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.6556, allocations: 0 / 1.22 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.345e-06/0.6556, allocations: 0 / 1.22 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.594e-05/0.6557, allocations: 0 / 1.22 GB, free: 15.15 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 537 * Number of variables: 537 Notification: Performance of Generate backend data structure: time 0.005952/0.6616, allocations: 3.192 MB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.6617, allocations: 8.031 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009895/0.6627, allocations: 407.4 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/0.6672, allocations: 2.479 MB / 1.226 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.6673, allocations: 172.2 kB / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003182/0.6677, allocations: 235.9 kB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00433/0.672, allocations: 2.569 MB / 1.229 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.6721, allocations: 8 kB / 1.229 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.6722, allocations: 80 kB / 1.229 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.313e-05/0.6723, allocations: 60 kB / 1.229 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003104/0.6754, allocations: 1.932 MB / 1.231 GB, free: 3.777 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01519/0.6906, allocations: 10.26 MB / 1.241 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.6918, allocations: 0.7447 MB / 1.241 GB, free: 8.098 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008016/0.6926, allocations: 0.5937 MB / 1.242 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001892/0.6945, allocations: 1.904 MB / 1.244 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.6946, allocations: 46.84 kB / 1.244 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=89): time 3.366e-06/0.6946, allocations: 0 / 1.244 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of matching and sorting (n=89): time 0.004699/0.6993, allocations: 2.024 MB / 1.246 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.6994, allocations: 170.2 kB / 1.246 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003678/0.7031, allocations: 2.666 MB / 1.249 GB, free: 184 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.7032, allocations: 53.7 kB / 1.249 GB, free: 124 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.8445/1.548, allocations: 1.367 MB / 1.25 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007417/1.549, allocations: 319.2 kB / 1.25 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.553e-05/1.549, allocations: 21.28 kB / 1.25 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001713/1.549, allocations: 348.4 kB / 1.251 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/1.55, allocations: 416.9 kB / 1.251 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/1.552, allocations: 0.9617 MB / 1.252 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/1.553, allocations: 0.5544 MB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/1.553, allocations: 6.938 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.003837/1.556, allocations: 1.628 MB / 1.254 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001917/1.557, allocations: 352 kB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/1.557, allocations: 12.56 kB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008614/1.558, allocations: 237.1 kB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001985/1.56, allocations: 472.5 kB / 1.255 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003589/1.563, allocations: 6.912 MB / 1.262 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/1.566, allocations: 330.7 kB / 1.262 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/1.566, allocations: 62.44 kB / 1.262 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/1.566, allocations: 3.125 kB / 1.262 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002297/1.569, allocations: 1.234 MB / 1.264 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/1.569, allocations: 8.844 kB / 1.264 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000386/1.569, allocations: 144.3 kB / 1.264 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008043/1.57, allocations: 252.1 kB / 1.264 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002734/1.573, allocations: 2.261 MB / 1.266 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002928/1.576, allocations: 308.3 kB / 1.266 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/1.576, allocations: 60.56 kB / 1.266 GB, free: 173.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 10 {1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 7} Notification: Performance of prepare postOptimizeDAE: time 0.001901/1.578, allocations: 0.874 MB / 1.267 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006572/1.578, allocations: 280.4 kB / 1.268 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/1.581, allocations: 1.632 MB / 1.269 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/1.581, allocations: 10.95 kB / 1.269 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.581, allocations: 2.625 kB / 1.269 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001917/1.583, allocations: 1.442 MB / 1.271 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008829/1.592, allocations: 4.355 MB / 1.275 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.592, allocations: 10.44 kB / 1.275 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009588/1.593, allocations: 249.4 kB / 1.275 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/1.593, allocations: 161.5 kB / 1.275 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/1.593, allocations: 30.61 kB / 1.275 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002818/1.596, allocations: 6.831 MB / 1.282 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/1.596, allocations: 6.344 kB / 1.282 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004401/1.601, allocations: 2.653 MB / 1.285 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/1.602, allocations: 0.5464 MB / 1.285 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/1.603, allocations: 25.56 kB / 1.285 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/1.604, allocations: 213.8 kB / 1.285 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/1.604, allocations: 80.78 kB / 1.285 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/1.604, allocations: 51.89 kB / 1.285 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00324/1.608, allocations: 1.835 MB / 1.287 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.6e-07/1.608, allocations: 0 / 1.287 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005107/1.613, allocations: 1.511 MB / 1.289 GB, free: 163.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 3 (sinMul.del.dynBal.U,mulSin.del.dynBal.U,mulMulCom.del.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 10 {1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001253/1.614, allocations: 0.5951 MB / 1.289 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005671/1.62, allocations: 2.218 MB / 1.291 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/1.62, allocations: 5.406 kB / 1.291 GB, free: 162.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/1.621, allocations: 0.6884 MB / 1.292 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009124/1.63, allocations: 1.688 MB / 1.294 GB, free: 162 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/1.641, allocations: 6.271 MB / 1.3 GB, free: 158.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002033/1.643, allocations: 2.176 MB / 1.302 GB, free: 157.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003684/1.646, allocations: 0.6704 MB / 1.303 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/1.647, allocations: 182.9 kB / 1.303 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.904e-06/1.647, allocations: 3.938 kB / 1.303 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.08708/1.734, allocations: 54.44 MB / 1.356 GB, free: 108.8 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Validation.Routing.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Validation.Routing.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Validation.Routing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Validation.Routing.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Validation.Routing.sim & ./Buildings_latest_Buildings.Templates.Components.Validation.Routing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Validation.Routing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Validation.Routing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Validation_Routing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Validation.Routing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches