Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.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.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.417/1.417, allocations: 249.5 MB / 257 MB, free: 7 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.001031/0.001031, allocations: 191.4 kB / 316.3 MB, free: 3.238 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.772/1.772, allocations: 205.3 MB / 0.5671 GB, free: 15.79 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.0008406/0.0008407, allocations: 97.05 kB / 0.6714 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.846e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2112, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.584/1.796, allocations: 398.3 MB / 1.274 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/1.796, allocations: 88.44 kB / 1.274 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.455/3.251, allocations: 475.4 MB / 1.738 GB, free: 181.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.493e-06/3.251, allocations: 0 / 1.738 GB, free: 181.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001894/3.251, allocations: 38.98 kB / 1.739 GB, free: 181.7 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003491/3.255, allocations: 1.513 MB / 1.74 GB, free: 180.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/3.255, allocations: 10.53 kB / 1.74 GB, free: 180.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/3.256, allocations: 234.6 kB / 1.74 GB, free: 180.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003956/3.26, allocations: 1.941 MB / 1.742 GB, free: 179.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/3.26, allocations: 21.59 kB / 1.742 GB, free: 179.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/3.26, allocations: 54.12 kB / 1.742 GB, free: 179.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001001/3.261, allocations: 0.6213 MB / 1.743 GB, free: 178.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/3.262, allocations: 0.812 MB / 1.744 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/3.262, allocations: 0 / 1.744 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/3.263, allocations: 3.375 kB / 1.744 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/3.263, allocations: 23.39 kB / 1.744 GB, free: 178.4 MB / 0.8698 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.004763/3.267, allocations: 4.454 MB / 1.748 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007086/3.268, allocations: 0.5648 MB / 1.749 GB, free: 174.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003657/3.268, allocations: 293.6 kB / 1.749 GB, free: 174.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/3.271, allocations: 1.672 MB / 1.75 GB, free: 172.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/3.271, allocations: 284.9 kB / 1.751 GB, free: 172.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000367/3.271, allocations: 102.1 kB / 1.751 GB, free: 172.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=46): time 2.445e-06/3.271, allocations: 0 / 1.751 GB, free: 172.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=46): time 0.001537/3.273, allocations: 0.7151 MB / 1.752 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/3.273, allocations: 61.42 kB / 1.752 GB, free: 172.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/3.274, allocations: 0.9909 MB / 1.753 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/3.274, allocations: 29.7 kB / 1.753 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000406/3.275, allocations: 0.6404 MB / 1.753 GB, free: 170.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.988e-05/3.275, allocations: 158.3 kB / 1.753 GB, free: 170.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/3.275, allocations: 0 / 1.753 GB, free: 170.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.302e-05/3.275, allocations: 336 kB / 1.754 GB, free: 170.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/3.275, allocations: 210.6 kB / 1.754 GB, free: 170.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/3.275, allocations: 0.5341 MB / 1.754 GB, free: 169.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00078/3.276, allocations: 335 kB / 1.755 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/3.276, allocations: 4 kB / 1.755 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001624/3.278, allocations: 0.9274 MB / 1.756 GB, free: 168.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005952/3.278, allocations: 3.045 MB / 1.759 GB, free: 165.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/3.279, allocations: 11.95 kB / 1.759 GB, free: 165.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/3.279, allocations: 127.8 kB / 1.759 GB, free: 165.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/3.279, allocations: 158.8 kB / 1.759 GB, free: 165 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005763/3.28, allocations: 0.7824 MB / 1.76 GB, free: 164.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008036/3.281, allocations: 66.84 kB / 1.76 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/3.281, allocations: 44.05 kB / 1.76 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/3.281, allocations: 4 kB / 1.76 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0014/3.282, allocations: 0.7899 MB / 1.761 GB, free: 163.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/3.282, allocations: 8 kB / 1.761 GB, free: 163.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/3.282, allocations: 96.8 kB / 1.761 GB, free: 163.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/3.283, allocations: 138.9 kB / 1.761 GB, free: 163.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/3.284, allocations: 2.114 MB / 1.763 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006701/3.285, allocations: 59.05 kB / 1.763 GB, free: 160.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.948e-05/3.285, allocations: 42.67 kB / 1.763 GB, free: 160.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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 {5 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/3.285, allocations: 132 kB / 1.763 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/3.286, allocations: 126.4 kB / 1.763 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/3.287, allocations: 0.7878 MB / 1.764 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/3.287, allocations: 15.94 kB / 1.764 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-06/3.287, allocations: 0 / 1.764 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009308/3.288, allocations: 0.8028 MB / 1.765 GB, free: 158.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/3.29, allocations: 1.693 MB / 1.766 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/3.29, allocations: 0 / 1.766 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/3.291, allocations: 82.5 kB / 1.766 GB, free: 157 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/3.291, allocations: 111.3 kB / 1.767 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/3.291, allocations: 11.73 kB / 1.767 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004619/3.292, allocations: 0.7453 MB / 1.767 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/3.292, allocations: 3.188 kB / 1.767 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/3.293, allocations: 1.112 MB / 1.768 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003936/3.293, allocations: 267.3 kB / 1.769 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/3.293, allocations: 3.938 kB / 1.769 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/3.294, allocations: 65.22 kB / 1.769 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.737e-05/3.294, allocations: 39.34 kB / 1.769 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/3.294, allocations: 23.98 kB / 1.769 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0008241/3.295, allocations: 0.7708 MB / 1.77 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/3.295, allocations: 0 / 1.77 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002121/3.297, allocations: 0.6861 MB / 1.77 GB, free: 153.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * 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 (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * 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 {5 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/3.299, allocations: 0.7369 MB / 1.771 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001859/3.3, allocations: 1.211 MB / 1.772 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/3.3, allocations: 0 / 1.772 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000422/3.301, allocations: 289.3 kB / 1.772 GB, free: 151 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/3.303, allocations: 0.5162 MB / 1.773 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/3.306, allocations: 1.651 MB / 1.774 GB, free: 148.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006332/3.306, allocations: 1.301 MB / 1.776 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001815/3.308, allocations: 0.5612 MB / 1.776 GB, free: 147 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/3.308, allocations: 79.34 kB / 1.776 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.403e-06/3.308, allocations: 4 kB / 1.776 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.0397/3.348, allocations: 25.73 MB / 1.802 GB, free: 121.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_Example2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches