Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal.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.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.397/1.397, allocations: 252 MB / 267.6 MB, free: 10.92 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.001022/0.001022, allocations: 178.5 kB / 327.3 MB, free: 2.199 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.844/1.844, 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.0007433/0.0007433, allocations: 93.95 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003249, allocations: 10.81 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2164, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.02862/0.245, allocations: 41.17 MB / 0.941 GB, free: 22.61 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01352/0.2586, allocations: 12.14 MB / 0.9529 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.2605, allocations: 31.81 kB / 0.9529 GB, free: 10.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.2621, allocations: 413.3 kB / 0.9533 GB, free: 9.996 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.004739/0.2668, allocations: 1.531 MB / 0.9548 GB, free: 8.457 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002936/0.2698, allocations: 0.9242 MB / 0.9557 GB, free: 7.539 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00418/0.274, allocations: 3.615 MB / 0.9592 GB, free: 3.914 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.2753, allocations: 0.7345 MB / 0.96 GB, free: 3.168 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002225/0.2775, allocations: 1.062 MB / 0.961 GB, free: 2.102 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.2788, allocations: 0.8322 MB / 0.9618 GB, free: 1.266 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.2789, allocations: 44 kB / 0.9618 GB, free: 1.223 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002677/0.2816, allocations: 1.123 MB / 0.9629 GB, free: 100 kB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0002493/0.2819, allocations: 191 kB / 0.9631 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0004838/0.2824, allocations: 273.1 kB / 0.9634 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.002619/0.285, allocations: 1.719 MB / 0.9651 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.285, allocations: 0 / 0.9651 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2851, allocations: 0 / 0.9651 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.044e-05/0.2851, allocations: 0 / 0.9651 GB, free: 13.91 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.003111/0.2882, allocations: 1.44 MB / 0.9665 GB, free: 12.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.2883, allocations: 8.031 kB / 0.9665 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003358/0.2886, allocations: 130.5 kB / 0.9666 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002488/0.2911, allocations: 1.163 MB / 0.9677 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/0.2912, allocations: 53.31 kB / 0.9678 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2913, allocations: 67.98 kB / 0.9679 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2927, allocations: 0.7513 MB / 0.9686 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.2927, allocations: 4 kB / 0.9686 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.771e-05/0.2928, allocations: 28 kB / 0.9686 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.698e-05/0.2928, allocations: 19.94 kB / 0.9686 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009581/0.2938, allocations: 0.5243 MB / 0.9692 GB, free: 9.598 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.0053/0.2991, allocations: 4.508 MB / 0.9736 GB, free: 4.68 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.2999, allocations: 363.2 kB / 0.9739 GB, free: 4.316 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.3002, allocations: 220.7 kB / 0.9741 GB, free: 4.098 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/0.3017, allocations: 1.519 MB / 0.9756 GB, free: 2.246 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.3017, allocations: 38.56 kB / 0.9756 GB, free: 2.199 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=43): time 3.226e-06/0.3017, allocations: 4 kB / 0.9756 GB, free: 2.195 MB / 0.6198 GB Notification: Performance of matching and sorting (n=43): time 0.00233/0.3041, allocations: 0.8745 MB / 0.9765 GB, free: 1.293 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.3041, allocations: 59.41 kB / 0.9765 GB, free: 1.223 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.3055, allocations: 0.8832 MB / 0.9774 GB, free: 324 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.349e-05/0.3055, allocations: 29.7 kB / 0.9774 GB, free: 288 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004218/0.306, allocations: 491.9 kB / 0.9779 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.3061, allocations: 153.7 kB / 0.9781 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.3062, allocations: 12 kB / 0.9781 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3063, allocations: 325.9 kB / 0.9784 GB, free: 15.3 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.3066, allocations: 177 kB / 0.9785 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004186/0.3071, allocations: 327 kB / 0.9789 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.3075, allocations: 228.6 kB / 0.9791 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3075, allocations: 0 / 0.9791 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001476/0.309, allocations: 0.7098 MB / 0.9798 GB, free: 13.82 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.3091, allocations: 220.4 kB / 0.98 GB, free: 13.55 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.3092, allocations: 8 kB / 0.98 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000572/0.3097, allocations: 116.8 kB / 0.9801 GB, free: 13.42 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003894/0.3101, allocations: 119.8 kB / 0.9802 GB, free: 13.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005339/0.3107, allocations: 0.6226 MB / 0.9808 GB, free: 12.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007908/0.3115, allocations: 95.47 kB / 0.9809 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.659e-05/0.3116, allocations: 28 kB / 0.9809 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.3116, allocations: 7.953 kB / 0.9809 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001283/0.3129, allocations: 0.6054 MB / 0.9815 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3129, allocations: 8 kB / 0.9815 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/0.3134, allocations: 113.1 kB / 0.9816 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.3138, allocations: 115.8 kB / 0.9818 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004962/0.3143, allocations: 0.6303 MB / 0.9824 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.315, allocations: 87.55 kB / 0.9825 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-05/0.3151, allocations: 35.98 kB / 0.9825 GB, free: 10.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 56 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005788/0.3157, allocations: 338.7 kB / 0.9828 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.3158, allocations: 98.77 kB / 0.9829 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.3178, allocations: 1.006 MB / 0.9839 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/0.3178, allocations: 7.984 kB / 0.9839 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3178, allocations: 0 / 0.9839 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001345/0.3192, allocations: 0.9241 MB / 0.9848 GB, free: 8.48 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.3222, allocations: 1.939 MB / 0.9867 GB, free: 6.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.3223, allocations: 4 kB / 0.9867 GB, free: 6.465 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.3226, allocations: 91.98 kB / 0.9868 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003397/0.323, allocations: 88.73 kB / 0.9869 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.323, allocations: 19.98 kB / 0.9869 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005197/0.3236, allocations: 0.6225 MB / 0.9875 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3236, allocations: 4.062 kB / 0.9875 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.3256, allocations: 1.247 MB / 0.9887 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004607/0.3261, allocations: 287.6 kB / 0.989 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.3262, allocations: 12 kB / 0.989 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.3268, allocations: 63.97 kB / 0.9891 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3269, allocations: 48.56 kB / 0.9891 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/0.3269, allocations: 31.97 kB / 0.9891 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0009745/0.3279, allocations: 0.6176 MB / 0.9897 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.95e-06/0.3279, allocations: 0 / 0.9897 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001677/0.3296, allocations: 0.6158 MB / 0.9903 GB, free: 2.641 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (pip.cor.del.x,pip.cor.timDel.x,pip.vol.dynBal.U) * 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 (55): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001027/0.3307, allocations: 0.5026 MB / 0.9908 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001625/0.3323, allocations: 0.9169 MB / 0.9917 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.3323, allocations: 4.438 kB / 0.9917 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0005585/0.3329, allocations: 410.5 kB / 0.9921 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.3351, allocations: 474 kB / 0.9926 GB, free: 336 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.3385, allocations: 2.369 MB / 0.9949 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005863/0.3391, allocations: 1.046 MB / 0.9959 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.3393, allocations: 95.41 kB / 0.996 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of SimCode: time 7.72e-07/0.3393, allocations: 3.938 kB / 0.996 GB, free: 12.74 MB / 0.6511 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 1 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 3 .