Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.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.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|steTra.port_a.p|steTra.port_b.p|steTra.sta_a.T|steTra.sta_b.T|hIn.h_out|hOut.h_out|steTra.m_flow|steTra.QLos_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap") translateModel(Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|steTra.port_a.p|steTra.port_b.p|steTra.sta_a.T|steTra.sta_b.T|hIn.h_out|hOut.h_out|steTra.m_flow|steTra.QLos_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008073/0.0008073, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005305/0.005305, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.341/1.341, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.776/2.776, allocations: 462.7 MB / 0.7364 GB, free: 208 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003359, allocations: 10.09 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2961, allocations: 159.6 MB / 1.059 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap): time 0.03633/0.3325, allocations: 36.29 MB / 1.094 GB, free: 0.9805 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1532/0.4858, allocations: 145 MB / 1.236 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.4876, allocations: 47.69 kB / 1.236 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.007421/0.4951, allocations: 3.84 MB / 1.24 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005324/0.5004, allocations: 1.804 MB / 1.241 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003474/0.5039, allocations: 1.298 MB / 1.243 GB, free: 8.445 MB / 0.9981 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.02008867139553991}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.009581/0.5135, allocations: 7.33 MB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001929/0.5154, allocations: 0.9376 MB / 1.251 GB, free: 140 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.6027/1.118, allocations: 1.224 MB / 1.252 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/1.121, allocations: 0.968 MB / 1.253 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005031/1.121, allocations: 50.31 kB / 1.253 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003086/1.124, allocations: 1.073 MB / 1.254 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008823/1.125, allocations: 445.6 kB / 1.254 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001622/1.127, allocations: 0.7897 MB / 1.255 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004123/1.131, allocations: 2.598 MB / 1.258 GB, free: 11 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.646e-05/1.131, allocations: 0 / 1.258 GB, free: 11 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.575e-06/1.131, allocations: 0 / 1.258 GB, free: 11 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.206e-05/1.131, allocations: 0 / 1.258 GB, free: 11 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.003289/1.134, allocations: 1.787 MB / 1.259 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/1.134, allocations: 8.75 kB / 1.259 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/1.136, allocations: 362.2 kB / 1.26 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003981/1.14, allocations: 2.122 MB / 1.262 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.353e-05/1.14, allocations: 68.39 kB / 1.262 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/1.141, allocations: 84.84 kB / 1.262 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/1.142, allocations: 0.8538 MB / 1.263 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/1.142, allocations: 2.531 kB / 1.263 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.347e-05/1.142, allocations: 36.66 kB / 1.263 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.984e-05/1.142, allocations: 28.36 kB / 1.263 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/1.144, allocations: 0.684 MB / 1.263 GB, free: 9.297 MB / 0.9981 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.00605/1.15, allocations: 3.797 MB / 1.267 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/1.152, allocations: 0.521 MB / 1.268 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006459/1.152, allocations: 259.5 kB / 1.268 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003344/1.156, allocations: 1.835 MB / 1.27 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/1.156, allocations: 42.48 kB / 1.27 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004985/1.156, allocations: 65.53 kB / 1.27 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=44): time 3.426e-06/1.156, allocations: 0 / 1.27 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of matching and sorting (n=44): time 0.002254/1.158, allocations: 0.7547 MB / 1.271 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/1.159, allocations: 60.25 kB / 1.271 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/1.161, allocations: 1.519 MB / 1.272 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001145/1.161, allocations: 40.55 kB / 1.272 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005912/1.162, allocations: 0.6703 MB / 1.273 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/1.162, allocations: 174.4 kB / 1.273 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/1.162, allocations: 125.1 kB / 1.273 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000107/1.162, allocations: 351.4 kB / 1.273 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009617/1.163, allocations: 429.6 kB / 1.274 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/1.165, allocations: 0.7074 MB / 1.275 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/1.167, allocations: 1.051 MB / 1.276 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/1.167, allocations: 6.531 kB / 1.276 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002965/1.17, allocations: 1.312 MB / 1.277 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001707/1.17, allocations: 307.1 kB / 1.277 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/1.17, allocations: 8.312 kB / 1.277 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.637e-05/1.17, allocations: 11.91 kB / 1.277 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009491/1.171, allocations: 238 kB / 1.277 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.378e-05/1.171, allocations: 17.2 kB / 1.277 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/1.172, allocations: 89.81 kB / 1.277 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/1.173, allocations: 45.45 kB / 1.278 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/1.173, allocations: 9.734 kB / 1.278 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002198/1.175, allocations: 1.141 MB / 1.279 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/1.175, allocations: 10.72 kB / 1.279 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/1.175, allocations: 12.95 kB / 1.279 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008877/1.176, allocations: 228.9 kB / 1.279 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-05/1.176, allocations: 16.14 kB / 1.279 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/1.177, allocations: 92.62 kB / 1.279 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/1.177, allocations: 45.84 kB / 1.279 GB, free: 4.164 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (116): * Single equations (assignments): 114 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001106/1.178, allocations: 496.6 kB / 1.28 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000488/1.179, allocations: 143.8 kB / 1.28 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/1.181, allocations: 0.7535 MB / 1.28 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/1.181, allocations: 6.062 kB / 1.28 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.181, allocations: 1.438 kB / 1.28 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001351/1.183, allocations: 0.7676 MB / 1.281 GB, free: 3.441 MB / 0.9981 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 postOpt removeSimpleEquations (simulation): time 0.004248/1.187, allocations: 1.858 MB / 1.283 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/1.187, allocations: 2.438 kB / 1.283 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006179/1.187, allocations: 118.1 kB / 1.283 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/1.187, allocations: 4.391 kB / 1.283 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/1.188, allocations: 16.61 kB / 1.283 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/1.188, allocations: 3.031 kB / 1.283 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.188, allocations: 1.062 kB / 1.283 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/1.19, allocations: 1.075 MB / 1.284 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007124/1.191, allocations: 301.9 kB / 1.284 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003724/1.191, allocations: 11.84 kB / 1.284 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009536/1.192, allocations: 66.52 kB / 1.285 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/1.192, allocations: 43.23 kB / 1.285 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.509e-05/1.192, allocations: 20.06 kB / 1.285 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001876/1.194, allocations: 1.009 MB / 1.286 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.194, allocations: 0 / 1.286 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002865/1.197, allocations: 0.7454 MB / 1.286 GB, free: 2.34 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pum.vol.dynBal.U,pum.filter.s[1],pum.filter.s[2],hIn.h_out,hOut.h_out) * 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 (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00131/1.198, allocations: 0.509 MB / 1.287 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003123/1.201, allocations: 1.471 MB / 1.288 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/1.201, allocations: 1.156 kB / 1.288 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007024/1.202, allocations: 290.9 kB / 1.289 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004298/1.206, allocations: 0.664 MB / 1.289 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005243/1.212, allocations: 3.114 MB / 1.292 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/1.213, allocations: 1.288 MB / 1.293 GB, free: 15.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002106/1.215, allocations: 410 kB / 1.294 GB, free: 15.69 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005408/1.216, allocations: 127.1 kB / 1.294 GB, free: 15.67 MB / 1.014 GB Notification: Performance of SimCode: time 9.62e-07/1.216, allocations: 0 / 1.294 GB, free: 15.67 MB / 1.014 GB Notification: Performance of Templates: time 0.04677/1.262, allocations: 27.69 MB / 1.321 GB, free: 10.07 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.sim & ./Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_Steam_BaseClasses_Examples_SteamTrap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.SteamTrap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches