Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.448/1.448, allocations: 249.5 MB / 257 MB, free: 7.027 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009873/0.0009873, allocations: 184.8 kB / 316.3 MB, free: 3.289 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.722/1.722, allocations: 205.3 MB / 0.5671 GB, free: 15.9 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.001008/0.001008, allocations: 90.47 kB / 0.6714 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.222e-05/2.225e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2631, allocations: 106.3 MB / 0.8852 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.752/2.015, allocations: 414.2 MB / 1.29 GB, free: 319.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/2.015, allocations: 89.86 kB / 1.29 GB, free: 319.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 6.017/8.032, allocations: 1.441 GB / 2.731 GB, free: 119.1 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.746e-06/8.033, allocations: 0 / 2.731 GB, free: 119.1 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001284/8.034, allocations: 153.2 kB / 2.731 GB, free: 119.1 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.01991/8.054, allocations: 4.583 MB / 2.736 GB, free: 117.4 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/8.054, allocations: 10.38 kB / 2.736 GB, free: 117.4 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006531/8.06, allocations: 0.7979 MB / 2.736 GB, free: 117 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02178/8.082, allocations: 6.75 MB / 2.743 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/8.083, allocations: 106.7 kB / 2.743 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/8.084, allocations: 213.6 kB / 2.743 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/8.095, allocations: 4.734 MB / 2.748 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/8.105, allocations: 4.811 MB / 2.753 GB, free: 115.5 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.384e-05/8.106, allocations: 23.02 kB / 2.753 GB, free: 115.5 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005826/8.106, allocations: 11.72 kB / 2.753 GB, free: 115.5 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.367e-05/8.106, allocations: 82.53 kB / 2.753 GB, free: 115.5 MB / 0.9011 GB Warning: The model contains alias variables with conflicting start and/or 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.03996/8.146, allocations: 22.05 MB / 2.774 GB, free: 105.6 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005034/8.151, allocations: 2.648 MB / 2.777 GB, free: 105.6 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002628/8.154, allocations: 1.693 MB / 2.778 GB, free: 105.6 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01553/8.17, allocations: 6.912 MB / 2.785 GB, free: 103.3 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002225/8.172, allocations: 1.727 MB / 2.787 GB, free: 103.3 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007057/8.179, allocations: 1.957 MB / 2.789 GB, free: 103.2 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 8.956e-06/8.179, allocations: 2.156 kB / 2.789 GB, free: 103.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.02317/8.202, allocations: 6.21 MB / 2.795 GB, free: 102.8 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/8.202, allocations: 151.7 kB / 2.795 GB, free: 102.7 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008215/8.211, allocations: 3.964 MB / 2.799 GB, free: 102.3 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001001/8.212, allocations: 32.52 kB / 2.799 GB, free: 102.3 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.002772/8.214, allocations: 2.44 MB / 2.801 GB, free: 101.4 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.00122/8.216, allocations: 0.5388 MB / 2.802 GB, free: 101.1 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/8.216, allocations: 0 / 2.802 GB, free: 101.1 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001859/8.216, allocations: 410.5 kB / 2.802 GB, free: 100.8 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001945/8.218, allocations: 1.456 MB / 2.804 GB, free: 100.8 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/8.221, allocations: 2.723 MB / 2.806 GB, free: 99.23 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007329/8.228, allocations: 2.51 MB / 2.809 GB, free: 99.19 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.974e-05/8.228, allocations: 9.594 kB / 2.809 GB, free: 99.19 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03719/8.265, allocations: 8.397 MB / 2.817 GB, free: 98.84 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.00412/8.27, allocations: 15.03 MB / 2.832 GB, free: 83.05 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/8.27, allocations: 35.88 kB / 2.832 GB, free: 83.05 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03248/8.302, allocations: 6.197 MB / 2.838 GB, free: 83.03 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003798/8.306, allocations: 0.7014 MB / 2.838 GB, free: 83.03 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/8.319, allocations: 5.529 MB / 2.844 GB, free: 81.44 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008828/8.328, allocations: 311.3 kB / 2.844 GB, free: 81.4 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/8.329, allocations: 154.5 kB / 2.844 GB, free: 81.4 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/8.329, allocations: 3.375 kB / 2.844 GB, free: 81.4 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03516/8.365, allocations: 7.691 MB / 2.852 GB, free: 81.27 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/8.365, allocations: 34.09 kB / 2.852 GB, free: 81.27 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03175/8.397, allocations: 6.155 MB / 2.858 GB, free: 81.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003528/8.4, allocations: 0.684 MB / 2.858 GB, free: 81.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01366/8.414, allocations: 8.243 MB / 2.866 GB, free: 77.92 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006252/8.42, allocations: 287.8 kB / 2.867 GB, free: 77.88 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009112/8.421, allocations: 149.5 kB / 2.867 GB, free: 77.88 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00107/8.422, allocations: 211.7 kB / 2.867 GB, free: 77.75 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001885/8.424, allocations: 430.5 kB / 2.868 GB, free: 77.52 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/8.44, allocations: 5.721 MB / 2.873 GB, free: 76.25 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.814e-05/8.44, allocations: 21.77 kB / 2.873 GB, free: 76.24 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/8.44, allocations: 0 / 2.873 GB, free: 76.24 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0171/8.457, allocations: 6.857 MB / 2.88 GB, free: 73.22 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03334/8.491, allocations: 13.1 MB / 2.893 GB, free: 65.59 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/8.491, allocations: 4 kB / 2.893 GB, free: 65.59 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002557/8.493, allocations: 423.5 kB / 2.893 GB, free: 65.18 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004344/8.498, allocations: 2.442 MB / 2.895 GB, free: 62.75 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004257/8.498, allocations: 27.97 kB / 2.895 GB, free: 62.72 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008883/8.507, allocations: 4.811 MB / 2.9 GB, free: 57.84 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/8.507, allocations: 0 / 2.9 GB, free: 57.84 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02618/8.533, allocations: 10 MB / 2.91 GB, free: 47.82 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004207/8.538, allocations: 1.068 MB / 2.911 GB, free: 46.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00175/8.539, allocations: 4 kB / 2.911 GB, free: 46.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004562/8.544, allocations: 271 kB / 2.911 GB, free: 46.46 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/8.544, allocations: 113.1 kB / 2.911 GB, free: 46.35 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/8.545, allocations: 83.92 kB / 2.911 GB, free: 46.27 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.004878/8.549, allocations: 2.978 MB / 2.914 GB, free: 43.3 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4.01e-07/8.55, allocations: 4 kB / 2.914 GB, free: 43.29 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.01279/8.562, allocations: 2.735 MB / 2.917 GB, free: 40.55 MB / 0.9011 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.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002817/8.565, allocations: 1.201 MB / 2.918 GB, free: 39.5 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.01451/8.58, allocations: 7.099 MB / 2.925 GB, free: 32.36 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/8.58, allocations: 9.078 kB / 2.925 GB, free: 32.35 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.004878/8.585, allocations: 2.371 MB / 2.927 GB, free: 29.97 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01484/8.6, allocations: 2.406 MB / 2.93 GB, free: 27.62 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01364/8.613, allocations: 7.555 MB / 2.937 GB, free: 20.04 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002261/8.616, allocations: 3.309 MB / 2.94 GB, free: 16.7 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.008822/8.624, allocations: 2.784 MB / 2.943 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008573/8.625, allocations: 255.3 kB / 2.943 GB, free: 13.76 MB / 0.9011 GB Notification: Performance of SimCode: time 6.41e-07/8.625, allocations: 0 / 2.943 GB, free: 13.76 MB / 0.9011 GB Notification: Performance of Templates: time 0.9112/9.536, allocations: 105.5 MB / 3.046 GB, free: 129.1 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches