Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0009628/0.0009629, allocations: 91.08 kB / 16.33 MB, free: 6.367 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.001145/0.001145, allocations: 178.1 kB / 17.22 MB, free: 6.25 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.512/1.512, allocations: 223.2 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7242/0.7242, allocations: 114.4 MB / 406.7 MB, free: 4 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 12 kB / 494.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1995, allocations: 77.26 MB / 0.5583 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.4574/0.657, allocations: 55.99 MB / 0.613 GB, free: 4.707 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02635/0.6834, allocations: 13.72 MB / 0.6264 GB, free: 10.85 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004776/0.6883, allocations: 55.59 kB / 0.6265 GB, free: 10.82 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.6914, allocations: 0.503 MB / 0.6269 GB, free: 10.55 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008628/0.7001, allocations: 1.792 MB / 0.6287 GB, free: 9.535 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005497/0.7056, allocations: 1.197 MB / 0.6299 GB, free: 8.945 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.009149/0.7148, allocations: 4.537 MB / 0.6343 GB, free: 6.262 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003017/0.7178, allocations: 0.8978 MB / 0.6352 GB, free: 5.695 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005101/0.723, allocations: 1.268 MB / 0.6364 GB, free: 5.008 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003494/0.7265, allocations: 0.9782 MB / 0.6374 GB, free: 4.445 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006301/0.7272, allocations: 55.06 kB / 0.6374 GB, free: 4.441 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005674/0.7329, allocations: 1.222 MB / 0.6386 GB, free: 3.789 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008031/0.7337, allocations: 232.8 kB / 0.6388 GB, free: 3.617 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.735, allocations: 316.5 kB / 0.6391 GB, free: 3.441 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005216/0.7402, allocations: 1.915 MB / 0.641 GB, free: 2.18 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.289e-05/0.7403, allocations: 0 / 0.641 GB, free: 2.18 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.438e-06/0.7403, allocations: 0 / 0.641 GB, free: 2.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001351/0.7404, allocations: 0 / 0.641 GB, free: 2.18 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005729/0.7462, allocations: 1.594 MB / 0.6426 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/0.7463, allocations: 11.91 kB / 0.6426 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.7473, allocations: 161.4 kB / 0.6427 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004229/0.7516, allocations: 1.247 MB / 0.6439 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-05/0.7517, allocations: 66.91 kB / 0.644 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003426/0.7521, allocations: 86.75 kB / 0.6441 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.7547, allocations: 0.9539 MB / 0.645 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/0.7547, allocations: 6.469 kB / 0.645 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.7549, allocations: 40.31 kB / 0.6451 GB, free: 15.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.418e-05/0.7549, allocations: 22.53 kB / 0.6451 GB, free: 15.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.7566, allocations: 0.6665 MB / 0.6457 GB, free: 14.82 MB / 478.1 MB 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.008818/0.7654, allocations: 5.216 MB / 0.6508 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008607/0.7663, allocations: 402.5 kB / 0.6512 GB, free: 9.828 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.7667, allocations: 243.1 kB / 0.6515 GB, free: 9.668 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001679/0.7684, allocations: 1.603 MB / 0.653 GB, free: 7.715 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.7685, allocations: 39 kB / 0.6531 GB, free: 7.668 MB / 478.1 MB Notification: Performance of pre-optimization done (n=53): time 2.635e-06/0.7685, allocations: 0 / 0.6531 GB, free: 7.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=53): time 0.002654/0.7712, allocations: 0.9369 MB / 0.654 GB, free: 6.707 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.7712, allocations: 59.78 kB / 0.654 GB, free: 6.637 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.7732, allocations: 0.9772 MB / 0.655 GB, free: 5.645 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-05/0.7733, allocations: 33.7 kB / 0.655 GB, free: 5.605 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006604/0.774, allocations: 0.5774 MB / 0.6556 GB, free: 5.02 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/0.7743, allocations: 193.2 kB / 0.6558 GB, free: 4.828 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/0.7743, allocations: 12 kB / 0.6558 GB, free: 4.816 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.7745, allocations: 334 kB / 0.6561 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/0.7749, allocations: 197.5 kB / 0.6563 GB, free: 4.293 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.7756, allocations: 400.9 kB / 0.6567 GB, free: 3.824 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005445/0.7761, allocations: 262.1 kB / 0.6569 GB, free: 3.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.7761, allocations: 0 / 0.6569 GB, free: 3.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002206/0.7784, allocations: 0.8341 MB / 0.6577 GB, free: 2.727 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002972/0.7787, allocations: 269.5 kB / 0.658 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/0.7787, allocations: 8 kB / 0.658 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.7793, allocations: 104.8 kB / 0.6581 GB, free: 2.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.7798, allocations: 147.7 kB / 0.6582 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006252/0.7805, allocations: 0.5952 MB / 0.6588 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.7818, allocations: 115.3 kB / 0.6589 GB, free: 1.391 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.782, allocations: 39.98 kB / 0.659 GB, free: 1.352 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.782, allocations: 4 kB / 0.659 GB, free: 1.348 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001794/0.7838, allocations: 0.6972 MB / 0.6596 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.891e-05/0.7838, allocations: 8 kB / 0.6597 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005067/0.7843, allocations: 101 kB / 0.6597 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.7848, allocations: 143.8 kB / 0.6599 GB, free: 412 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005313/0.7854, allocations: 0.5953 MB / 0.6605 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.7865, allocations: 103.4 kB / 0.6606 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.7867, allocations: 35.98 kB / 0.6606 GB, free: 15.64 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (79): * Single equations (assignments): 76 * 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.0008147/0.7875, allocations: 380.8 kB / 0.661 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003989/0.7879, allocations: 122.6 kB / 0.6611 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.7906, allocations: 1.069 MB / 0.6621 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/0.7907, allocations: 11.98 kB / 0.6621 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.7907, allocations: 0 / 0.6621 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001457/0.7922, allocations: 0.8108 MB / 0.6629 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.7972, allocations: 2.087 MB / 0.665 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/0.7972, allocations: 0 / 0.665 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.7976, allocations: 107.9 kB / 0.6651 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003474/0.798, allocations: 72.84 kB / 0.6651 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.077e-05/0.7981, allocations: 27.94 kB / 0.6652 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00052/0.7986, allocations: 0.5835 MB / 0.6657 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.7986, allocations: 4.031 kB / 0.6657 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.8012, allocations: 1.31 MB / 0.667 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009151/0.8022, allocations: 319.3 kB / 0.6673 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003637/0.8025, allocations: 20 kB / 0.6673 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.8036, allocations: 75.83 kB / 0.6674 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.8037, allocations: 56.38 kB / 0.6675 GB, free: 8.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.938e-05/0.8038, allocations: 39.98 kB / 0.6675 GB, free: 8.398 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001389/0.8052, allocations: 0.6647 MB / 0.6682 GB, free: 7.727 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8052, allocations: 0 / 0.6682 GB, free: 7.727 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003075/0.8083, allocations: 0.725 MB / 0.6689 GB, free: 7 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.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 (65): * Single equations (assignments): 50 * 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.001637/0.8099, allocations: 0.5523 MB / 0.6694 GB, free: 6.453 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.8123, allocations: 1.052 MB / 0.6704 GB, free: 5.379 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8123, allocations: 0.625 kB / 0.6704 GB, free: 5.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006878/0.813, allocations: 426.5 kB / 0.6708 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/0.8161, allocations: 0.5692 MB / 0.6714 GB, free: 4.391 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005184/0.8213, allocations: 2.755 MB / 0.6741 GB, free: 1.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.8225, allocations: 1.129 MB / 0.6752 GB, free: 440 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.8229, allocations: 115.3 kB / 0.6753 GB, free: 324 kB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8229, allocations: 0 / 0.6753 GB, free: 324 kB / 494.1 MB [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 .