Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/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.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemIn.T|senTemInNoMix.T|senTemOutNoMix.T|senTemOut.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemIn.T|senTemInNoMix.T|senTemOutNoMix.T|senTemOut.T",fileNamePrefix="Buildings_latest_Buildings.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.001086/0.001086, allocations: 100.4 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.00156/0.00156, allocations: 174 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.472/1.472, allocations: 223.2 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.945/2.945, allocations: 436.7 MB / 0.7113 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003897, allocations: 15.92 kB / 0.8717 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9356/0.936, allocations: 153.6 MB / 1.022 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.109/1.045, allocations: 106.4 MB / 1.126 GB, free: 6.469 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.04007/1.085, allocations: 24.91 MB / 1.15 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006509/1.092, allocations: 99.38 kB / 1.15 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004144/1.096, allocations: 0.78 MB / 1.151 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01108/1.107, allocations: 2.739 MB / 1.153 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.006957/1.114, allocations: 1.674 MB / 1.155 GB, free: 8.207 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01131/1.125, allocations: 7.008 MB / 1.162 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003414/1.129, allocations: 1.418 MB / 1.163 GB, free: 15.74 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006145/1.135, allocations: 2.127 MB / 1.165 GB, free: 13.61 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003836/1.139, allocations: 1.614 MB / 1.167 GB, free: 11.98 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0006134/1.139, allocations: 92 kB / 1.167 GB, free: 11.89 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005372/1.145, allocations: 1.567 MB / 1.169 GB, free: 10.32 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000676/1.146, allocations: 398.1 kB / 1.169 GB, free: 9.934 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001233/1.147, allocations: 480.6 kB / 1.169 GB, free: 9.457 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004952/1.152, allocations: 2.868 MB / 1.172 GB, free: 6.582 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/1.152, allocations: 0 / 1.172 GB, free: 6.582 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.635e-06/1.152, allocations: 0 / 1.172 GB, free: 6.582 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.447e-05/1.152, allocations: 0 / 1.172 GB, free: 6.582 MB / 0.92 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.005442/1.157, allocations: 2.451 MB / 1.175 GB, free: 4.074 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/1.157, allocations: 11.98 kB / 1.175 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007468/1.158, allocations: 264.9 kB / 1.175 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/1.163, allocations: 2.026 MB / 1.177 GB, free: 1.723 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.972e-05/1.163, allocations: 106.7 kB / 1.177 GB, free: 1.617 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/1.163, allocations: 139.8 kB / 1.177 GB, free: 1.48 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002624/1.166, allocations: 1.451 MB / 1.179 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/1.166, allocations: 4 kB / 1.179 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/1.166, allocations: 52 kB / 1.179 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.164e-05/1.166, allocations: 47.95 kB / 1.179 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/1.168, allocations: 1.029 MB / 1.18 GB, free: 14.82 MB / 0.9356 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.01019/1.178, allocations: 8.12 MB / 1.188 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/1.18, allocations: 0.8336 MB / 1.188 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005899/1.18, allocations: 387.7 kB / 1.189 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002312/1.182, allocations: 2.803 MB / 1.191 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/1.183, allocations: 51.16 kB / 1.192 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=85): time 3.977e-06/1.183, allocations: 0 / 1.192 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of matching and sorting (n=85): time 0.002564/1.185, allocations: 1.132 MB / 1.193 GB, free: 132 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/1.185, allocations: 68.05 kB / 1.193 GB, free: 52 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/1.188, allocations: 1.586 MB / 1.194 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/1.188, allocations: 41.7 kB / 1.194 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008074/1.189, allocations: 0.9237 MB / 1.195 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/1.189, allocations: 311.6 kB / 1.195 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/1.189, allocations: 20 kB / 1.195 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001633/1.189, allocations: 345.9 kB / 1.196 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005972/1.19, allocations: 322.4 kB / 1.196 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008775/1.191, allocations: 0.7071 MB / 1.197 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007726/1.191, allocations: 450.7 kB / 1.197 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/1.191, allocations: 4 kB / 1.197 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002512/1.194, allocations: 1.242 MB / 1.198 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003429/1.194, allocations: 436.8 kB / 1.199 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.59e-05/1.194, allocations: 16 kB / 1.199 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.754e-05/1.194, allocations: 23.98 kB / 1.199 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008483/1.195, allocations: 279.5 kB / 1.199 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/1.195, allocations: 23.94 kB / 1.199 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/1.197, allocations: 182.6 kB / 1.199 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/1.197, allocations: 63.98 kB / 1.199 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/1.197, allocations: 4 kB / 1.199 GB, free: 8.711 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001769/1.199, allocations: 1.058 MB / 1.2 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/1.199, allocations: 19.98 kB / 1.2 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/1.199, allocations: 20 kB / 1.201 GB, free: 7.613 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007871/1.2, allocations: 255.6 kB / 1.201 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.431e-05/1.2, allocations: 24.28 kB / 1.201 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/1.201, allocations: 167 kB / 1.201 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/1.202, allocations: 71.89 kB / 1.201 GB, free: 7.105 MB / 0.9512 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.001177/1.203, allocations: 476.7 kB / 1.201 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005028/1.203, allocations: 193.6 kB / 1.202 GB, free: 6.438 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/1.206, allocations: 1.756 MB / 1.203 GB, free: 4.672 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.101e-05/1.207, allocations: 23.92 kB / 1.203 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.207, allocations: 0 / 1.203 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001756/1.208, allocations: 1.138 MB / 1.205 GB, free: 3.477 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006462/1.215, allocations: 3.479 MB / 1.208 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/1.215, allocations: 15.98 kB / 1.208 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007177/1.216, allocations: 195.7 kB / 1.208 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.717e-05/1.216, allocations: 12 kB / 1.208 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.812e-05/1.216, allocations: 47.97 kB / 1.208 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.535e-05/1.216, allocations: 11.94 kB / 1.208 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/1.216, allocations: 15.89 kB / 1.208 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/1.219, allocations: 2.226 MB / 1.21 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/1.22, allocations: 477.8 kB / 1.211 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/1.221, allocations: 35.98 kB / 1.211 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009441/1.222, allocations: 99.83 kB / 1.211 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/1.222, allocations: 116.7 kB / 1.211 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.222, allocations: 59.97 kB / 1.211 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001708/1.224, allocations: 1.064 MB / 1.212 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.41e-07/1.224, allocations: 0 / 1.212 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003255/1.227, allocations: 1.111 MB / 1.213 GB, free: 10.22 MB / 0.9669 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.00159/1.228, allocations: 0.756 MB / 1.214 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003177/1.232, allocations: 1.801 MB / 1.216 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.232, allocations: 4 kB / 1.216 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/1.233, allocations: 0.8175 MB / 1.217 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004735/1.238, allocations: 0.9263 MB / 1.217 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006486/1.244, allocations: 4.435 MB / 1.222 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/1.245, allocations: 1.428 MB / 1.223 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006144/1.246, allocations: 199.3 kB / 1.223 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of SimCode: time 9.32e-07/1.246, allocations: 0 / 1.223 GB, free: 15.64 MB / 0.9825 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 .