Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe.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.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 94.5 kB / 16.33 MB, free: 5.949 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.001236/0.001236, allocations: 184.1 kB / 17.22 MB, free: 5.887 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.447/1.447, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7586/0.7586, allocations: 114.3 MB / 406.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005012/0.0005012, allocations: 8 kB / 494.4 MB, free: 1.414 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.537/0.5375, allocations: 77.25 MB / 0.5583 GB, free: 36.83 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.1119/0.6495, allocations: 106.4 MB / 0.6622 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03963/0.6891, allocations: 24.9 MB / 0.6865 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006311/0.6955, allocations: 99.38 kB / 0.6866 GB, free: 1.367 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003927/0.6995, allocations: 0.7917 MB / 0.6873 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.71, allocations: 2.735 MB / 0.69 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006791/0.7168, allocations: 1.661 MB / 0.6916 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.012/0.7288, allocations: 7.021 MB / 0.6985 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003833/0.7327, allocations: 1.425 MB / 0.6999 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006465/0.7392, allocations: 2.115 MB / 0.7019 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00411/0.7433, allocations: 1.614 MB / 0.7035 GB, free: 15.94 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0008076/0.7442, allocations: 92 kB / 0.7036 GB, free: 15.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006158/0.7503, allocations: 1.571 MB / 0.7051 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.7515, allocations: 386.2 kB / 0.7055 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001615/0.7531, allocations: 488.5 kB / 0.706 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005535/0.7586, allocations: 2.868 MB / 0.7088 GB, free: 10.54 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.7587, allocations: 0 / 0.7088 GB, free: 10.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.375e-06/0.7587, allocations: 0 / 0.7088 GB, free: 10.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000123/0.7588, allocations: 0 / 0.7088 GB, free: 10.54 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.006338/0.7651, allocations: 2.445 MB / 0.7112 GB, free: 8.031 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.7652, allocations: 8.031 kB / 0.7112 GB, free: 8.023 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.7663, allocations: 265 kB / 0.7114 GB, free: 7.762 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005472/0.7718, allocations: 2.026 MB / 0.7134 GB, free: 5.684 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.645e-05/0.7719, allocations: 102.7 kB / 0.7135 GB, free: 5.582 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.7721, allocations: 136 kB / 0.7136 GB, free: 5.449 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.775, allocations: 1.454 MB / 0.7151 GB, free: 3.918 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.788e-05/0.775, allocations: 8 kB / 0.7151 GB, free: 3.91 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.7752, allocations: 56 kB / 0.7151 GB, free: 3.855 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.677e-05/0.7752, allocations: 47.88 kB / 0.7152 GB, free: 3.809 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001927/0.7771, allocations: 1.025 MB / 0.7162 GB, free: 2.777 MB / 0.545 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.0103/0.7875, allocations: 8.124 MB / 0.7241 GB, free: 9.953 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.789, allocations: 0.8374 MB / 0.7249 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006233/0.7897, allocations: 381 kB / 0.7253 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002478/0.7922, allocations: 2.807 MB / 0.728 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.7922, allocations: 39.22 kB / 0.7281 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=85): time 3.286e-06/0.7922, allocations: 0 / 0.7281 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85): time 0.002437/0.7947, allocations: 1.144 MB / 0.7292 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.7947, allocations: 64 kB / 0.7292 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00246/0.7972, allocations: 1.59 MB / 0.7308 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.192e-05/0.7973, allocations: 41.7 kB / 0.7308 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008218/0.7981, allocations: 0.9354 MB / 0.7317 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.7985, allocations: 299.6 kB / 0.732 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.7985, allocations: 20 kB / 0.732 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.7987, allocations: 349.9 kB / 0.7324 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005679/0.7993, allocations: 318.4 kB / 0.7327 GB, free: 416 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008735/0.8002, allocations: 0.7033 MB / 0.7334 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007558/0.8009, allocations: 446.7 kB / 0.7338 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.8009, allocations: 4 kB / 0.7338 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00232/0.8033, allocations: 1.249 MB / 0.735 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003081/0.8036, allocations: 437.3 kB / 0.7354 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.795e-05/0.8036, allocations: 19.98 kB / 0.7355 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.8037, allocations: 20 kB / 0.7355 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.8045, allocations: 263.6 kB / 0.7357 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.65e-05/0.8045, allocations: 23.92 kB / 0.7357 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.8058, allocations: 190.6 kB / 0.7359 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.806, allocations: 67.91 kB / 0.736 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.806, allocations: 4 kB / 0.736 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001749/0.8077, allocations: 1.055 MB / 0.737 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/0.8078, allocations: 20.03 kB / 0.737 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.8078, allocations: 16 kB / 0.7371 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000799/0.8086, allocations: 263.5 kB / 0.7373 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/0.8087, allocations: 27.92 kB / 0.7373 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.8098, allocations: 164.8 kB / 0.7375 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.8099, allocations: 63.97 kB / 0.7376 GB, free: 11.06 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008948/0.8108, allocations: 480.6 kB / 0.738 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.811, allocations: 193.7 kB / 0.7382 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.8141, allocations: 1.739 MB / 0.7399 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.179e-05/0.8141, allocations: 27.98 kB / 0.7399 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8141, allocations: 0 / 0.7399 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00182/0.816, allocations: 1.146 MB / 0.741 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006731/0.8227, allocations: 3.482 MB / 0.7444 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.722e-05/0.8228, allocations: 12.81 kB / 0.7445 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.8235, allocations: 207.7 kB / 0.7447 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.225e-05/0.8236, allocations: 12 kB / 0.7447 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.26e-05/0.8237, allocations: 39.98 kB / 0.7447 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-05/0.8237, allocations: 11.94 kB / 0.7447 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.8237, allocations: 11.95 kB / 0.7447 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003646/0.8273, allocations: 2.23 MB / 0.7469 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/0.8284, allocations: 481.9 kB / 0.7474 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002388/0.8286, allocations: 28 kB / 0.7474 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009297/0.8296, allocations: 98.55 kB / 0.7475 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.8298, allocations: 120.7 kB / 0.7476 GB, free: 476 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.8299, allocations: 55.97 kB / 0.7477 GB, free: 420 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.3952/1.225, allocations: 1.059 MB / 0.7487 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.9e-07/1.225, allocations: 0 / 0.7487 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00623/1.231, allocations: 1.121 MB / 0.7498 GB, free: 165.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * 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 (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002257/1.234, allocations: 0.749 MB / 0.7505 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003858/1.238, allocations: 1.801 MB / 0.7523 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.238, allocations: 3.594 kB / 0.7523 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001344/1.239, allocations: 0.8206 MB / 0.7531 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004882/1.244, allocations: 0.9293 MB / 0.754 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007075/1.251, allocations: 4.447 MB / 0.7583 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/1.252, allocations: 1.433 MB / 0.7597 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007762/1.253, allocations: 194.2 kB / 0.7599 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of SimCode: time 9.41e-07/1.253, allocations: 0 / 0.7599 GB, free: 161.5 MB / 0.5762 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 0 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 2 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 3 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 5 .