Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_TerminalUnits_Reheat_Subsequences_Validation_ActiveAirFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_TerminalUnits_Reheat_Subsequences_Validation_ActiveAirFlow",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.005348/0.005348, allocations: 101.9 kB / 15.73 MB, free: 6.449 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.001593/0.001593, allocations: 199.5 kB / 16.68 MB, free: 6.352 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.937/2.937, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.89 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2795, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow): time 0.002769/0.2823, allocations: 1.437 MB / 1.243 GB, free: 8.734 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2836, allocations: 1.092 MB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.947e-05/0.2837, allocations: 4 kB / 1.244 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 8.346e-05/0.2838, allocations: 35.53 kB / 1.244 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.284, allocations: 43.55 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.2843, allocations: 123.8 kB / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.2846, allocations: 340.6 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.285, allocations: 213.9 kB / 1.245 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.2852, allocations: 139.4 kB / 1.245 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.2854, allocations: 151.2 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.231e-05/0.2854, allocations: 36 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.2855, allocations: 40 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.264e-05/0.2856, allocations: 79.7 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.2857, allocations: 159.1 kB / 1.245 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004868/0.2862, allocations: 481.9 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2862, allocations: 4 kB / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2862, allocations: 0 / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.2863, allocations: 4 kB / 1.246 GB, free: 5.805 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.0008853/0.2871, allocations: 0.5926 MB / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2872, allocations: 8.031 kB / 1.246 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.608e-05/0.2873, allocations: 70.72 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.2873, allocations: 36.7 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005814/0.2879, allocations: 325.5 kB / 1.247 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.288, allocations: 33.38 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.288, allocations: 28.38 kB / 1.247 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005808/0.2886, allocations: 299 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2886, allocations: 7.875 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.2887, allocations: 16 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.2887, allocations: 8 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005742/0.2893, allocations: 239.9 kB / 1.247 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.2905, allocations: 0.8213 MB / 1.248 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005212/0.291, allocations: 243.4 kB / 1.248 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.2913, allocations: 117.3 kB / 1.248 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.2913, allocations: 4.234 kB / 1.248 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.2913, allocations: 38.81 kB / 1.249 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.402e-06/0.2913, allocations: 0 / 1.249 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0008034/0.2921, allocations: 309.8 kB / 1.249 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.2922, allocations: 55.41 kB / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.2924, allocations: 215.7 kB / 1.249 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.2924, allocations: 25.7 kB / 1.249 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.2926, allocations: 184.5 kB / 1.249 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.606e-05/0.2927, allocations: 87.27 kB / 1.249 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.736e-05/0.2928, allocations: 65.91 kB / 1.249 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2929, allocations: 334.8 kB / 1.25 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.2932, allocations: 80.52 kB / 1.25 GB, free: 1.387 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.2935, allocations: 143.9 kB / 1.25 GB, free: 1.223 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/0.2939, allocations: 222.9 kB / 1.25 GB, free: 0.9805 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2939, allocations: 0 / 1.25 GB, free: 0.9805 MB / 0.9981 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005862/0.2945, allocations: 269.3 kB / 1.25 GB, free: 0.7109 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.2946, allocations: 11.98 kB / 1.25 GB, free: 0.6992 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.2946, allocations: 0 / 1.25 GB, free: 0.6992 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.2946, allocations: 8.156 kB / 1.25 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.2948, allocations: 55.91 kB / 1.251 GB, free: 0.6367 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.2949, allocations: 7.984 kB / 1.251 GB, free: 0.6289 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.295, allocations: 27.83 kB / 1.251 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.295, allocations: 12 kB / 1.251 GB, free: 0.5898 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 (reaToInt2.y,actAirSet.or1.y,actAirSet.ifSetBac.y,actAirSet.ifWarUp.y,actAirSet.ifSetUp.y,actAirSet.ifCooDow.y,actAirSet.ifOcc.y,actAirSet.or2.y,actAirSet.or3.y,actAirSet.warUpMod.y,actAirSet.setBacMod.y,actAirSet.setUpMod.y,actAirSet.cooDowMod.y,actAirSet.occMod.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001655/0.2952, allocations: 162.8 kB / 1.251 GB, free: 432 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.912e-05/0.2953, allocations: 19.86 kB / 1.251 GB, free: 412 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005905/0.2959, allocations: 256.3 kB / 1.251 GB, free: 152 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2959, allocations: 4 kB / 1.251 GB, free: 148 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2959, allocations: 0 / 1.251 GB, free: 148 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.2959, allocations: 7.922 kB / 1.251 GB, free: 140 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4895/0.7855, allocations: 343.9 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.7855, allocations: 0.8125 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.7857, allocations: 39.34 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.7858, allocations: 1.75 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.7858, allocations: 11.3 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.7858, allocations: 1.094 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7858, allocations: 1.734 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005197/0.7863, allocations: 330.5 kB / 1.252 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.7864, allocations: 101.1 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.7864, allocations: 6.469 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.7865, allocations: 12.59 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.817e-05/0.7866, allocations: 31.27 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.7867, allocations: 9.984 kB / 1.252 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.19e-05/0.7868, allocations: 140.5 kB / 1.252 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7868, allocations: 0 / 1.252 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003206/0.7871, allocations: 57.69 kB / 1.252 GB, free: 14.63 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (actAirSet.or3.y,actAirSet.or2.y,actAirSet.ifOcc.y,actAirSet.ifCooDow.y,actAirSet.ifSetUp.y,actAirSet.ifWarUp.y,actAirSet.ifSetBac.y,actAirSet.or1.y,reaToInt2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.0006617/0.7878, allocations: 0.8835 MB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005226/0.7883, allocations: 218.4 kB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7883, allocations: 3.375 kB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.7886, allocations: 116.9 kB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.7889, allocations: 30.48 kB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.7915, allocations: 2.405 MB / 1.256 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.7917, allocations: 0.7644 MB / 1.256 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001297/0.7918, allocations: 34.86 kB / 1.256 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.7919, allocations: 102 kB / 1.256 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.792, allocations: 0 / 1.256 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.817, allocations: 4.077 MB / 1.26 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.666, allocations: 2.422 kB / 1.26 GB, free: 11.27 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_TerminalUnits_Reheat_Subsequences_Validation_ActiveAirFlow.fmu > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_ASHRAE_G36_TerminalUnits_Reheat_Subsequences_Validation_ActiveAirFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.TerminalUnits.Reheat.Subsequences.Validation.ActiveAirFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches