Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solHeaGai.TFlu.1.|solHeaGai.TFlu.2.|solHeaGai.TFlu.3.|solHeaGai.QSol_flow.1.|solHeaGai.QSol_flow.2.|solHeaGai.QSol_flow.3.",fileNamePrefix="Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solHeaGai.TFlu.1.|solHeaGai.TFlu.2.|solHeaGai.TFlu.3.|solHeaGai.QSol_flow.1.|solHeaGai.QSol_flow.2.|solHeaGai.QSol_flow.3.",fileNamePrefix="Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 109.1 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.326/1.326, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.437/2.437, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 64.12 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8339/0.8353, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain): time 0.003324/0.8386, allocations: 2.022 MB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004843/0.8435, allocations: 3.692 MB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.8438, allocations: 7.938 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0004013/0.8443, allocations: 56.59 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.8448, allocations: 110.8 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.8452, allocations: 127.6 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.8457, allocations: 259.1 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.8458, allocations: 40.39 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002772/0.8461, allocations: 111.6 kB / 1.174 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.8463, allocations: 119.5 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.291e-05/0.8464, allocations: 12 kB / 1.174 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.8466, allocations: 123.8 kB / 1.174 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.129e-05/0.8467, allocations: 47.77 kB / 1.174 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.8468, allocations: 95.45 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.8473, allocations: 278.8 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.8473, allocations: 0 / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8473, allocations: 3.938 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.1e-05/0.8473, allocations: 4 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.00122/0.8485, allocations: 0.5915 MB / 1.175 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.8486, allocations: 16.92 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.8487, allocations: 20.8 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.8491, allocations: 263.8 kB / 1.175 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.8492, allocations: 12.33 kB / 1.175 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.8492, allocations: 8.359 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005077/0.8497, allocations: 175.9 kB / 1.175 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.8497, allocations: 3.984 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.8498, allocations: 4 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.8498, allocations: 4 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000667/0.8504, allocations: 191.8 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009134/0.8514, allocations: 496.4 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.8518, allocations: 122.5 kB / 1.176 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/0.8522, allocations: 113 kB / 1.176 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008532/0.853, allocations: 0.5454 MB / 1.177 GB, free: 9.965 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.8531, allocations: 34.5 kB / 1.177 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 2.084e-06/0.8531, allocations: 4 kB / 1.177 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.001199/0.8543, allocations: 357.4 kB / 1.177 GB, free: 9.562 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.8543, allocations: 55.41 kB / 1.177 GB, free: 9.496 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.8545, allocations: 234.7 kB / 1.177 GB, free: 9.254 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.8546, allocations: 25.7 kB / 1.177 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.8547, allocations: 144 kB / 1.178 GB, free: 9.078 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.564e-05/0.8547, allocations: 43.67 kB / 1.178 GB, free: 9.035 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/0.8548, allocations: 29.7 kB / 1.178 GB, free: 9 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.8549, allocations: 338.8 kB / 1.178 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.8553, allocations: 95.91 kB / 1.178 GB, free: 8.566 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.8556, allocations: 99.84 kB / 1.178 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/0.8563, allocations: 192.7 kB / 1.178 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.8563, allocations: 4 kB / 1.178 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007582/0.8571, allocations: 257.3 kB / 1.179 GB, free: 8.016 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.8571, allocations: 4 kB / 1.179 GB, free: 8.012 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.8571, allocations: 4 kB / 1.179 GB, free: 8.008 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.8571, allocations: 4 kB / 1.179 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.8574, allocations: 43.89 kB / 1.179 GB, free: 7.961 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.8574, allocations: 7.922 kB / 1.179 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.8577, allocations: 31.92 kB / 1.179 GB, free: 7.922 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.8577, allocations: 4 kB / 1.179 GB, free: 7.918 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.8578, allocations: 129.8 kB / 1.179 GB, free: 7.781 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.984e-05/0.8579, allocations: 19.86 kB / 1.179 GB, free: 7.762 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008425/0.8587, allocations: 279.2 kB / 1.179 GB, free: 7.484 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.8587, allocations: 4 kB / 1.179 GB, free: 7.48 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.8588, allocations: 3.938 kB / 1.179 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.8588, allocations: 0 / 1.179 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.8591, allocations: 281.2 kB / 1.179 GB, free: 7.152 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.8591, allocations: 4 kB / 1.179 GB, free: 7.148 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.8594, allocations: 47.94 kB / 1.179 GB, free: 7.102 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.8594, allocations: 4 kB / 1.179 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.8594, allocations: 7.984 kB / 1.179 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.8594, allocations: 0 / 1.179 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.8594, allocations: 3.938 kB / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.8602, allocations: 352.1 kB / 1.18 GB, free: 6.727 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.8603, allocations: 112.9 kB / 1.18 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.8604, allocations: 7.938 kB / 1.18 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.8606, allocations: 19.97 kB / 1.18 GB, free: 6.57 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.8607, allocations: 31.78 kB / 1.18 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.8607, allocations: 4 kB / 1.18 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001334/0.8609, allocations: 170 kB / 1.18 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8609, allocations: 0 / 1.18 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003197/0.8612, allocations: 63.81 kB / 1.18 GB, free: 6.312 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002243/0.8614, allocations: 135.1 kB / 1.18 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007615/0.8622, allocations: 223.8 kB / 1.18 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8622, allocations: 0 / 1.18 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.8626, allocations: 115.9 kB / 1.181 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.863, allocations: 33.5 kB / 1.181 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008365/0.8639, allocations: 443.7 kB / 1.181 GB, free: 5.344 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.8642, allocations: 0.7353 MB / 1.182 GB, free: 4.582 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.8643, allocations: 23.42 kB / 1.182 GB, free: 4.559 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.8643, allocations: 0 / 1.182 GB, free: 4.559 MB / 0.9044 GB Notification: Performance of Templates: time 0.005489/0.8698, allocations: 3.004 MB / 1.185 GB, free: 1.574 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975SolarGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975SolarGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches