Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.393/1.393, allocations: 252 MB / 267.6 MB, free: 10.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 171.3 kB / 327.3 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.4 MB / 0.5783 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008584/0.0008584, allocations: 88.91 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003515, allocations: 9.562 kB / 0.797 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.266, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.03548/0.3016, allocations: 41.2 MB / 0.9411 GB, free: 22.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01495/0.3166, allocations: 12.14 MB / 0.9529 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002139/0.3188, allocations: 39.75 kB / 0.9529 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3207, allocations: 413.3 kB / 0.9533 GB, free: 9.961 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.005189/0.3259, allocations: 1.539 MB / 0.9548 GB, free: 8.414 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003231/0.3292, allocations: 0.9274 MB / 0.9558 GB, free: 7.492 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.004379/0.3336, allocations: 3.646 MB / 0.9593 GB, free: 3.836 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.3353, allocations: 0.7423 MB / 0.96 GB, free: 3.082 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003057/0.3384, allocations: 1.069 MB / 0.9611 GB, free: 2.008 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002159/0.3406, allocations: 0.8478 MB / 0.9619 GB, free: 1.156 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0002133/0.3408, allocations: 48 kB / 0.962 GB, free: 1.109 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.3442, allocations: 1.127 MB / 0.9631 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.3445, allocations: 210.9 kB / 0.9633 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0005269/0.345, allocations: 269.1 kB / 0.9635 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.3474, allocations: 1.73 MB / 0.9652 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3474, allocations: 7.938 kB / 0.9652 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3474, allocations: 0 / 0.9652 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.738e-05/0.3474, allocations: 0 / 0.9652 GB, free: 13.76 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003071/0.3505, allocations: 1.46 MB / 0.9666 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3506, allocations: 12.03 kB / 0.9666 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003321/0.3509, allocations: 134.5 kB / 0.9668 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/0.3534, allocations: 1.156 MB / 0.9679 GB, free: 10.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.3534, allocations: 54 kB / 0.968 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.3536, allocations: 75.91 kB / 0.968 GB, free: 10.78 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3549, allocations: 0.752 MB / 0.9688 GB, free: 10 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.355, allocations: 0 / 0.9688 GB, free: 10 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.355, allocations: 39.98 kB / 0.9688 GB, free: 9.961 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.019e-05/0.3551, allocations: 16 kB / 0.9688 GB, free: 9.945 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3562, allocations: 0.5634 MB / 0.9694 GB, free: 9.383 MB / 0.6198 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.005349/0.3615, allocations: 4.002 MB / 0.9733 GB, free: 5.051 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009929/0.3625, allocations: 468.7 kB / 0.9737 GB, free: 4.586 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.363, allocations: 237 kB / 0.9739 GB, free: 4.352 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/0.3644, allocations: 1.519 MB / 0.9754 GB, free: 2.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.3644, allocations: 42.52 kB / 0.9755 GB, free: 2.449 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.036e-06/0.3644, allocations: 0 / 0.9755 GB, free: 2.449 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001524/0.366, allocations: 0.6748 MB / 0.9761 GB, free: 1.77 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.366, allocations: 55.41 kB / 0.9762 GB, free: 1.703 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.3675, allocations: 1.002 MB / 0.9772 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.33e-05/0.3676, allocations: 33.7 kB / 0.9772 GB, free: 0.6445 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/0.368, allocations: 484.6 kB / 0.9777 GB, free: 172 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3682, allocations: 169.6 kB / 0.9778 GB, free: 0 / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.014e-05/0.3682, allocations: 8.078 kB / 0.9778 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3684, allocations: 330 kB / 0.9781 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.3687, allocations: 181 kB / 0.9783 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.3692, allocations: 324.5 kB / 0.9786 GB, free: 15.12 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.3696, allocations: 236.7 kB / 0.9788 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3697, allocations: 4 kB / 0.9789 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001185/0.3708, allocations: 0.651 MB / 0.9795 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.371, allocations: 199.2 kB / 0.9797 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.371, allocations: 4 kB / 0.9797 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.371, allocations: 8 kB / 0.9797 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.3715, allocations: 123.8 kB / 0.9798 GB, free: 13.85 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.3716, allocations: 8 kB / 0.9798 GB, free: 13.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008063/0.3724, allocations: 95.23 kB / 0.9799 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.3724, allocations: 31.98 kB / 0.9799 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.103e-06/0.3725, allocations: 2.656 kB / 0.9799 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009668/0.3734, allocations: 0.5296 MB / 0.9805 GB, free: 13.19 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.3735, allocations: 8.062 kB / 0.9805 GB, free: 13.18 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.246e-06/0.3735, allocations: 8 kB / 0.9805 GB, free: 13.17 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.3739, allocations: 123.8 kB / 0.9806 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3739, allocations: 11.94 kB / 0.9806 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006714/0.3746, allocations: 103.1 kB / 0.9807 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/0.3747, allocations: 27.98 kB / 0.9807 GB, free: 12.91 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (66): * Single equations (assignments): 64 * 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.0005343/0.3752, allocations: 341 kB / 0.9811 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.3754, allocations: 106.7 kB / 0.9812 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.3771, allocations: 0.9796 MB / 0.9821 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.3771, allocations: 11.98 kB / 0.9821 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3772, allocations: 0 / 0.9821 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001063/0.3782, allocations: 0.8453 MB / 0.9829 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.3814, allocations: 2.016 MB / 0.9849 GB, free: 8.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.3814, allocations: 4 kB / 0.9849 GB, free: 8.434 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004039/0.3818, allocations: 112 kB / 0.985 GB, free: 8.324 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/0.3818, allocations: 4 kB / 0.985 GB, free: 8.32 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.3819, allocations: 19.98 kB / 0.985 GB, free: 8.301 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.3819, allocations: 7.938 kB / 0.9851 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3819, allocations: 4 kB / 0.9851 GB, free: 8.289 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.3837, allocations: 1.21 MB / 0.9862 GB, free: 7.047 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004831/0.3842, allocations: 307.4 kB / 0.9865 GB, free: 6.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.3843, allocations: 19.94 kB / 0.9866 GB, free: 6.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000594/0.3849, allocations: 49.12 kB / 0.9866 GB, free: 6.66 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.385, allocations: 52.42 kB / 0.9867 GB, free: 6.609 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/0.3851, allocations: 27.98 kB / 0.9867 GB, free: 6.582 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001047/0.3862, allocations: 0.7109 MB / 0.9874 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3862, allocations: 4 kB / 0.9874 GB, free: 5.859 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001596/0.3878, allocations: 0.5968 MB / 0.988 GB, free: 5.262 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (pip.cor.del.x,pip.cor.timDel.x,pip.vol.dynBal.U,senTemOut.T,senTemIn.T) * 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 (62): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.0009837/0.3888, allocations: 0.5004 MB / 0.9884 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001676/0.3904, allocations: 0.9389 MB / 0.9894 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3905, allocations: 0 / 0.9894 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0005798/0.3911, allocations: 402.4 kB / 0.9897 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.3937, allocations: 0.5808 MB / 0.9903 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.3973, allocations: 2.507 MB / 0.9928 GB, free: 260 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.398, allocations: 1.054 MB / 0.9938 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.3983, allocations: 107.4 kB / 0.9939 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of SimCode: time 1.253e-06/0.3983, allocations: 0 / 0.9939 GB, free: 15.07 MB / 0.6511 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 .