Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009989/0.0009989, allocations: 92.62 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 180.9 kB / 16.92 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.442/1.442, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.894/2.894, allocations: 462.7 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 12.16 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.316, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.084/0.4, allocations: 78.98 MB / 1.136 GB, free: 5.738 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.03285/0.4329, allocations: 20.95 MB / 1.157 GB, free: 0.7422 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004411/0.4374, allocations: 95.38 kB / 1.157 GB, free: 0.6484 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.009494/0.4469, allocations: 4.157 MB / 1.161 GB, free: 12.48 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.008422/0.4553, allocations: 2.646 MB / 1.164 GB, free: 9.828 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.006415/0.4618, allocations: 2.206 MB / 1.166 GB, free: 7.637 MB / 0.92 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.0002008867139553991}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.02791/0.4897, allocations: 23.74 MB / 1.189 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009973/0.4997, allocations: 6.031 MB / 1.195 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01026/0.51, allocations: 4.621 MB / 1.199 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009289/0.5193, allocations: 4.893 MB / 1.204 GB, free: 168 kB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.002017/0.5214, allocations: 268 kB / 1.204 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006553/0.528, allocations: 1.712 MB / 1.206 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.003201/0.5312, allocations: 1.397 MB / 1.207 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.007307/0.5385, allocations: 3.068 MB / 1.21 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.01071/0.5493, allocations: 7.295 MB / 1.218 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.5493, allocations: 4 kB / 1.218 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.833e-06/0.5493, allocations: 0 / 1.218 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0003913/0.5497, allocations: 0 / 1.218 GB, free: 2.379 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01502/0.5648, allocations: 5.695 MB / 1.223 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.5648, allocations: 12.03 kB / 1.223 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005641/0.5705, allocations: 0.9723 MB / 1.224 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/0.5853, allocations: 6.303 MB / 1.23 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003996/0.5858, allocations: 263.1 kB / 1.23 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/0.5873, allocations: 343.9 kB / 1.231 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.6015, allocations: 5.753 MB / 1.236 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000166/0.6017, allocations: 7.938 kB / 1.236 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001221/0.6029, allocations: 140 kB / 1.237 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.6031, allocations: 122 kB / 1.237 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/0.6152, allocations: 5.601 MB / 1.242 GB, free: 8.75 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.5871/1.202, allocations: 24.32 MB / 1.266 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005658/1.208, allocations: 2.792 MB / 1.269 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/1.212, allocations: 1.918 MB / 1.271 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01826/1.23, allocations: 7.164 MB / 1.278 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005067/1.235, allocations: 1.934 MB / 1.279 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005696/1.241, allocations: 1.261 MB / 1.281 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=155): time 1.844e-05/1.241, allocations: 0 / 1.281 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155): time 0.02386/1.265, allocations: 7.691 MB / 1.288 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/1.265, allocations: 75.58 kB / 1.288 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.012/1.277, allocations: 5.467 MB / 1.294 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007189/1.277, allocations: 69.8 kB / 1.294 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002822/1.28, allocations: 2.597 MB / 1.296 GB, free: 157.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001197/1.282, allocations: 0.5544 MB / 1.297 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009599/1.283, allocations: 290.4 kB / 1.297 GB, free: 156.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/1.283, allocations: 305.1 kB / 1.297 GB, free: 156.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003669/1.286, allocations: 1.858 MB / 1.299 GB, free: 155.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004117/1.29, allocations: 3.131 MB / 1.302 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006532/1.297, allocations: 4.949 MB / 1.307 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.152e-05/1.297, allocations: 7.906 kB / 1.307 GB, free: 149.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01324/1.31, allocations: 6.575 MB / 1.313 GB, free: 145.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006576/1.311, allocations: 1.134 MB / 1.315 GB, free: 144.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-05/1.311, allocations: 33.88 kB / 1.315 GB, free: 144.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06877/1.38, allocations: 11.9 MB / 1.326 GB, free: 134.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002954/1.383, allocations: 0.7176 MB / 1.327 GB, free: 134.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007159/1.39, allocations: 5.045 MB / 1.332 GB, free: 129 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005324/1.395, allocations: 363.4 kB / 1.332 GB, free: 128.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006858/1.396, allocations: 172.6 kB / 1.332 GB, free: 128.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/1.396, allocations: 4 kB / 1.332 GB, free: 128.5 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009249/1.405, allocations: 5.836 MB / 1.338 GB, free: 122.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-05/1.406, allocations: 32 kB / 1.338 GB, free: 122.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06683/1.472, allocations: 11.67 MB / 1.349 GB, free: 110.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002989/1.475, allocations: 0.7214 MB / 1.35 GB, free: 110.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/1.486, allocations: 8.033 MB / 1.358 GB, free: 101.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005234/1.491, allocations: 341 kB / 1.358 GB, free: 101.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007277/1.492, allocations: 171.9 kB / 1.358 GB, free: 101.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (319): * Single equations (assignments): 313 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.003494/1.495, allocations: 1.672 MB / 1.36 GB, free: 99.71 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001609/1.497, allocations: 0.49 MB / 1.361 GB, free: 99.22 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008588/1.505, allocations: 4.889 MB / 1.365 GB, free: 94.32 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/1.505, allocations: 16 kB / 1.365 GB, free: 94.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/1.505, allocations: 0 / 1.365 GB, free: 94.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01082/1.516, allocations: 6.438 MB / 1.372 GB, free: 87.61 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.02954/1.546, allocations: 13.22 MB / 1.385 GB, free: 74.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.946e-05/1.546, allocations: 4 kB / 1.385 GB, free: 74.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002355/1.548, allocations: 377.8 kB / 1.385 GB, free: 73.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06629/1.615, allocations: 11.9 MB / 1.397 GB, free: 62.09 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005381/1.615, allocations: 43.97 kB / 1.397 GB, free: 62.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005893/1.621, allocations: 4.369 MB / 1.401 GB, free: 57.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.621, allocations: 0 / 1.401 GB, free: 57.61 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02448/1.646, allocations: 9.784 MB / 1.41 GB, free: 47.78 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003309/1.649, allocations: 1.131 MB / 1.412 GB, free: 46.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001598/1.651, allocations: 28 kB / 1.412 GB, free: 46.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004609/1.655, allocations: 283.2 kB / 1.412 GB, free: 46.32 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005019/1.656, allocations: 105.1 kB / 1.412 GB, free: 46.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/1.656, allocations: 79.92 kB / 1.412 GB, free: 46.14 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.006241/1.662, allocations: 3.722 MB / 1.416 GB, free: 42.45 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.11e-07/1.662, allocations: 4 kB / 1.416 GB, free: 42.45 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01056/1.673, allocations: 2.823 MB / 1.418 GB, free: 39.65 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001863/1.675, allocations: 0.6443 MB / 1.419 GB, free: 39.06 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01682/1.692, allocations: 8.046 MB / 1.427 GB, free: 30.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.692, allocations: 4.062 kB / 1.427 GB, free: 30.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005677/1.697, allocations: 2.519 MB / 1.429 GB, free: 28.46 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01722/1.715, allocations: 2.9 MB / 1.432 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02378/1.739, allocations: 12.86 MB / 1.445 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/1.741, allocations: 3.392 MB / 1.448 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/1.743, allocations: 403.2 kB / 1.448 GB, free: 8.891 MB / 0.9981 GB Notification: Performance of SimCode: time 1.072e-06/1.743, allocations: 0 / 1.448 GB, free: 8.891 MB / 0.9981 GB Notification: Performance of Templates: time 0.2306/1.974, allocations: 173.2 MB / 1.618 GB, free: 12.05 MB / 1.17 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches