Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") translateModel(BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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.001016/0.001016, allocations: 100.2 kB / 15.71 MB, free: 452 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.001336/0.001336, allocations: 179.5 kB / 16.58 MB, free: 6.422 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.511/1.511, allocations: 223.3 MB / 240.6 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.086/1.086, allocations: 143.4 MB / 435.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004577/0.0004577, allocations: 15.92 kB / 0.5166 GB, free: 11.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2304, allocations: 83.42 MB / 0.5981 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg): time 0.4736/0.7041, allocations: 70.89 MB / 0.6673 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03447/0.7386, allocations: 18.77 MB / 0.6856 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004627/0.7433, allocations: 70.19 kB / 0.6857 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004031/0.7474, allocations: 0.695 MB / 0.6864 GB, free: 480 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.7583, allocations: 2.269 MB / 0.6886 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.008275/0.7666, allocations: 1.535 MB / 0.6901 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0129/0.7795, allocations: 5.785 MB / 0.6957 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003578/0.7831, allocations: 1.236 MB / 0.6969 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006187/0.7894, allocations: 1.675 MB / 0.6986 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004561/0.794, allocations: 1.339 MB / 0.6999 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0007716/0.7948, allocations: 72.94 kB / 0.7 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006664/0.8015, allocations: 1.391 MB / 0.7013 GB, free: 9.848 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.8027, allocations: 340 kB / 0.7016 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001581/0.8043, allocations: 422.6 kB / 0.702 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006704/0.811, allocations: 2.613 MB / 0.7046 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.8111, allocations: 0 / 0.7046 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.845e-06/0.8111, allocations: 0 / 0.7046 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.939e-05/0.8112, allocations: 0 / 0.7046 GB, free: 8.508 MB / 0.5294 GB 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.007076/0.8183, allocations: 2.151 MB / 0.7067 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.8183, allocations: 8.625 kB / 0.7067 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002527/0.8209, allocations: 436.4 kB / 0.7071 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005045/0.8259, allocations: 1.724 MB / 0.7088 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.8261, allocations: 97.31 kB / 0.7089 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.8263, allocations: 122.6 kB / 0.709 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00316/0.8295, allocations: 1.435 MB / 0.7104 GB, free: 4.348 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.8296, allocations: 10.25 kB / 0.7104 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.8297, allocations: 52.66 kB / 0.7105 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.527e-05/0.8298, allocations: 36.67 kB / 0.7105 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.8325, allocations: 1.087 MB / 0.7116 GB, free: 3.762 MB / 0.5294 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.0124/0.8449, allocations: 7.883 MB / 0.7193 GB, free: 12.53 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00348/0.8485, allocations: 1.081 MB / 0.7203 GB, free: 12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008636/0.8493, allocations: 445.4 kB / 0.7207 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001922/0.8513, allocations: 1.866 MB / 0.7226 GB, free: 9.641 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/0.8524, allocations: 0.4988 MB / 0.7231 GB, free: 9.34 MB / 0.545 GB Notification: Performance of pre-optimization done (n=84): time 4.148e-06/0.8524, allocations: 0 / 0.7231 GB, free: 9.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=84): time 0.003363/0.8558, allocations: 1.3 MB / 0.7243 GB, free: 8.711 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.956e-05/0.8559, allocations: 85.77 kB / 0.7244 GB, free: 8.617 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002533/0.8584, allocations: 1.368 MB / 0.7257 GB, free: 7.867 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.8585, allocations: 44.58 kB / 0.7258 GB, free: 7.824 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009249/0.8595, allocations: 0.8246 MB / 0.7266 GB, free: 7.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.8599, allocations: 298.3 kB / 0.7269 GB, free: 6.832 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.86, allocations: 20.12 kB / 0.7269 GB, free: 6.816 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002293/0.8602, allocations: 347.5 kB / 0.7272 GB, free: 6.48 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008432/0.8611, allocations: 371.7 kB / 0.7276 GB, free: 6.215 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.8621, allocations: 0.6764 MB / 0.7282 GB, free: 5.406 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009049/0.863, allocations: 462.8 kB / 0.7287 GB, free: 4.953 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.8631, allocations: 4 kB / 0.7287 GB, free: 4.949 MB / 0.545 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002816/0.8659, allocations: 1.253 MB / 0.7299 GB, free: 3.688 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000311/0.8662, allocations: 367.1 kB / 0.7303 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.748e-05/0.8662, allocations: 15.92 kB / 0.7303 GB, free: 3.188 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.421e-05/0.8663, allocations: 16 kB / 0.7303 GB, free: 3.172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009252/0.8672, allocations: 251.6 kB / 0.7305 GB, free: 2.926 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.441e-05/0.8673, allocations: 19.98 kB / 0.7306 GB, free: 2.906 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.8691, allocations: 194.7 kB / 0.7307 GB, free: 2.715 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.8692, allocations: 55.97 kB / 0.7308 GB, free: 2.66 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.8692, allocations: 4 kB / 0.7308 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002145/0.8714, allocations: 1.078 MB / 0.7318 GB, free: 1.578 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.8714, allocations: 16.16 kB / 0.7319 GB, free: 1.562 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.8714, allocations: 15.98 kB / 0.7319 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008764/0.8723, allocations: 255.6 kB / 0.7321 GB, free: 1.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.8724, allocations: 19.92 kB / 0.7321 GB, free: 1.277 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.874, allocations: 179 kB / 0.7323 GB, free: 1.102 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.8741, allocations: 55.97 kB / 0.7324 GB, free: 1.047 MB / 0.545 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.0009986/0.8751, allocations: 449.4 kB / 0.7328 GB, free: 0.5977 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000288/0.8754, allocations: 166 kB / 0.733 GB, free: 444 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002934/0.8783, allocations: 1.481 MB / 0.7344 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.259e-05/0.8784, allocations: 19.98 kB / 0.7344 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.8784, allocations: 0 / 0.7344 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001919/0.8803, allocations: 1.109 MB / 0.7355 GB, free: 13.81 MB / 0.5606 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.005493/0.8858, allocations: 2.935 MB / 0.7384 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.8859, allocations: 0.5625 kB / 0.7384 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.8867, allocations: 191.8 kB / 0.7385 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/0.8867, allocations: 12.05 kB / 0.7386 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.729e-05/0.8868, allocations: 27.98 kB / 0.7386 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.8868, allocations: 4.688 kB / 0.7386 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8868, allocations: 0 / 0.7386 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/0.8903, allocations: 1.923 MB / 0.7405 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.8914, allocations: 414.5 kB / 0.7409 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/0.8917, allocations: 27.95 kB / 0.7409 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.8927, allocations: 141.8 kB / 0.741 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.8929, allocations: 72.89 kB / 0.7411 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.893, allocations: 43.97 kB / 0.7411 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001685/0.8947, allocations: 0.9162 MB / 0.742 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8947, allocations: 0 / 0.742 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00451/0.8992, allocations: 0.9783 MB / 0.743 GB, free: 6.023 MB / 0.5606 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.003264/0.9025, allocations: 0.9574 MB / 0.7439 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003777/0.9063, allocations: 1.703 MB / 0.7456 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.9063, allocations: 4 kB / 0.7456 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.9074, allocations: 0.619 MB / 0.7462 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003809/0.9112, allocations: 0.7419 MB / 0.7469 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007723/0.919, allocations: 4.033 MB / 0.7509 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009311/0.9199, allocations: 1.315 MB / 0.7521 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005941/0.9206, allocations: 171.3 kB / 0.7523 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of SimCode: time 9.91e-07/0.9206, allocations: 0 / 0.7523 GB, free: 12.58 MB / 0.5762 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 .