Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.0008761/0.0008757, allocations: 97.56 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.006677/0.006677, allocations: 169.2 kB / 16.26 MB, free: 6.648 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.419/1.419, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.912/2.912, allocations: 473.4 MB / 0.7469 GB, free: 6.012 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004186, allocations: 10.66 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3974, allocations: 162.2 MB / 1.074 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08073/0.4782, allocations: 79 MB / 1.151 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.0322/0.5104, allocations: 20.94 MB / 1.172 GB, free: 3.277 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004645/0.5151, allocations: 91.38 kB / 1.172 GB, free: 3.188 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.009554/0.5247, allocations: 4.157 MB / 1.176 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.008701/0.5334, allocations: 2.651 MB / 1.178 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006309/0.5398, allocations: 2.205 MB / 1.181 GB, free: 10.17 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.0274/0.5672, allocations: 23.75 MB / 1.204 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00978/0.577, allocations: 6.016 MB / 1.21 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.5883, allocations: 4.641 MB / 1.214 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00977/0.5981, allocations: 4.882 MB / 1.219 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001689/0.5998, allocations: 260 kB / 1.219 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006102/0.6059, allocations: 1.716 MB / 1.221 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.002392/0.6083, allocations: 1.401 MB / 1.222 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.007346/0.6157, allocations: 3.068 MB / 1.225 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.631, allocations: 9.127 MB / 1.234 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.6311, allocations: 4 kB / 1.234 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.334e-06/0.6311, allocations: 0 / 1.234 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0004185/0.6315, allocations: 0 / 1.234 GB, free: 3.07 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.01598/0.6475, allocations: 5.695 MB / 1.24 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.6476, allocations: 8.031 kB / 1.24 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00588/0.6535, allocations: 0.9801 MB / 1.241 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01713/0.6706, allocations: 6.299 MB / 1.247 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005534/0.6712, allocations: 259.1 kB / 1.247 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002504/0.6738, allocations: 344 kB / 1.247 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7393/1.413, allocations: 5.734 MB / 1.253 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/1.413, allocations: 11.28 kB / 1.253 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006757/1.414, allocations: 148.3 kB / 1.253 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/1.414, allocations: 115 kB / 1.253 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/1.428, allocations: 5.605 MB / 1.259 GB, free: 169.1 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.0446/1.473, allocations: 24.33 MB / 1.283 GB, free: 153.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006167/1.479, allocations: 2.809 MB / 1.285 GB, free: 152.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003488/1.482, allocations: 1.922 MB / 1.287 GB, free: 152.2 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0162/1.499, allocations: 7.162 MB / 1.294 GB, free: 147.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003899/1.502, allocations: 1.934 MB / 1.296 GB, free: 146 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00612/1.509, allocations: 1.254 MB / 1.297 GB, free: 145.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=155): time 2.261e-05/1.509, allocations: 0 / 1.297 GB, free: 145.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155): time 0.02497/1.534, allocations: 7.696 MB / 1.305 GB, free: 141.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/1.534, allocations: 67.75 kB / 1.305 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/1.545, allocations: 5.478 MB / 1.31 GB, free: 138.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007808/1.546, allocations: 65.61 kB / 1.31 GB, free: 138.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002847/1.549, allocations: 2.593 MB / 1.313 GB, free: 136.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001143/1.55, allocations: 0.5543 MB / 1.313 GB, free: 135.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008778/1.551, allocations: 286.1 kB / 1.314 GB, free: 135.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.828e-05/1.551, allocations: 309.1 kB / 1.314 GB, free: 135.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/1.554, allocations: 1.862 MB / 1.316 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004507/1.559, allocations: 3.128 MB / 1.319 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006759/1.566, allocations: 4.938 MB / 1.324 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.071e-05/1.566, allocations: 7.531 kB / 1.324 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01287/1.578, allocations: 6.583 MB / 1.33 GB, free: 122.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005942/1.579, allocations: 1.129 MB / 1.331 GB, free: 121.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.879e-05/1.579, allocations: 40 kB / 1.331 GB, free: 121.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1267/1.706, allocations: 11.91 MB / 1.343 GB, free: 109.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006056/1.712, allocations: 0.7215 MB / 1.343 GB, free: 108.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01388/1.726, allocations: 5.03 MB / 1.348 GB, free: 103.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/1.736, allocations: 356.9 kB / 1.349 GB, free: 103 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.738, allocations: 183.8 kB / 1.349 GB, free: 102.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.738, allocations: 5.25 kB / 1.349 GB, free: 102.9 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01714/1.755, allocations: 5.832 MB / 1.355 GB, free: 97.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/1.755, allocations: 32 kB / 1.355 GB, free: 96.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09525/1.85, allocations: 11.67 MB / 1.366 GB, free: 85.35 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/1.853, allocations: 0.7193 MB / 1.367 GB, free: 84.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/1.863, allocations: 8.036 MB / 1.375 GB, free: 76.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00513/1.868, allocations: 350.3 kB / 1.375 GB, free: 75.97 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005268/1.869, allocations: 167.9 kB / 1.375 GB, free: 75.8 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.003014/1.872, allocations: 1.663 MB / 1.377 GB, free: 74.13 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/1.873, allocations: 0.4939 MB / 1.377 GB, free: 73.63 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007585/1.881, allocations: 4.893 MB / 1.382 GB, free: 68.73 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/1.881, allocations: 16 kB / 1.382 GB, free: 68.71 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.881, allocations: 0 / 1.382 GB, free: 68.71 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01068/1.892, allocations: 6.432 MB / 1.388 GB, free: 62.03 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.02925/1.921, allocations: 13.23 MB / 1.401 GB, free: 48.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/1.921, allocations: 3.312 kB / 1.401 GB, free: 48.72 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002378/1.923, allocations: 375.6 kB / 1.402 GB, free: 48.35 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07164/1.995, allocations: 11.89 MB / 1.413 GB, free: 36.51 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005714/1.995, allocations: 55.89 kB / 1.413 GB, free: 36.46 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005889/2.001, allocations: 4.371 MB / 1.417 GB, free: 32.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/2.001, allocations: 0 / 1.417 GB, free: 32.02 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02466/2.026, allocations: 9.777 MB / 1.427 GB, free: 22.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003166/2.029, allocations: 1.127 MB / 1.428 GB, free: 21.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/2.03, allocations: 28.06 kB / 1.428 GB, free: 21.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003531/2.034, allocations: 291.2 kB / 1.428 GB, free: 20.73 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/2.034, allocations: 105.1 kB / 1.429 GB, free: 20.63 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/2.034, allocations: 79.94 kB / 1.429 GB, free: 20.55 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.005139/2.04, allocations: 3.726 MB / 1.432 GB, free: 16.86 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/2.04, allocations: 0 / 1.432 GB, free: 16.86 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.008769/2.048, allocations: 2.824 MB / 1.435 GB, free: 14.06 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.001554/2.05, allocations: 0.6493 MB / 1.436 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01595/2.066, allocations: 8.041 MB / 1.443 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/2.066, allocations: 0 / 1.443 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005489/2.071, allocations: 2.532 MB / 1.446 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01467/2.086, allocations: 2.903 MB / 1.449 GB, free: 15.98 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/2.107, allocations: 12.74 MB / 1.461 GB, free: 3.199 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003207/2.11, allocations: 3.404 MB / 1.465 GB, free: 15.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.007292/2.117, allocations: 1.848 MB / 1.466 GB, free: 13.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/2.119, allocations: 387.2 kB / 1.467 GB, free: 13.54 MB / 1.029 GB Notification: Performance of SimCode: time 1.122e-06/2.119, allocations: 0 / 1.467 GB, free: 13.54 MB / 1.029 GB Notification: Performance of Templates: time 0.1892/2.308, allocations: 115.2 MB / 1.579 GB, free: 11.36 MB / 1.139 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)