Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal.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.FlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|senTemIn.T|senTemOut.T|pip.v_nominal|pip.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|senTemIn.T|senTemOut.T|pip.v_nominal|pip.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 100.5 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.001511/0.001512, allocations: 175.2 kB / 16.58 MB, free: 6.879 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.605/1.605, allocations: 223.3 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.82/2.82, allocations: 436.7 MB / 0.7113 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 8.219 kB / 0.8717 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8043/0.8047, allocations: 153.7 MB / 1.022 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.05823/0.863, allocations: 56.04 MB / 1.076 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02227/0.8853, allocations: 13.72 MB / 1.09 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002706/0.8881, allocations: 55.62 kB / 1.09 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.8901, allocations: 0.4967 MB / 1.09 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005942/0.896, allocations: 1.782 MB / 1.092 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004488/0.9005, allocations: 1.2 MB / 1.093 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007475/0.908, allocations: 4.539 MB / 1.098 GB, free: 3.117 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001915/0.9099, allocations: 0.9058 MB / 1.099 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003264/0.9132, allocations: 1.268 MB / 1.1 GB, free: 0.918 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001917/0.9152, allocations: 0.984 MB / 1.101 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.9153, allocations: 52 kB / 1.101 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003436/0.9188, allocations: 1.216 MB / 1.102 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003269/0.9191, allocations: 238.9 kB / 1.102 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006863/0.9198, allocations: 317 kB / 1.103 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002762/0.9226, allocations: 1.917 MB / 1.104 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.9226, allocations: 0 / 1.104 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9226, allocations: 0 / 1.104 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.909e-05/0.9226, allocations: 0 / 1.104 GB, free: 12.19 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.0029/0.9256, allocations: 1.581 MB / 1.106 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.9256, allocations: 15.98 kB / 1.106 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.926, allocations: 166.1 kB / 1.106 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/0.9281, allocations: 1.238 MB / 1.107 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.562e-05/0.9282, allocations: 73.94 kB / 1.107 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.9284, allocations: 88 kB / 1.108 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.9299, allocations: 0.9552 MB / 1.108 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.9299, allocations: 3.984 kB / 1.108 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.798e-05/0.93, allocations: 36 kB / 1.109 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.9301, allocations: 24 kB / 1.109 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.9312, allocations: 0.6596 MB / 1.109 GB, free: 7.195 MB / 0.8575 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.005932/0.9371, allocations: 5.216 MB / 1.114 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007501/0.9379, allocations: 393.3 kB / 1.115 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.9383, allocations: 250 kB / 1.115 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/0.9399, allocations: 1.603 MB / 1.116 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/0.94, allocations: 42.94 kB / 1.116 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 3.196e-06/0.94, allocations: 0 / 1.116 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of matching and sorting (n=53): time 0.002404/0.9424, allocations: 0.9485 MB / 1.117 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.9425, allocations: 55.84 kB / 1.117 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.944, allocations: 0.9772 MB / 1.118 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.151e-05/0.944, allocations: 37.7 kB / 1.118 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.9446, allocations: 0.5735 MB / 1.119 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.9448, allocations: 193.2 kB / 1.119 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.9449, allocations: 12 kB / 1.119 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001825/0.945, allocations: 338 kB / 1.12 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.9454, allocations: 193.5 kB / 1.12 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.9459, allocations: 404.8 kB / 1.12 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.9464, allocations: 262.1 kB / 1.12 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.9464, allocations: 4 kB / 1.12 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00174/0.9482, allocations: 0.8262 MB / 1.121 GB, free: 9.961 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.9484, allocations: 265.5 kB / 1.121 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.9484, allocations: 8 kB / 1.121 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005351/0.949, allocations: 104.8 kB / 1.122 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.9494, allocations: 139.8 kB / 1.122 GB, free: 9.371 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005205/0.95, allocations: 0.5991 MB / 1.122 GB, free: 8.746 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009222/0.9509, allocations: 111.3 kB / 1.122 GB, free: 8.637 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.082e-05/0.951, allocations: 39.92 kB / 1.122 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.951, allocations: 4 kB / 1.122 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001438/0.9525, allocations: 0.7011 MB / 1.123 GB, free: 7.887 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.9525, allocations: 11.98 kB / 1.123 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004625/0.953, allocations: 109 kB / 1.123 GB, free: 7.766 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.9534, allocations: 139.8 kB / 1.123 GB, free: 7.629 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005469/0.9539, allocations: 0.5914 MB / 1.124 GB, free: 7.012 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009263/0.9549, allocations: 103.4 kB / 1.124 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/0.955, allocations: 39.98 kB / 1.124 GB, free: 6.871 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (79): * Single equations (assignments): 76 * 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.000806/0.9558, allocations: 376.8 kB / 1.124 GB, free: 6.492 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.956, allocations: 118.5 kB / 1.125 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.9582, allocations: 1.072 MB / 1.126 GB, free: 5.312 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/0.9582, allocations: 12 kB / 1.126 GB, free: 5.301 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.9582, allocations: 0 / 1.126 GB, free: 5.301 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001289/0.9595, allocations: 0.8147 MB / 1.126 GB, free: 4.453 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/0.9631, allocations: 2.083 MB / 1.128 GB, free: 2.301 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.909e-05/0.9631, allocations: 4 kB / 1.128 GB, free: 2.297 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.9635, allocations: 103.8 kB / 1.129 GB, free: 2.195 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003283/0.9638, allocations: 76.91 kB / 1.129 GB, free: 2.117 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.9639, allocations: 27.88 kB / 1.129 GB, free: 2.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000498/0.9644, allocations: 0.5837 MB / 1.129 GB, free: 1.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.9644, allocations: 0 / 1.129 GB, free: 1.48 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.9666, allocations: 1.317 MB / 1.13 GB, free: 140 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006546/0.9672, allocations: 319.3 kB / 1.131 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.9674, allocations: 12 kB / 1.131 GB, free: 15.79 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006454/0.9681, allocations: 75.92 kB / 1.131 GB, free: 15.72 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.9682, allocations: 52.44 kB / 1.131 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/0.9682, allocations: 36.22 kB / 1.131 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001128/0.9694, allocations: 0.6686 MB / 1.132 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9694, allocations: 0 / 1.132 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00222/0.9716, allocations: 0.7326 MB / 1.132 GB, free: 14.22 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.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 (65): * Single equations (assignments): 50 * 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.00124/0.9729, allocations: 0.5532 MB / 1.133 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002059/0.9749, allocations: 1.04 MB / 1.134 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.975, allocations: 0 / 1.134 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006319/0.9756, allocations: 435.3 kB / 1.134 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.9784, allocations: 0.559 MB / 1.135 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004378/0.9828, allocations: 2.75 MB / 1.138 GB, free: 8.824 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007445/0.9836, allocations: 1.137 MB / 1.139 GB, free: 7.66 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.9839, allocations: 115.4 kB / 1.139 GB, free: 7.547 MB / 0.8887 GB Notification: Performance of SimCode: time 1.864e-06/0.9839, allocations: 0 / 1.139 GB, free: 7.547 MB / 0.8887 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 .