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.573/1.573, allocations: 249.3 MB / 261.8 MB, free: 5.898 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.001099/0.001099, allocations: 184.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.1 MB / 0.572 GB, free: 10.6 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.000974/0.000974, allocations: 91.97 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.219e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2452, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.699/1.944, allocations: 414 MB / 1.296 GB, free: 316.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/1.944, allocations: 88.02 kB / 1.296 GB, free: 316.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 5.943/7.887, allocations: 1.449 GB / 2.745 GB, free: 118.3 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.743e-06/7.887, allocations: 2.156 kB / 2.745 GB, free: 118.3 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0009967/7.888, allocations: 152.3 kB / 2.745 GB, free: 118.3 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.01679/7.905, allocations: 4.581 MB / 2.75 GB, free: 116.5 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/7.905, allocations: 10.53 kB / 2.75 GB, free: 116.5 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006032/7.911, allocations: 0.7988 MB / 2.75 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01965/7.931, allocations: 6.757 MB / 2.757 GB, free: 115.3 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003429/7.931, allocations: 261.5 kB / 2.757 GB, free: 115.3 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/7.933, allocations: 352.5 kB / 2.758 GB, free: 115.3 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009847/7.943, allocations: 5.283 MB / 2.763 GB, free: 114.6 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.736e-05/7.943, allocations: 9.906 kB / 2.763 GB, free: 114.6 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005901/7.943, allocations: 147.1 kB / 2.763 GB, free: 114.6 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.445e-05/7.943, allocations: 90.17 kB / 2.763 GB, free: 114.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008143/7.952, allocations: 4.912 MB / 2.768 GB, free: 114.6 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.04009/7.992, allocations: 22.72 MB / 2.79 GB, free: 104.7 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004543/7.996, allocations: 2.606 MB / 2.793 GB, free: 104.6 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00244/7.999, allocations: 1.7 MB / 2.794 GB, free: 104.6 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/8.014, allocations: 7.022 MB / 2.801 GB, free: 102.3 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002761/8.017, allocations: 1.782 MB / 2.803 GB, free: 102.3 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007942/8.025, allocations: 2.034 MB / 2.805 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 2.25e-05/8.025, allocations: 4.594 kB / 2.805 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.01939/8.044, allocations: 5.557 MB / 2.81 GB, free: 101.8 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/8.044, allocations: 151 kB / 2.81 GB, free: 101.6 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009039/8.053, allocations: 4.508 MB / 2.815 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/8.054, allocations: 71.67 kB / 2.815 GB, free: 101.2 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.002722/8.057, allocations: 2.445 MB / 2.817 GB, free: 100.5 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.001238/8.058, allocations: 0.5629 MB / 2.818 GB, free: 100.1 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/8.059, allocations: 49.56 kB / 2.818 GB, free: 100.1 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002149/8.059, allocations: 415 kB / 2.818 GB, free: 99.81 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/8.061, allocations: 1.469 MB / 2.82 GB, free: 99.8 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002961/8.064, allocations: 2.768 MB / 2.822 GB, free: 98.23 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002896/8.067, allocations: 1.947 MB / 2.824 GB, free: 98.16 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-05/8.067, allocations: 11.69 kB / 2.824 GB, free: 98.16 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03205/8.099, allocations: 7.975 MB / 2.832 GB, free: 96.52 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.006233/8.105, allocations: 15.28 MB / 2.847 GB, free: 79.93 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/8.106, allocations: 32.94 kB / 2.847 GB, free: 79.93 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09506/8.201, allocations: 15.4 MB / 2.862 GB, free: 78.47 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003978/8.205, allocations: 0.6944 MB / 2.863 GB, free: 78.45 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008179/8.213, allocations: 4.717 MB / 2.867 GB, free: 76.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006938/8.22, allocations: 370.8 kB / 2.868 GB, free: 75.91 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007758/8.221, allocations: 153.5 kB / 2.868 GB, free: 75.89 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/8.221, allocations: 3.844 kB / 2.868 GB, free: 75.89 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0303/8.251, allocations: 7.458 MB / 2.875 GB, free: 72.57 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/8.251, allocations: 32.44 kB / 2.875 GB, free: 72.57 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09177/8.343, allocations: 15.31 MB / 2.89 GB, free: 58.38 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00325/8.346, allocations: 0.698 MB / 2.891 GB, free: 57.68 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/8.357, allocations: 7.706 MB / 2.898 GB, free: 49.69 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006489/8.363, allocations: 347.5 kB / 2.899 GB, free: 49.35 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008084/8.364, allocations: 148 kB / 2.899 GB, free: 49.21 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.001105/8.365, allocations: 298.6 kB / 2.899 GB, free: 48.91 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/8.367, allocations: 462.3 kB / 2.899 GB, free: 48.45 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02253/8.39, allocations: 6.592 MB / 2.906 GB, free: 41.9 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.82e-05/8.39, allocations: 20 kB / 2.906 GB, free: 41.88 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/8.39, allocations: 3.938 kB / 2.906 GB, free: 41.88 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01245/8.402, allocations: 6.375 MB / 2.912 GB, free: 35.27 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03075/8.433, allocations: 13.02 MB / 2.925 GB, free: 22.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/8.433, allocations: 0 / 2.925 GB, free: 22.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002519/8.435, allocations: 419.5 kB / 2.925 GB, free: 21.79 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06308/8.499, allocations: 11.65 MB / 2.937 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006309/8.499, allocations: 43.97 kB / 2.937 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005632/8.505, allocations: 4.11 MB / 2.941 GB, free: 5.973 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/8.505, allocations: 11.23 kB / 2.941 GB, free: 5.965 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01927/8.524, allocations: 9.017 MB / 2.95 GB, free: 12.92 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004926/8.529, allocations: 1.1 MB / 2.951 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001851/8.531, allocations: 28 kB / 2.951 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004975/8.536, allocations: 299.1 kB / 2.951 GB, free: 11.48 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/8.536, allocations: 105.2 kB / 2.951 GB, free: 11.37 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003211/8.537, allocations: 79.92 kB / 2.951 GB, free: 11.29 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.006477/8.543, allocations: 3.472 MB / 2.954 GB, free: 7.836 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6.61e-07/8.543, allocations: 0 / 2.954 GB, free: 7.836 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.01336/8.557, allocations: 2.817 MB / 2.957 GB, free: 5.016 MB / 0.9167 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.003132/8.56, allocations: 1.246 MB / 2.958 GB, free: 3.887 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.71/9.27, allocations: 7.35 MB / 2.966 GB, free: 139.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/9.27, allocations: 3.172 kB / 2.966 GB, free: 139.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.007121/9.277, allocations: 2.417 MB / 2.968 GB, free: 139.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01783/9.295, allocations: 2.709 MB / 2.971 GB, free: 139.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/9.316, allocations: 7.724 MB / 2.978 GB, free: 137.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004638/9.321, allocations: 3.32 MB / 2.981 GB, free: 137.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0155/9.336, allocations: 3.002 MB / 2.984 GB, free: 137.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/9.338, allocations: 262.5 kB / 2.985 GB, free: 137.1 MB / 0.9167 GB Notification: Performance of SimCode: time 3.406e-06/9.338, allocations: 0 / 2.985 GB, free: 137.1 MB / 0.9167 GB Notification: Performance of Templates: time 0.2124/9.55, allocations: 124.2 MB / 3.106 GB, free: 131.3 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