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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_latest_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.005115/0.005115, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001174/0.001175, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.516/2.516, allocations: 469.4 MB / 0.7421 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.89 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7742/0.7754, allocations: 159.1 MB / 1.22 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002961/0.7784, allocations: 1.532 MB / 1.221 GB, free: 0.6875 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001442/0.7785, allocations: 35.84 kB / 1.221 GB, free: 0.6523 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.726e-05/0.7786, allocations: 4 kB / 1.221 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.7788, allocations: 3.938 kB / 1.221 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.461e-05/0.7788, allocations: 11.86 kB / 1.221 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001169/0.7789, allocations: 19.98 kB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.7791, allocations: 47.84 kB / 1.221 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.7792, allocations: 39.95 kB / 1.221 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.357e-05/0.7793, allocations: 19.92 kB / 1.221 GB, free: 0.5078 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.247e-05/0.7794, allocations: 31.84 kB / 1.221 GB, free: 488 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.7794, allocations: 4 kB / 1.221 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.7794, allocations: 4 kB / 1.221 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.967e-05/0.7794, allocations: 15.98 kB / 1.221 GB, free: 464 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.596e-05/0.7795, allocations: 27.81 kB / 1.221 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.7796, allocations: 66.41 kB / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.7797, allocations: 0 / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.744e-06/0.7797, allocations: 0 / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.7797, allocations: 0 / 1.222 GB, free: 372 kB / 0.9356 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.0004416/0.7801, allocations: 370.7 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.7802, allocations: 8.625 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.7802, allocations: 38.75 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.7803, allocations: 12.88 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.7804, allocations: 184.2 kB / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.7805, allocations: 12.38 kB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.7805, allocations: 4.375 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.7807, allocations: 100.7 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.7807, allocations: 3.938 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.7807, allocations: 4 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.7807, allocations: 0 / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.686e-05/0.7808, allocations: 43.92 kB / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.7814, allocations: 0.6363 MB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.143e-05/0.7815, allocations: 165.1 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.222e-05/0.7815, allocations: 84.12 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.7815, allocations: 83.28 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.7816, allocations: 113.8 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.7816, allocations: 0 / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=0): time 8.487e-05/0.7817, allocations: 37.59 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.7817, allocations: 126.7 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.7819, allocations: 166.4 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.7819, allocations: 29.7 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.782, allocations: 108.1 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-06/0.782, allocations: 0 / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.7821, allocations: 13.72 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.7822, allocations: 322.8 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.742e-05/0.7822, allocations: 4 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.407e-05/0.7822, allocations: 18.58 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.612e-05/0.7823, allocations: 38.45 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.7823, allocations: 0 / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000123/0.7824, allocations: 57.58 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.7824, allocations: 4 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.7824, allocations: 3.938 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.7825, allocations: 4 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.023e-05/0.7825, allocations: 8.094 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.7825, allocations: 3.938 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.058e-05/0.7826, allocations: 11.89 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.7826, allocations: 3.984 kB / 1.224 GB, free: 13.3 MB / 0.9512 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 9.477e-05/0.7827, allocations: 189.7 kB / 1.224 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.7828, allocations: 109 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.7828, allocations: 128.7 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.767e-05/0.7829, allocations: 184.3 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.677e-05/0.7829, allocations: 180.3 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.796e-05/0.783, allocations: 180.2 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.7832, allocations: 425.2 kB / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.289e-05/0.7833, allocations: 109.9 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.7833, allocations: 113 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.663e-05/0.7834, allocations: 176.3 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.116e-05/0.7834, allocations: 188.1 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.792e-05/0.7835, allocations: 180.3 kB / 1.226 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-05/0.7836, allocations: 180.2 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.7837, allocations: 308 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.7838, allocations: 198 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.04e-05/0.7839, allocations: 184.2 kB / 1.227 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.046e-05/0.7839, allocations: 108.9 kB / 1.227 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.784, allocations: 180.2 kB / 1.227 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.7841, allocations: 105 kB / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001111/0.7842, allocations: 128.9 kB / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.515e-06/0.7842, allocations: 0 / 1.228 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002164/0.7844, allocations: 7.938 kB / 1.228 GB, free: 9.594 MB / 0.9512 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.0003952/0.7848, allocations: 0.8165 MB / 1.228 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.022e-05/0.7849, allocations: 11.94 kB / 1.228 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.7849, allocations: 0 / 1.228 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.516e-06/0.7849, allocations: 0 / 1.228 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.7852, allocations: 463.6 kB / 1.229 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.7866, allocations: 1.648 MB / 1.231 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.7869, allocations: 0.6885 MB / 1.231 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.967e-05/0.7869, allocations: 4 kB / 1.231 GB, free: 5.828 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.557e-05/0.7869, allocations: 23.42 kB / 1.231 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of SimCode: time 1.002e-06/0.7869, allocations: 4 kB / 1.231 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.8055, allocations: 1.713 MB / 1.233 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/8.065, allocations: 9.984 kB / 1.233 GB, free: 4.195 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins1/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