Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 98.48 kB / 16.02 MB, free: 76 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.001699/0.001699, allocations: 189.7 kB / 16.92 MB, free: 6.75 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.423/1.423, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003506, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7378/0.7381, allocations: 142.4 MB / 0.9557 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.08501/0.8232, allocations: 78.57 MB / 1.032 GB, free: 0.5625 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03142/0.8547, allocations: 19.11 MB / 1.051 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004913/0.8596, allocations: 91.38 kB / 1.051 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.004184/0.8638, allocations: 0.9851 MB / 1.052 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009993/0.8739, allocations: 2.588 MB / 1.055 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.006859/0.8808, allocations: 2.18 MB / 1.057 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0251/0.9059, allocations: 20.76 MB / 1.077 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009335/0.9153, allocations: 5.992 MB / 1.083 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/0.9267, allocations: 4.66 MB / 1.087 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00971/0.9365, allocations: 4.835 MB / 1.092 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001943/0.9385, allocations: 260 kB / 1.092 GB, free: 2.887 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006583/0.9451, allocations: 1.49 MB / 1.094 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003039/0.9481, allocations: 1.26 MB / 1.095 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.007238/0.9554, allocations: 2.897 MB / 1.098 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009432/0.9649, allocations: 6.851 MB / 1.105 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.965, allocations: 0 / 1.105 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.645e-06/0.965, allocations: 0 / 1.105 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002723/0.9652, allocations: 4 kB / 1.105 GB, free: 6.34 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: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01309/0.9783, allocations: 5.341 MB / 1.11 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.9784, allocations: 8.031 kB / 1.11 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005226/0.9836, allocations: 0.938 MB / 1.111 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.9957, allocations: 5.309 MB / 1.116 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000276/0.996, allocations: 259.1 kB / 1.116 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/0.9971, allocations: 344 kB / 1.117 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01176/1.009, allocations: 5.736 MB / 1.122 GB, free: 3.996 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-05/1.009, allocations: 7.938 kB / 1.122 GB, free: 3.988 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005067/1.01, allocations: 143.9 kB / 1.122 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/1.01, allocations: 118 kB / 1.122 GB, free: 3.73 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/1.021, allocations: 5.605 MB / 1.128 GB, free: 14.11 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.04142/1.063, allocations: 23.99 MB / 1.151 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005771/1.068, allocations: 2.82 MB / 1.154 GB, free: 2.164 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003492/1.072, allocations: 1.94 MB / 1.156 GB, free: 224 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/1.087, allocations: 7.1 MB / 1.163 GB, free: 8.797 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003799/1.091, allocations: 1.953 MB / 1.165 GB, free: 6.832 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005139/1.096, allocations: 1.25 MB / 1.166 GB, free: 5.578 MB / 0.92 GB Notification: Performance of pre-optimization done (n=156): time 1.193e-05/1.097, allocations: 3.938 kB / 1.166 GB, free: 5.574 MB / 0.92 GB Notification: Performance of matching and sorting (n=156): time 0.02492/1.121, allocations: 7.667 MB / 1.174 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/1.122, allocations: 76.64 kB / 1.174 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/1.132, allocations: 4.898 MB / 1.178 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0006674/1.133, allocations: 69.7 kB / 1.178 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.003027/1.136, allocations: 2.455 MB / 1.181 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.137, allocations: 0.5509 MB / 1.181 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006848/1.138, allocations: 223.1 kB / 1.182 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001061/1.138, allocations: 305.1 kB / 1.182 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003485/1.142, allocations: 1.703 MB / 1.184 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004547/1.146, allocations: 2.897 MB / 1.186 GB, free: 64 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/1.154, allocations: 4.625 MB / 1.191 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-05/1.154, allocations: 12 kB / 1.191 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01466/1.169, allocations: 6.125 MB / 1.197 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.001415/1.17, allocations: 1.101 MB / 1.198 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.271e-05/1.17, allocations: 32 kB / 1.198 GB, free: 3.207 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07804/1.248, allocations: 11.91 MB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003322/1.252, allocations: 0.6786 MB / 1.21 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/1.261, allocations: 5.033 MB / 1.215 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/1.266, allocations: 340 kB / 1.216 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007048/1.267, allocations: 163.9 kB / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/1.267, allocations: 7.984 kB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01111/1.278, allocations: 5.384 MB / 1.221 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/1.278, allocations: 32 kB / 1.221 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07503/1.353, allocations: 11.67 MB / 1.232 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003122/1.356, allocations: 0.6669 MB / 1.233 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/1.369, allocations: 8.036 MB / 1.241 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005309/1.375, allocations: 328.1 kB / 1.241 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007283/1.375, allocations: 159.9 kB / 1.241 GB, free: 6.379 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 280 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.004055/1.38, allocations: 1.551 MB / 1.243 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001802/1.381, allocations: 466.3 kB / 1.243 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6058/1.987, allocations: 4.896 MB / 1.248 GB, free: 267.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.197e-05/1.987, allocations: 18.14 kB / 1.248 GB, free: 267.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/1.987, allocations: 0.8438 kB / 1.248 GB, free: 267.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02269/2.01, allocations: 7.1 MB / 1.255 GB, free: 265.6 MB / 0.9981 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.03486/2.045, allocations: 13.24 MB / 1.268 GB, free: 259.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-05/2.045, allocations: 3.984 kB / 1.268 GB, free: 259.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/2.047, allocations: 377.6 kB / 1.268 GB, free: 259.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07022/2.118, allocations: 11.89 MB / 1.28 GB, free: 255.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005161/2.118, allocations: 51.27 kB / 1.28 GB, free: 255.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006034/2.124, allocations: 4.372 MB / 1.284 GB, free: 252.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.124, allocations: 0 / 1.284 GB, free: 252.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02447/2.149, allocations: 9.776 MB / 1.294 GB, free: 246.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003234/2.152, allocations: 1.074 MB / 1.295 GB, free: 245.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001316/2.153, allocations: 35.98 kB / 1.295 GB, free: 245.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004059/2.158, allocations: 265.3 kB / 1.295 GB, free: 245.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/2.158, allocations: 109.2 kB / 1.295 GB, free: 245.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002615/2.158, allocations: 83.92 kB / 1.295 GB, free: 245.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004887/2.163, allocations: 3.35 MB / 1.299 GB, free: 242.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.21e-07/2.163, allocations: 0 / 1.299 GB, free: 242.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.009309/2.172, allocations: 2.659 MB / 1.301 GB, free: 239.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001617/2.174, allocations: 0.5154 MB / 1.302 GB, free: 239.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.016/2.19, allocations: 7.571 MB / 1.309 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.19, allocations: 4 kB / 1.309 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005737/2.196, allocations: 2.519 MB / 1.312 GB, free: 229.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01513/2.211, allocations: 2.721 MB / 1.314 GB, free: 226.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/2.228, allocations: 11.99 MB / 1.326 GB, free: 214.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002363/2.231, allocations: 3.205 MB / 1.329 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/2.232, allocations: 371.2 kB / 1.329 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of SimCode: time 8.12e-07/2.232, allocations: 0 / 1.329 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.1715/2.404, allocations: 162.7 MB / 1.488 GB, free: 48.54 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches