Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|DataReader.y.5.|senTem_in.T|DataReader.y.3.|senTem_out.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|DataReader.y.5.|senTem_in.T|DataReader.y.3.|senTem_out.T",fileNamePrefix="Buildings_latest_Buildings.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.001059/0.001059, allocations: 102.2 kB / 15.71 MB, free: 460 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.001361/0.001361, allocations: 177.6 kB / 16.59 MB, free: 6.121 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.577/1.577, allocations: 223.3 MB / 240.6 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.92/2.92, allocations: 436.7 MB / 0.7113 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004038, allocations: 11.98 kB / 0.8717 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9679/0.9683, allocations: 153.7 MB / 1.022 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg): time 0.07165/1.04, allocations: 70.94 MB / 1.091 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03027/1.07, allocations: 18.75 MB / 1.109 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004342/1.075, allocations: 71.56 kB / 1.109 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.003966/1.079, allocations: 0.687 MB / 1.11 GB, free: 6.453 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01051/1.089, allocations: 2.269 MB / 1.112 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006853/1.096, allocations: 1.537 MB / 1.114 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01147/1.108, allocations: 5.782 MB / 1.119 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003987/1.112, allocations: 1.232 MB / 1.121 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005834/1.118, allocations: 1.68 MB / 1.122 GB, free: 9.906 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003709/1.121, allocations: 1.346 MB / 1.124 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0008835/1.122, allocations: 72 kB / 1.124 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005576/1.128, allocations: 1.396 MB / 1.125 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009106/1.129, allocations: 338.3 kB / 1.125 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001307/1.13, allocations: 416.7 kB / 1.126 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005227/1.135, allocations: 2.467 MB / 1.128 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/1.135, allocations: 4 kB / 1.128 GB, free: 3.863 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.833e-06/1.135, allocations: 0 / 1.128 GB, free: 3.863 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.663e-05/1.136, allocations: 0 / 1.128 GB, free: 3.863 MB / 0.8731 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.005119/1.141, allocations: 2.151 MB / 1.13 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/1.141, allocations: 11.98 kB / 1.13 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001875/1.143, allocations: 433.1 kB / 1.131 GB, free: 1.215 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004177/1.147, allocations: 1.724 MB / 1.132 GB, free: 15.44 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/1.147, allocations: 94.44 kB / 1.132 GB, free: 15.35 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/1.147, allocations: 124 kB / 1.133 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0029/1.15, allocations: 1.436 MB / 1.134 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/1.15, allocations: 7.906 kB / 1.134 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/1.15, allocations: 52 kB / 1.134 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/1.15, allocations: 35.94 kB / 1.134 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/1.153, allocations: 1.09 MB / 1.135 GB, free: 12.49 MB / 0.8887 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.01057/1.163, allocations: 7.868 MB / 1.143 GB, free: 4.012 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0032/1.167, allocations: 1.066 MB / 1.144 GB, free: 2.934 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000901/1.167, allocations: 447.8 kB / 1.144 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001881/1.169, allocations: 1.876 MB / 1.146 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/1.17, allocations: 0.5024 MB / 1.147 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=84): time 3.918e-06/1.17, allocations: 4 kB / 1.147 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of matching and sorting (n=84): time 0.003316/1.174, allocations: 1.293 MB / 1.148 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/1.174, allocations: 93.75 kB / 1.148 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002227/1.176, allocations: 1.363 MB / 1.149 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001096/1.176, allocations: 41.7 kB / 1.149 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007997/1.177, allocations: 0.8216 MB / 1.15 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003545/1.177, allocations: 299.8 kB / 1.15 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/1.177, allocations: 20 kB / 1.15 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001738/1.178, allocations: 341.9 kB / 1.151 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/1.178, allocations: 374.4 kB / 1.151 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/1.18, allocations: 0.6793 MB / 1.152 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009129/1.18, allocations: 458.7 kB / 1.152 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/1.18, allocations: 4 kB / 1.152 GB, free: 9.746 MB / 0.9044 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002679/1.183, allocations: 1.253 MB / 1.153 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003242/1.183, allocations: 362 kB / 1.154 GB, free: 8.008 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/1.184, allocations: 15.98 kB / 1.154 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/1.184, allocations: 16 kB / 1.154 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009159/1.184, allocations: 259.6 kB / 1.154 GB, free: 7.723 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.641e-05/1.185, allocations: 23.86 kB / 1.154 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/1.186, allocations: 186.8 kB / 1.154 GB, free: 7.516 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/1.186, allocations: 55.97 kB / 1.154 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/1.186, allocations: 4 kB / 1.154 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002119/1.188, allocations: 1.078 MB / 1.155 GB, free: 6.379 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/1.188, allocations: 16.06 kB / 1.155 GB, free: 6.363 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/1.188, allocations: 16 kB / 1.155 GB, free: 6.348 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008524/1.189, allocations: 255.6 kB / 1.156 GB, free: 6.098 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/1.189, allocations: 24.03 kB / 1.156 GB, free: 6.074 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/1.191, allocations: 175 kB / 1.156 GB, free: 5.902 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/1.191, allocations: 63.92 kB / 1.156 GB, free: 5.84 MB / 0.9044 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.0009869/1.192, allocations: 447.5 kB / 1.156 GB, free: 5.395 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/1.192, allocations: 165.9 kB / 1.156 GB, free: 5.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002983/1.195, allocations: 1.473 MB / 1.158 GB, free: 3.77 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/1.195, allocations: 23.92 kB / 1.158 GB, free: 3.746 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.195, allocations: 0 / 1.158 GB, free: 3.746 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001965/1.197, allocations: 1.109 MB / 1.159 GB, free: 2.605 MB / 0.9044 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.005441/1.202, allocations: 2.931 MB / 1.162 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/1.202, allocations: 7.984 kB / 1.162 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008864/1.203, allocations: 187.8 kB / 1.162 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.148e-05/1.203, allocations: 4 kB / 1.162 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-05/1.203, allocations: 31.98 kB / 1.162 GB, free: 15.37 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/1.203, allocations: 4 kB / 1.162 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/1.203, allocations: 7.984 kB / 1.162 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/1.207, allocations: 1.915 MB / 1.164 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009168/1.208, allocations: 406.6 kB / 1.164 GB, free: 13 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/1.208, allocations: 23.95 kB / 1.164 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/1.209, allocations: 138.2 kB / 1.165 GB, free: 12.84 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/1.209, allocations: 68.91 kB / 1.165 GB, free: 12.77 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.51e-05/1.209, allocations: 47.97 kB / 1.165 GB, free: 12.72 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001545/1.211, allocations: 0.9162 MB / 1.166 GB, free: 11.81 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.214e-06/1.211, allocations: 0 / 1.166 GB, free: 11.81 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002916/1.214, allocations: 0.9782 MB / 1.166 GB, free: 10.83 MB / 0.92 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.002172/1.216, allocations: 0.9572 MB / 1.167 GB, free: 10.06 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003506/1.22, allocations: 1.699 MB / 1.169 GB, free: 8.344 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.22, allocations: 0.8125 kB / 1.169 GB, free: 8.344 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001088/1.221, allocations: 0.6259 MB / 1.17 GB, free: 7.703 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/1.224, allocations: 0.7387 MB / 1.17 GB, free: 6.977 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007786/1.232, allocations: 4.031 MB / 1.174 GB, free: 2.895 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009676/1.233, allocations: 1.323 MB / 1.176 GB, free: 1.547 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006145/1.234, allocations: 167.4 kB / 1.176 GB, free: 1.383 MB / 0.92 GB Notification: Performance of SimCode: time 1.884e-06/1.234, allocations: 3.938 kB / 1.176 GB, free: 1.379 MB / 0.92 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 .