Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_10_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_10_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.206/1.206, allocations: 222.9 MB / 240.2 MB, free: 4.207 MB / 190.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.263/2.263, allocations: 437 MB / 0.7104 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 67.89 kB / 0.8693 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.493/0.4942, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002272/0.4965, allocations: 1.532 MB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 9.004e-05/0.4966, allocations: 35.84 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.75e-05/0.4966, allocations: 0 / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.037e-05/0.4967, allocations: 7.922 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.648e-05/0.4968, allocations: 3.938 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 9.024e-05/0.4969, allocations: 23.97 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.724e-05/0.4969, allocations: 47.8 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.4971, allocations: 31.98 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.819e-05/0.4971, allocations: 19.92 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.409e-05/0.4972, allocations: 31.84 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.4972, allocations: 7.984 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.011e-05/0.4972, allocations: 4 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.4972, allocations: 23.98 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.504e-05/0.4973, allocations: 27.81 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.631e-05/0.4974, allocations: 54.06 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.4974, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4974, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.4974, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 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.0003094/0.4977, allocations: 363.3 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.4977, allocations: 8.031 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.4978, allocations: 38.75 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.344e-05/0.4978, allocations: 16.84 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.4979, allocations: 192.1 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.498, allocations: 8.375 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.498, allocations: 8.312 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.4981, allocations: 99.34 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.4981, allocations: 3.938 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.4981, allocations: 3.984 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.4981, allocations: 3.984 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.084e-05/0.4982, allocations: 47.92 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.4987, allocations: 0.6322 MB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.961e-05/0.4987, allocations: 181.1 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.34e-05/0.4988, allocations: 80.14 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4988, allocations: 79.27 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.4988, allocations: 105.8 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.4988, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 6.04e-05/0.4989, allocations: 37.55 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.499, allocations: 134.6 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.4991, allocations: 168.6 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.4991, allocations: 25.7 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.4992, allocations: 108 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-06/0.4992, allocations: 3.938 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.4992, allocations: 17.72 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.105e-05/0.4993, allocations: 318.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.4993, allocations: 8 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.572e-05/0.4993, allocations: 18.58 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.379e-05/0.4994, allocations: 30.52 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.4994, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.774e-05/0.4995, allocations: 61.56 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.4995, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.4995, allocations: 7.938 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.4995, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.806e-05/0.4996, allocations: 8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.4996, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.266e-05/0.4996, allocations: 7.906 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-06/0.4996, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 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 8.087e-05/0.4997, allocations: 197.1 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.4998, allocations: 116.9 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/0.4998, allocations: 112.8 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.102e-05/0.4999, allocations: 180.3 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.666e-05/0.4999, allocations: 188.1 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.071e-05/0.5, allocations: 176.3 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.5002, allocations: 433.1 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-05/0.5002, allocations: 101 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-05/0.5002, allocations: 101 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.516e-05/0.5003, allocations: 184.2 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.933e-05/0.5003, allocations: 188.2 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.178e-05/0.5004, allocations: 184.2 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.285e-05/0.5004, allocations: 184.3 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.5005, allocations: 307.7 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.491e-05/0.5006, allocations: 186.3 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.535e-05/0.5007, allocations: 188.1 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.532e-05/0.5007, allocations: 105 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.5008, allocations: 188.2 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.5008, allocations: 101 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.557e-05/0.5009, allocations: 128.9 kB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5009, allocations: 0 / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002043/0.5011, allocations: 8 kB / 1.025 GB, free: 9.836 MB / 0.7794 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.0003177/0.5015, allocations: 0.8261 MB / 1.026 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.403e-05/0.5015, allocations: 8 kB / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.5015, allocations: 0 / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.143e-06/0.5015, allocations: 7.938 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.5018, allocations: 459.9 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.503, allocations: 1.634 MB / 1.028 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.5032, allocations: 0.6924 MB / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.802e-05/0.5032, allocations: 7.984 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.411e-05/0.5033, allocations: 19.44 kB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of SimCode: time 1.312e-06/0.5033, allocations: 0 / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0843/0.5876, allocations: 1.659 MB / 1.031 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.209/8.797, allocations: 5.688 kB / 1.031 GB, free: 4.465 MB / 0.7794 GB (rm -f Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat --tempDir=temp_Buildings_10_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches