Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001304/0.001304, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.009031/0.009031, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.466/1.466, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.9/2.9, allocations: 473.4 MB / 0.7469 GB, free: 6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004013/0.0004013, allocations: 9.5 kB / 0.9158 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3771, allocations: 162.2 MB / 1.074 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07668/0.4538, allocations: 79 MB / 1.151 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03235/0.4862, allocations: 20.95 MB / 1.172 GB, free: 3.246 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004388/0.4907, allocations: 91.38 kB / 1.172 GB, free: 3.156 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.009092/0.4998, allocations: 4.153 MB / 1.176 GB, free: 15 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.009193/0.509, allocations: 2.659 MB / 1.178 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006886/0.5159, allocations: 2.198 MB / 1.181 GB, free: 10.14 MB / 0.9356 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.0002008867139553991}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.02716/0.5431, allocations: 23.75 MB / 1.204 GB, free: 2.332 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009665/0.5528, allocations: 6.012 MB / 1.21 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01159/0.5644, allocations: 4.629 MB / 1.214 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009756/0.5742, allocations: 4.893 MB / 1.219 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.002034/0.5762, allocations: 264 kB / 1.219 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00699/0.5833, allocations: 1.716 MB / 1.221 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.003498/0.5868, allocations: 1.389 MB / 1.222 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.007384/0.5942, allocations: 3.079 MB / 1.225 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.6084, allocations: 9.119 MB / 1.234 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.6085, allocations: 0 / 1.234 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.946e-06/0.6085, allocations: 0 / 1.234 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0003862/0.6089, allocations: 0 / 1.234 GB, free: 3.055 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: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01518/0.6241, allocations: 5.699 MB / 1.24 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.6241, allocations: 8.031 kB / 1.24 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005556/0.6297, allocations: 0.9762 MB / 1.241 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/0.6427, allocations: 6.295 MB / 1.247 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002768/0.643, allocations: 267 kB / 1.247 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.6441, allocations: 348 kB / 1.247 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6702/1.314, allocations: 5.732 MB / 1.253 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.406e-05/1.314, allocations: 14.62 kB / 1.253 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005822/1.315, allocations: 142.9 kB / 1.253 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/1.315, allocations: 119 kB / 1.253 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01146/1.327, allocations: 5.6 MB / 1.259 GB, free: 168.7 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.03919/1.366, allocations: 24.33 MB / 1.283 GB, free: 153.7 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005425/1.371, allocations: 2.802 MB / 1.285 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003435/1.375, allocations: 1.924 MB / 1.287 GB, free: 152 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0158/1.391, allocations: 7.163 MB / 1.294 GB, free: 147 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003813/1.394, allocations: 1.933 MB / 1.296 GB, free: 145.9 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006672/1.401, allocations: 1.259 MB / 1.297 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=155): time 2.057e-05/1.401, allocations: 0 / 1.297 GB, free: 145.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155): time 0.02362/1.425, allocations: 7.696 MB / 1.305 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/1.425, allocations: 69.12 kB / 1.305 GB, free: 141.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008634/1.434, allocations: 5.477 MB / 1.31 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000969/1.435, allocations: 62.09 kB / 1.31 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002352/1.437, allocations: 2.597 MB / 1.313 GB, free: 136 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000946/1.438, allocations: 0.5602 MB / 1.313 GB, free: 135.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004127/1.438, allocations: 286.5 kB / 1.314 GB, free: 135.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.232e-05/1.438, allocations: 313 kB / 1.314 GB, free: 135.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/1.441, allocations: 1.857 MB / 1.316 GB, free: 134.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/1.445, allocations: 3.13 MB / 1.319 GB, free: 131.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005426/1.45, allocations: 4.937 MB / 1.324 GB, free: 128 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.031e-05/1.45, allocations: 6.969 kB / 1.324 GB, free: 128 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01046/1.461, allocations: 6.578 MB / 1.33 GB, free: 122.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000603/1.461, allocations: 1.138 MB / 1.331 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/1.461, allocations: 34.3 kB / 1.331 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07003/1.531, allocations: 11.91 MB / 1.343 GB, free: 109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/1.535, allocations: 0.7254 MB / 1.344 GB, free: 108.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007007/1.542, allocations: 5.028 MB / 1.348 GB, free: 103.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006353/1.548, allocations: 356.8 kB / 1.349 GB, free: 102.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006403/1.549, allocations: 175.8 kB / 1.349 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/1.549, allocations: 4 kB / 1.349 GB, free: 102.7 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008286/1.557, allocations: 5.836 MB / 1.355 GB, free: 96.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.904e-05/1.557, allocations: 33.8 kB / 1.355 GB, free: 96.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06873/1.626, allocations: 11.67 MB / 1.366 GB, free: 85.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/1.629, allocations: 0.7137 MB / 1.367 GB, free: 84.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/1.639, allocations: 8.042 MB / 1.375 GB, free: 76.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005535/1.645, allocations: 352.8 kB / 1.375 GB, free: 75.77 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005999/1.646, allocations: 167.9 kB / 1.375 GB, free: 75.61 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.003663/1.649, allocations: 1.663 MB / 1.377 GB, free: 73.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001675/1.651, allocations: 0.49 MB / 1.377 GB, free: 73.44 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007741/1.659, allocations: 4.891 MB / 1.382 GB, free: 68.54 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/1.659, allocations: 16 kB / 1.382 GB, free: 68.52 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.659, allocations: 0 / 1.382 GB, free: 68.52 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01069/1.669, allocations: 6.431 MB / 1.388 GB, free: 61.83 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.02943/1.699, allocations: 13.23 MB / 1.401 GB, free: 48.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/1.699, allocations: 0 / 1.401 GB, free: 48.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.701, allocations: 376.8 kB / 1.402 GB, free: 48.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06929/1.771, allocations: 11.9 MB / 1.413 GB, free: 36.32 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005111/1.771, allocations: 51.91 kB / 1.413 GB, free: 36.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005749/1.777, allocations: 4.372 MB / 1.417 GB, free: 31.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.777, allocations: 0 / 1.417 GB, free: 31.82 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02387/1.801, allocations: 9.772 MB / 1.427 GB, free: 22.01 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003708/1.805, allocations: 1.127 MB / 1.428 GB, free: 20.86 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.806, allocations: 32 kB / 1.428 GB, free: 20.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004028/1.81, allocations: 275.2 kB / 1.428 GB, free: 20.55 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/1.81, allocations: 109.1 kB / 1.429 GB, free: 20.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002642/1.811, allocations: 87.92 kB / 1.429 GB, free: 20.36 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005365/1.816, allocations: 3.722 MB / 1.432 GB, free: 16.67 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4e-07/1.816, allocations: 3.938 kB / 1.432 GB, free: 16.67 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00939/1.825, allocations: 2.824 MB / 1.435 GB, free: 13.88 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.001659/1.827, allocations: 0.652 MB / 1.436 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0162/1.843, allocations: 8.041 MB / 1.443 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/1.843, allocations: 4 kB / 1.444 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005656/1.849, allocations: 2.537 MB / 1.446 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01587/1.865, allocations: 2.894 MB / 1.449 GB, free: 15.79 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02306/1.888, allocations: 12.74 MB / 1.461 GB, free: 3.016 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/1.892, allocations: 3.408 MB / 1.465 GB, free: 15.58 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.007126/1.899, allocations: 1.858 MB / 1.466 GB, free: 13.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/1.9, allocations: 379.2 kB / 1.467 GB, free: 13.34 MB / 1.029 GB Notification: Performance of SimCode: time 8.82e-07/1.9, allocations: 0 / 1.467 GB, free: 13.34 MB / 1.029 GB Notification: Performance of Templates: time 0.1973/2.098, allocations: 115.2 MB / 1.579 GB, free: 11.17 MB / 1.139 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)