Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000886/0.000886, allocations: 102.2 kB / 15.71 MB, free: 440 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.00104/0.00104, allocations: 175.2 kB / 16.58 MB, free: 6.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.966/1.966, allocations: 292.7 MB / 0.5505 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006148/0.0006149, allocations: 12.69 kB / 0.6744 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3341, allocations: 116.3 MB / 0.7879 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.04409/0.3782, allocations: 41.16 MB / 0.8281 GB, free: 2.688 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01918/0.3975, allocations: 12.16 MB / 0.84 GB, free: 6.5 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.3997, allocations: 31.81 kB / 0.84 GB, free: 6.469 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.4013, allocations: 409.3 kB / 0.8404 GB, free: 6.066 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005834/0.4071, allocations: 1.547 MB / 0.8419 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003599/0.4107, allocations: 0.9408 MB / 0.8428 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005646/0.4164, allocations: 3.619 MB / 0.8464 GB, free: 15.95 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.418, allocations: 0.7422 MB / 0.8471 GB, free: 15.2 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.4208, allocations: 1.058 MB / 0.8481 GB, free: 14.13 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00135/0.4221, allocations: 0.8206 MB / 0.8489 GB, free: 13.31 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.4223, allocations: 55.94 kB / 0.849 GB, free: 13.25 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.4256, allocations: 1.119 MB / 0.8501 GB, free: 12.13 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002669/0.4259, allocations: 199 kB / 0.8503 GB, free: 11.94 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0005112/0.4264, allocations: 269.1 kB / 0.8505 GB, free: 11.67 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.4289, allocations: 1.718 MB / 0.8522 GB, free: 9.945 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 1.917e-05/0.4289, allocations: 0 / 0.8522 GB, free: 9.945 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4289, allocations: 0 / 0.8522 GB, free: 9.945 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.816e-05/0.4289, allocations: 0 / 0.8522 GB, free: 9.945 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002805/0.4317, allocations: 1.436 MB / 0.8536 GB, free: 8.457 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.4318, allocations: 8.031 kB / 0.8536 GB, free: 8.449 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003244/0.4321, allocations: 130.5 kB / 0.8537 GB, free: 8.32 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.4344, allocations: 1.174 MB / 0.8549 GB, free: 7.098 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.4345, allocations: 49.31 kB / 0.8549 GB, free: 7.051 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.4346, allocations: 64 kB / 0.855 GB, free: 6.988 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.436, allocations: 0.7552 MB / 0.8557 GB, free: 6.199 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.436, allocations: 7.938 kB / 0.8557 GB, free: 6.191 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.335e-05/0.4361, allocations: 24 kB / 0.8558 GB, free: 6.168 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/0.4361, allocations: 16 kB / 0.8558 GB, free: 6.152 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009447/0.4371, allocations: 0.5282 MB / 0.8563 GB, free: 5.625 MB / 0.67 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.005121/0.4422, allocations: 4.536 MB / 0.8607 GB, free: 0.6875 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006981/0.4429, allocations: 358.7 kB / 0.8611 GB, free: 336 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.4433, allocations: 212.7 kB / 0.8613 GB, free: 120 kB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001463/0.4447, allocations: 1.523 MB / 0.8628 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.4448, allocations: 38.56 kB / 0.8628 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=43): time 3.357e-06/0.4448, allocations: 0 / 0.8628 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of matching and sorting (n=43): time 0.002119/0.4469, allocations: 0.8812 MB / 0.8637 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.447, allocations: 59.41 kB / 0.8637 GB, free: 13.23 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.4482, allocations: 0.8831 MB / 0.8646 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.625e-05/0.4483, allocations: 37.7 kB / 0.8646 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000428/0.4487, allocations: 487.8 kB / 0.8651 GB, free: 11.8 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.4488, allocations: 149.8 kB / 0.8652 GB, free: 11.65 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.4489, allocations: 12 kB / 0.8652 GB, free: 11.64 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001685/0.4491, allocations: 333.9 kB / 0.8656 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.4494, allocations: 169 kB / 0.8657 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.4498, allocations: 331 kB / 0.866 GB, free: 10.76 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.4502, allocations: 228.5 kB / 0.8662 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4502, allocations: 4 kB / 0.8662 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001419/0.4517, allocations: 0.7175 MB / 0.8669 GB, free: 9.812 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002194/0.4519, allocations: 217.1 kB / 0.8672 GB, free: 9.543 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/0.4519, allocations: 8 kB / 0.8672 GB, free: 9.535 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005644/0.4525, allocations: 112.8 kB / 0.8673 GB, free: 9.422 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.4529, allocations: 127.7 kB / 0.8674 GB, free: 9.297 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005474/0.4535, allocations: 0.6148 MB / 0.868 GB, free: 8.656 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007138/0.4542, allocations: 91.45 kB / 0.8681 GB, free: 8.566 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.4543, allocations: 27.98 kB / 0.8681 GB, free: 8.539 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.4543, allocations: 4 kB / 0.8681 GB, free: 8.535 MB / 0.6856 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001233/0.4556, allocations: 0.6054 MB / 0.8687 GB, free: 7.922 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.4556, allocations: 11.98 kB / 0.8687 GB, free: 7.91 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004352/0.456, allocations: 121 kB / 0.8688 GB, free: 7.789 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.4564, allocations: 115.8 kB / 0.8689 GB, free: 7.676 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004646/0.4569, allocations: 0.6149 MB / 0.8695 GB, free: 7.035 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.4575, allocations: 95.41 kB / 0.8696 GB, free: 6.941 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.792e-05/0.4575, allocations: 31.98 kB / 0.8697 GB, free: 6.91 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000607/0.4581, allocations: 336.9 kB / 0.87 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.4583, allocations: 90.88 kB / 0.8701 GB, free: 6.48 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.4602, allocations: 1.016 MB / 0.8711 GB, free: 5.477 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.4603, allocations: 12 kB / 0.8711 GB, free: 5.465 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4603, allocations: 0 / 0.8711 GB, free: 5.465 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001279/0.4616, allocations: 0.9281 MB / 0.872 GB, free: 4.469 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002933/0.4645, allocations: 1.943 MB / 0.8739 GB, free: 2.453 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/0.4645, allocations: 7.984 kB / 0.8739 GB, free: 2.445 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000354/0.4649, allocations: 91.98 kB / 0.874 GB, free: 2.355 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003096/0.4652, allocations: 84.78 kB / 0.8741 GB, free: 2.27 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.4653, allocations: 19.98 kB / 0.8741 GB, free: 2.25 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004781/0.4658, allocations: 0.6109 MB / 0.8747 GB, free: 1.613 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4658, allocations: 3.938 kB / 0.8747 GB, free: 1.609 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.4676, allocations: 1.271 MB / 0.8759 GB, free: 316 kB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/0.4681, allocations: 295.5 kB / 0.8762 GB, free: 0 / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.4682, allocations: 12.08 kB / 0.8762 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005119/0.4687, allocations: 59.86 kB / 0.8763 GB, free: 15.93 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4688, allocations: 52.48 kB / 0.8763 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-05/0.4689, allocations: 23.98 kB / 0.8763 GB, free: 15.85 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0009172/0.4698, allocations: 0.6137 MB / 0.8769 GB, free: 15.23 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4698, allocations: 0 / 0.8769 GB, free: 15.23 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0018/0.4717, allocations: 0.6081 MB / 0.8775 GB, free: 14.62 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (pip.cor.del.x,pip.cor.timDel.x,pip.vol.dynBal.U) * 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 (55): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001042/0.4727, allocations: 0.516 MB / 0.878 GB, free: 14.11 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001582/0.4743, allocations: 0.9236 MB / 0.8789 GB, free: 13.17 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4743, allocations: 0 / 0.8789 GB, free: 13.17 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.4749, allocations: 407 kB / 0.8793 GB, free: 12.76 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.4769, allocations: 468.3 kB / 0.8798 GB, free: 12.31 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.4804, allocations: 2.369 MB / 0.8821 GB, free: 9.891 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/0.4811, allocations: 1.046 MB / 0.8831 GB, free: 8.816 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.4813, allocations: 95.41 kB / 0.8832 GB, free: 8.723 MB / 0.7012 GB Notification: Performance of SimCode: time 3.51e-07/0.4813, allocations: 4 kB / 0.8832 GB, free: 8.719 MB / 0.7012 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 1 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 3 .