Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatGain.QRad_flow|heatGain.QCon_flow|heatGain.QLat_flow",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain") translateModel(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatGain.QRad_flow|heatGain.QCon_flow|heatGain.QLat_flow",fileNamePrefix="Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004829/0.004829, allocations: 103.1 kB / 15.73 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.001188/0.001188, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.213/1.213, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.466/2.466, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 71.89 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2725, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002849/0.2754, allocations: 1.541 MB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000137/0.2755, allocations: 27.86 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.026e-05/0.2756, allocations: 3.938 kB / 1.209 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.2757, allocations: 7.922 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.586e-05/0.2758, allocations: 11.88 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000104/0.2759, allocations: 19.97 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.276, allocations: 43.84 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.2761, allocations: 31.98 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.877e-05/0.2762, allocations: 19.92 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.188e-05/0.2763, allocations: 31.86 kB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.2763, allocations: 7.984 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.418e-06/0.2763, allocations: 4 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.2764, allocations: 11.98 kB / 1.209 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.911e-05/0.2764, allocations: 35.8 kB / 1.209 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.2765, allocations: 63.69 kB / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2765, allocations: 0 / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2765, allocations: 0 / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.2765, allocations: 0 / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003824/0.2769, allocations: 363.2 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.277, allocations: 12.62 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.277, allocations: 8.844 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.2772, allocations: 180.4 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.2772, allocations: 12.31 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.2772, allocations: 4.375 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.2774, allocations: 106.6 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2774, allocations: 192 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.2774, allocations: 7.922 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.2774, allocations: 4 kB / 1.21 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.732e-05/0.2775, allocations: 47.92 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005352/0.278, allocations: 0.64 MB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.085e-05/0.2781, allocations: 165.1 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.346e-05/0.2782, allocations: 84.14 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.2782, allocations: 79.28 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.2783, allocations: 109.8 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=0): time 3.627e-06/0.2783, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of matching and sorting (n=0): time 7.886e-05/0.2784, allocations: 41.48 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.2784, allocations: 126.7 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.2786, allocations: 169.2 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.2786, allocations: 29.7 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.322e-05/0.2787, allocations: 107.9 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-06/0.2787, allocations: 0 / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.2787, allocations: 13.72 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2789, allocations: 318.8 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.034e-05/0.2789, allocations: 8 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.053e-05/0.2789, allocations: 26.45 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.5e-05/0.279, allocations: 38.53 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.279, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001184/0.2791, allocations: 57.55 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2791, allocations: 4 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2791, allocations: 0 / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.2791, allocations: 4.031 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.829e-05/0.2792, allocations: 12 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2792, allocations: 3.984 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.2793, allocations: 3.938 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.2793, allocations: 4 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.0001004/0.2794, allocations: 193.1 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.2795, allocations: 108.9 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.625e-05/0.2795, allocations: 120.8 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.598e-05/0.2796, allocations: 184.7 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.988e-05/0.2797, allocations: 180.3 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.658e-05/0.2797, allocations: 180.2 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.2799, allocations: 425.2 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.834e-05/0.28, allocations: 101.1 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.99e-05/0.28, allocations: 116.9 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.992e-05/0.2801, allocations: 180.2 kB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.2801, allocations: 184.1 kB / 1.214 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.943e-05/0.2802, allocations: 176.3 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.243e-05/0.2802, allocations: 184.2 kB / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.2804, allocations: 311.7 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.114e-05/0.2804, allocations: 193.9 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.241e-05/0.2805, allocations: 184.2 kB / 1.215 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.715e-05/0.2806, allocations: 105 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.2807, allocations: 184.2 kB / 1.215 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.2807, allocations: 109 kB / 1.215 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.368e-05/0.2808, allocations: 129.5 kB / 1.216 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2808, allocations: 0 / 1.216 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002182/0.281, allocations: 4 kB / 1.216 GB, free: 1.059 MB / 0.9669 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 (0): * Single equations (assignments): 0 * 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.0001168/0.2811, allocations: 170.5 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 6.545e-05/0.2812, allocations: 19.92 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2812, allocations: 192 / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.462e-06/0.2812, allocations: 7.938 kB / 1.216 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.2815, allocations: 459.7 kB / 1.216 GB, free: 412 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002919/0.2818, allocations: 229.2 kB / 1.216 GB, free: 152 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.2821, allocations: 0.6924 MB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.856e-05/0.2821, allocations: 11.98 kB / 1.217 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.955e-05/0.2821, allocations: 15.38 kB / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of SimCode: time 1.9e-07/0.2821, allocations: 0 / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of Templates: time 0.001995/0.2841, allocations: 432.6 kB / 1.218 GB, free: 14.98 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.makefile (rm -f Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & ./Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches