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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001103/0.001104, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001258/0.001259, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.97/2.97, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003544, allocations: 8.812 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4201, allocations: 159.6 MB / 1.058 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002027/0.4222, allocations: 1.237 MB / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001231/0.4224, allocations: 31.84 kB / 1.059 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.997e-05/0.4224, allocations: 0 / 1.059 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.4226, allocations: 11.94 kB / 1.059 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.538e-05/0.4226, allocations: 3.938 kB / 1.059 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000116/0.4227, allocations: 19.97 kB / 1.059 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.396e-05/0.4228, allocations: 35.86 kB / 1.059 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.423, allocations: 43.8 kB / 1.059 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.019e-05/0.423, allocations: 15.92 kB / 1.059 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.397e-05/0.4231, allocations: 15.92 kB / 1.059 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.4232, allocations: 4 kB / 1.059 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.047e-06/0.4232, allocations: 0 / 1.059 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.4232, allocations: 15.92 kB / 1.059 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.555e-05/0.4233, allocations: 33.7 kB / 1.059 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.176e-05/0.4234, allocations: 44.2 kB / 1.059 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4234, allocations: 0 / 1.059 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4234, allocations: 0 / 1.059 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.4234, allocations: 0 / 1.059 GB, free: 3.801 MB / 0.8106 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.0004413/0.4238, allocations: 355.1 kB / 1.06 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.4239, allocations: 12.03 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.4239, allocations: 11.89 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.4241, allocations: 179 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4242, allocations: 0 / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.4242, allocations: 16 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.4244, allocations: 106.5 kB / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.4244, allocations: 0 / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4244, allocations: 0 / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.4244, allocations: 4 kB / 1.06 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.302e-05/0.4245, allocations: 35.98 kB / 1.06 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006729/0.4252, allocations: 0.6517 MB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.87e-05/0.4253, allocations: 169.1 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.4253, allocations: 88.09 kB / 1.061 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.683e-05/0.4254, allocations: 75.28 kB / 1.061 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.736e-05/0.4255, allocations: 105.8 kB / 1.061 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.72e-07/0.4255, allocations: 0 / 1.061 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 7.891e-05/0.4255, allocations: 37.55 kB / 1.061 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.254e-05/0.4256, allocations: 130.7 kB / 1.061 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.4258, allocations: 168.6 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.4258, allocations: 29.7 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.4259, allocations: 100 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.4259, allocations: 4 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/0.4259, allocations: 0 / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4261, allocations: 318.8 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.469e-05/0.4261, allocations: 8 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.166e-05/0.4261, allocations: 18.58 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.262e-05/0.4261, allocations: 15.94 kB / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4262, allocations: 0 / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001326/0.4263, allocations: 61.48 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.4263, allocations: 5.875 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4263, allocations: 7.938 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.4263, allocations: 0 / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.161e-05/0.4264, allocations: 7.938 kB / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.4264, allocations: 0 / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.509e-05/0.4265, allocations: 15.94 kB / 1.062 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.4265, allocations: 0 / 1.062 GB, free: 0.8594 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.4266, allocations: 197.1 kB / 1.062 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.582e-05/0.4267, allocations: 112.8 kB / 1.062 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.464e-05/0.4267, allocations: 116.8 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.492e-05/0.4268, allocations: 180.3 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.582e-05/0.4269, allocations: 184.2 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.951e-05/0.427, allocations: 176.3 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.4273, allocations: 425.2 kB / 1.063 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.954e-05/0.4274, allocations: 109 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.4274, allocations: 105 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.071e-05/0.4275, allocations: 184.5 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.943e-05/0.4276, allocations: 188.2 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.859e-05/0.4276, allocations: 180.2 kB / 1.064 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.365e-05/0.4277, allocations: 184.2 kB / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.4279, allocations: 315.7 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.12e-05/0.428, allocations: 186 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.719e-05/0.428, allocations: 180.3 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.4282, allocations: 112.9 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.565e-05/0.4282, allocations: 176.3 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.4283, allocations: 112.9 kB / 1.065 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001018/0.4284, allocations: 130.1 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4284, allocations: 4 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002605/0.4287, allocations: 8 kB / 1.066 GB, free: 13.15 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001394/0.4288, allocations: 170.5 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.555e-05/0.4289, allocations: 4 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4289, allocations: 0 / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.262e-06/0.4289, allocations: 3.938 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.4294, allocations: 0.5304 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004014/0.4298, allocations: 242.1 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.4301, allocations: 0.6926 MB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.224e-05/0.4301, allocations: 7.984 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.523e-05/0.4301, allocations: 11.44 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.4301, allocations: 0 / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of Templates: time 0.002567/0.4327, allocations: 387.9 kB / 1.068 GB, free: 11.04 MB / 0.8262 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