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.00136/0.00136, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001686/0.001687, allocations: 189 kB / 16.25 MB, free: 6.148 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: 222.9 MB / 239.9 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 472.6 MB / 0.7448 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 59.36 kB / 0.9115 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4037, allocations: 159.9 MB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07754/0.4813, allocations: 80.29 MB / 1.146 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03573/0.5171, allocations: 20.93 MB / 1.167 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005547/0.5227, allocations: 95.44 kB / 1.167 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.01064/0.5333, allocations: 4.318 MB / 1.171 GB, free: 0.8477 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00968/0.543, allocations: 2.654 MB / 1.173 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006574/0.5496, allocations: 2.228 MB / 1.176 GB, free: 11.97 MB / 0.9356 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1089:9-1089: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.02351/0.5731, allocations: 18.59 MB / 1.194 GB, free: 9.328 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01096/0.5842, allocations: 7.174 MB / 1.201 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01465/0.5988, allocations: 5.881 MB / 1.207 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01036/0.6092, allocations: 5.257 MB / 1.212 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.002663/0.6119, allocations: 0.5429 MB / 1.212 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008322/0.6203, allocations: 1.974 MB / 1.214 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.004346/0.6246, allocations: 1.756 MB / 1.216 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.009513/0.6342, allocations: 3.476 MB / 1.219 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01699/0.6512, allocations: 9.546 MB / 1.229 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.6512, allocations: 3.938 kB / 1.229 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6512, allocations: 0 / 1.229 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0003962/0.6516, allocations: 0 / 1.229 GB, free: 5.562 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.02198/0.6736, allocations: 6.889 MB / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/0.6737, allocations: 8.031 kB / 1.235 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006532/0.6803, allocations: 0.9489 MB / 1.236 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01647/0.6968, allocations: 6.291 MB / 1.242 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004245/0.6972, allocations: 263.1 kB / 1.243 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/0.6991, allocations: 340 kB / 1.243 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01652/0.7157, allocations: 5.73 MB / 1.249 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001617/0.7159, allocations: 11.88 kB / 1.249 GB, free: 0.6641 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001442/0.7173, allocations: 148 kB / 1.249 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/0.7175, allocations: 118 kB / 1.249 GB, free: 412 kB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7685/1.486, allocations: 5.572 MB / 1.254 GB, free: 171.6 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.04166/1.528, allocations: 24.15 MB / 1.278 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006757/1.535, allocations: 2.782 MB / 1.281 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003406/1.538, allocations: 1.91 MB / 1.282 GB, free: 155.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/1.552, allocations: 7.113 MB / 1.289 GB, free: 151.2 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003219/1.555, allocations: 1.926 MB / 1.291 GB, free: 150.1 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005526/1.561, allocations: 1.05 MB / 1.292 GB, free: 149.6 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=155): time 1.54e-05/1.561, allocations: 5.094 kB / 1.292 GB, free: 149.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=155): time 0.02818/1.589, allocations: 8.285 MB / 1.3 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/1.589, allocations: 68.56 kB / 1.3 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01474/1.604, allocations: 5.475 MB / 1.306 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.605, allocations: 73.56 kB / 1.306 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003105/1.608, allocations: 2.594 MB / 1.308 GB, free: 140 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001484/1.61, allocations: 0.5567 MB / 1.309 GB, free: 139.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002624/1.612, allocations: 0.7708 MB / 1.31 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.725e-05/1.612, allocations: 308.9 kB / 1.31 GB, free: 138.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/1.616, allocations: 1.907 MB / 1.312 GB, free: 137.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003724/1.619, allocations: 3.167 MB / 1.315 GB, free: 135.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006731/1.626, allocations: 5.035 MB / 1.32 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.418e-05/1.626, allocations: 14.06 kB / 1.32 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01631/1.642, allocations: 7.477 MB / 1.327 GB, free: 124.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.607e-05/1.643, allocations: 55.09 kB / 1.327 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.047e-05/1.643, allocations: 32 kB / 1.327 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0748/1.717, allocations: 13.65 MB / 1.341 GB, free: 110.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002983/1.72, allocations: 0.702 MB / 1.341 GB, free: 109.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/1.73, allocations: 5.542 MB / 1.347 GB, free: 104.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007201/1.737, allocations: 352.8 kB / 1.347 GB, free: 103.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009837/1.738, allocations: 203.9 kB / 1.347 GB, free: 103.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007696/1.746, allocations: 3.281 MB / 1.35 GB, free: 100.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003942/1.75, allocations: 3.112 MB / 1.353 GB, free: 96.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006183/1.756, allocations: 4.941 MB / 1.358 GB, free: 91.33 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.987e-05/1.756, allocations: 8 kB / 1.358 GB, free: 91.32 MB / 0.9981 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01226/1.768, allocations: 6.628 MB / 1.365 GB, free: 84.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.111e-05/1.768, allocations: 45.7 kB / 1.365 GB, free: 84.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-05/1.768, allocations: 36.02 kB / 1.365 GB, free: 84.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07359/1.842, allocations: 13.43 MB / 1.378 GB, free: 71.19 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002931/1.845, allocations: 0.6981 MB / 1.379 GB, free: 70.49 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.857, allocations: 8.978 MB / 1.387 GB, free: 61.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006029/1.863, allocations: 360.7 kB / 1.388 GB, free: 60.86 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007138/1.864, allocations: 195.8 kB / 1.388 GB, free: 60.67 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 (316): * Single equations (assignments): 310 * 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 {(12,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001294/1.865, allocations: 379.2 kB / 1.388 GB, free: 60.29 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/1.867, allocations: 0.49 MB / 1.389 GB, free: 59.79 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.878, allocations: 5.08 MB / 1.394 GB, free: 54.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/1.878, allocations: 16 kB / 1.394 GB, free: 54.69 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.878, allocations: 0 / 1.394 GB, free: 54.69 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00863/1.887, allocations: 5.625 MB / 1.399 GB, free: 48.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/1.907, allocations: 10.02 MB / 1.409 GB, free: 38.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/1.907, allocations: 3.938 kB / 1.409 GB, free: 38.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/1.909, allocations: 387.5 kB / 1.409 GB, free: 38.32 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06774/1.977, allocations: 11.77 MB / 1.421 GB, free: 26.55 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000671/1.977, allocations: 47.97 kB / 1.421 GB, free: 26.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005287/1.983, allocations: 3.54 MB / 1.424 GB, free: 22.89 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/1.983, allocations: 192 / 1.424 GB, free: 22.89 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02386/2.006, allocations: 8.68 MB / 1.433 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003814/2.01, allocations: 0.9749 MB / 1.434 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002109/2.012, allocations: 32 kB / 1.434 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00487/2.017, allocations: 271.2 kB / 1.434 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005295/2.018, allocations: 109.8 kB / 1.434 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004599/2.018, allocations: 83.92 kB / 1.434 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.008451/2.027, allocations: 3.726 MB / 1.438 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.51e-07/2.027, allocations: 0 / 1.438 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0132/2.04, allocations: 2.822 MB / 1.441 GB, free: 6.188 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 (136): * Single equations (assignments): 127 * 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 {(12,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002241/2.042, allocations: 0.6461 MB / 1.441 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0248/2.067, allocations: 9.066 MB / 1.45 GB, free: 12.5 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/2.067, allocations: 4 kB / 1.45 GB, free: 12.5 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.009391/2.077, allocations: 2.298 MB / 1.452 GB, free: 10.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02566/2.102, allocations: 2.913 MB / 1.455 GB, free: 7.383 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04375/2.146, allocations: 12.69 MB / 1.468 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007485/2.154, allocations: 3.424 MB / 1.471 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.01438/2.168, allocations: 1.758 MB / 1.473 GB, free: 5.453 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002819/2.171, allocations: 387.2 kB / 1.473 GB, free: 5.074 MB / 1.029 GB Notification: Performance of SimCode: time 7.153e-06/2.171, allocations: 0 / 1.473 GB, free: 5.074 MB / 1.029 GB Notification: Performance of Templates: time 0.2084/2.379, allocations: 122 MB / 1.592 GB, free: 12.17 MB / 1.154 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)