Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg.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.PlugFlowULg,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") translateModel(IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008203/0.0008203, allocations: 97.16 kB / 16.33 MB, free: 5.684 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.0008883/0.0008884, allocations: 192.4 kB / 17.23 MB, free: 5.598 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.474/1.474, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7174/0.7174, allocations: 114.3 MB / 406.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003712, allocations: 12 kB / 494.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1992, allocations: 77.26 MB / 0.5583 GB, free: 10.97 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg): time 0.4527/0.6519, allocations: 70.87 MB / 0.6275 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02975/0.6818, allocations: 18.75 MB / 0.6458 GB, free: 11.96 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004651/0.6865, allocations: 70.81 kB / 0.6459 GB, free: 11.93 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003479/0.69, allocations: 0.6898 MB / 0.6466 GB, free: 11.35 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009684/0.6997, allocations: 2.271 MB / 0.6488 GB, free: 9.547 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006022/0.7057, allocations: 1.547 MB / 0.6503 GB, free: 8.445 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00918/0.7149, allocations: 5.782 MB / 0.656 GB, free: 5.016 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002513/0.7175, allocations: 1.234 MB / 0.6572 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004418/0.7219, allocations: 1.683 MB / 0.6588 GB, free: 2.816 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.7245, allocations: 1.342 MB / 0.6601 GB, free: 1.469 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002205/0.7248, allocations: 76 kB / 0.6602 GB, free: 1.395 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004454/0.7292, allocations: 1.384 MB / 0.6615 GB, free: 8 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004642/0.7297, allocations: 342.3 kB / 0.6619 GB, free: 15.67 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008628/0.7306, allocations: 424.6 kB / 0.6623 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004112/0.7347, allocations: 2.474 MB / 0.6647 GB, free: 12.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.7347, allocations: 0 / 0.6647 GB, free: 12.77 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.7347, allocations: 0 / 0.6647 GB, free: 12.77 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.816e-05/0.7348, allocations: 0 / 0.6647 GB, free: 12.77 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.00423/0.739, allocations: 2.149 MB / 0.6668 GB, free: 10.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.739, allocations: 12.03 kB / 0.6668 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.7408, allocations: 437 kB / 0.6672 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003419/0.7442, allocations: 1.713 MB / 0.6689 GB, free: 8.355 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.453e-05/0.7443, allocations: 98.39 kB / 0.669 GB, free: 8.258 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.7445, allocations: 131.8 kB / 0.6691 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.7472, allocations: 1.433 MB / 0.6705 GB, free: 6.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/0.7473, allocations: 3.938 kB / 0.6705 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.7474, allocations: 52 kB / 0.6706 GB, free: 6.535 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.714e-05/0.7475, allocations: 36 kB / 0.6706 GB, free: 6.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002101/0.7496, allocations: 1.086 MB / 0.6717 GB, free: 5.406 MB / 494.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.009694/0.7593, allocations: 7.871 MB / 0.6793 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00319/0.7625, allocations: 1.071 MB / 0.6804 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008181/0.7634, allocations: 439.9 kB / 0.6808 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001987/0.7654, allocations: 1.876 MB / 0.6826 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.7665, allocations: 0.5062 MB / 0.6831 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=84): time 4.609e-06/0.7665, allocations: 0 / 0.6831 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of matching and sorting (n=84): time 0.00296/0.7695, allocations: 1.297 MB / 0.6844 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.7695, allocations: 89.7 kB / 0.6845 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.7716, allocations: 1.371 MB / 0.6858 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.276e-05/0.7717, allocations: 41.7 kB / 0.6859 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007346/0.7724, allocations: 0.8177 MB / 0.6867 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.7727, allocations: 295.8 kB / 0.6869 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.7728, allocations: 20 kB / 0.687 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.773, allocations: 353.9 kB / 0.6873 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007616/0.7737, allocations: 370.4 kB / 0.6877 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009792/0.7747, allocations: 0.6715 MB / 0.6883 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008768/0.7756, allocations: 462.8 kB / 0.6888 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7756, allocations: 0 / 0.6888 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002413/0.778, allocations: 1.257 MB / 0.69 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002709/0.7783, allocations: 368.4 kB / 0.6903 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.7784, allocations: 8 kB / 0.6903 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.7784, allocations: 16 kB / 0.6904 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000912/0.7793, allocations: 259.6 kB / 0.6906 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.663e-05/0.7793, allocations: 23.92 kB / 0.6906 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.7806, allocations: 190.9 kB / 0.6908 GB, free: 444 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.7807, allocations: 51.98 kB / 0.6909 GB, free: 392 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/0.7808, allocations: 4 kB / 0.6909 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00204/0.7828, allocations: 1.085 MB / 0.6919 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.7828, allocations: 8 kB / 0.6919 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.7829, allocations: 16 kB / 0.6919 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.7837, allocations: 255.9 kB / 0.6922 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.7837, allocations: 23.92 kB / 0.6922 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.7849, allocations: 186.9 kB / 0.6924 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.785, allocations: 51.98 kB / 0.6924 GB, free: 14.76 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.DataReader.nextTimeEvent,DataReader.nextTimeEvent,$PRE.DataReader.nextTimeEventScaled,DataReader.nextTimeEventScaled,eneLosInt.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 126 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000885/0.7859, allocations: 443.6 kB / 0.6929 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.7862, allocations: 165.9 kB / 0.693 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.7891, allocations: 1.475 MB / 0.6945 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.679e-05/0.7891, allocations: 11.98 kB / 0.6945 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.7891, allocations: 4 kB / 0.6945 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001972/0.7911, allocations: 1.113 MB / 0.6956 GB, free: 11.53 MB / 0.5137 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.005092/0.7962, allocations: 2.935 MB / 0.6984 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.7963, allocations: 7.891 kB / 0.6984 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007878/0.7971, allocations: 187.9 kB / 0.6986 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.7971, allocations: 4 kB / 0.6986 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.916e-05/0.7972, allocations: 31.97 kB / 0.6987 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.7972, allocations: 7.938 kB / 0.6987 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7972, allocations: 0 / 0.6987 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.8008, allocations: 1.919 MB / 0.7005 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.8019, allocations: 414.5 kB / 0.7009 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.8021, allocations: 20 kB / 0.7009 GB, free: 5.883 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.8031, allocations: 131.8 kB / 0.7011 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.8033, allocations: 80.83 kB / 0.7012 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.8034, allocations: 39.97 kB / 0.7012 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001513/0.8049, allocations: 0.9162 MB / 0.7021 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8049, allocations: 0 / 0.7021 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002887/0.8078, allocations: 0.9744 MB / 0.703 GB, free: 3.75 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (pipe.del.x,pipe.timDel.x,pipe.vol_b.dynBal.U,pipe.vol_a.dynBal.U,eneLosInt.y) * Number of discrete variables: 3 ($whenCondition1,DataReader.nextTimeEvent,DataReader.nextTimeEventScaled) * Number of discrete states: 2 (DataReader.nextTimeEvent,DataReader.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 15 * When equations: 2 * 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.002285/0.8101, allocations: 0.9481 MB / 0.704 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003593/0.8137, allocations: 1.7 MB / 0.7056 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.8138, allocations: 4.25 kB / 0.7056 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.8149, allocations: 0.6221 MB / 0.7062 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00394/0.8189, allocations: 0.7407 MB / 0.707 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008041/0.8269, allocations: 4.027 MB / 0.7109 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009627/0.8279, allocations: 1.319 MB / 0.7122 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006732/0.8286, allocations: 167.4 kB / 0.7123 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of SimCode: time 2.435e-06/0.8286, allocations: 0 / 0.7123 GB, free: 10.31 MB / 0.5294 GB [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 4 .