Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.005165/0.005165, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001525/0.001525, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.951/2.951, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 64.11 kB / 1.083 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2816, allocations: 162.2 MB / 1.241 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002993/0.2847, allocations: 1.766 MB / 1.243 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.286, allocations: 0.6856 MB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.827e-05/0.2861, allocations: 4 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2862, allocations: 31.67 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.759e-05/0.2863, allocations: 19.75 kB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007219/0.287, allocations: 259.2 kB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005069/0.2876, allocations: 411.4 kB / 1.245 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003267/0.2879, allocations: 214.9 kB / 1.245 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.2881, allocations: 139.6 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.2883, allocations: 135.5 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.482e-05/0.2883, allocations: 36 kB / 1.245 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.2885, allocations: 63.97 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.2886, allocations: 75.81 kB / 1.245 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.2887, allocations: 139.4 kB / 1.245 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004757/0.2892, allocations: 422.5 kB / 1.246 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2892, allocations: 4 kB / 1.246 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2892, allocations: 0 / 1.246 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.585e-06/0.2893, allocations: 4 kB / 1.246 GB, free: 5.871 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000847/0.2901, allocations: 0.5526 MB / 1.246 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2901, allocations: 15.97 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.57e-05/0.2902, allocations: 62.72 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.343e-05/0.2903, allocations: 28.75 kB / 1.246 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.2907, allocations: 260.1 kB / 1.247 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.2907, allocations: 32.94 kB / 1.247 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.2908, allocations: 28.38 kB / 1.247 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.2913, allocations: 276.2 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2913, allocations: 3.938 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.2913, allocations: 15.98 kB / 1.247 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2913, allocations: 4 kB / 1.247 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003655/0.2917, allocations: 182.2 kB / 1.247 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.2929, allocations: 0.858 MB / 1.248 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.2933, allocations: 178.8 kB / 1.248 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.2934, allocations: 92.83 kB / 1.248 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.2935, allocations: 0 / 1.248 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.2937, allocations: 150.1 kB / 1.248 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.2937, allocations: 0 / 1.248 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0005344/0.2943, allocations: 276.2 kB / 1.249 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.2943, allocations: 59.41 kB / 1.249 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.2945, allocations: 166.9 kB / 1.249 GB, free: 2.449 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.2945, allocations: 37.7 kB / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2947, allocations: 136.9 kB / 1.249 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.2947, allocations: 79.42 kB / 1.249 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.2949, allocations: 85.67 kB / 1.249 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.295, allocations: 330.8 kB / 1.249 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.2953, allocations: 103.9 kB / 1.25 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.2955, allocations: 159 kB / 1.25 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.2959, allocations: 249.4 kB / 1.25 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2959, allocations: 4 kB / 1.25 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006224/0.2965, allocations: 360.7 kB / 1.25 GB, free: 0.8438 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.2966, allocations: 37.69 kB / 1.25 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2966, allocations: 8 kB / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.2966, allocations: 4 kB / 1.25 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.2968, allocations: 31.92 kB / 1.25 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.2968, allocations: 0 / 1.25 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.297, allocations: 63.89 kB / 1.25 GB, free: 0.6953 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.2971, allocations: 16 kB / 1.25 GB, free: 0.6797 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: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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.0001745/0.2973, allocations: 170.2 kB / 1.251 GB, free: 0.5078 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.2973, allocations: 19.84 kB / 1.251 GB, free: 500 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.2977, allocations: 235.5 kB / 1.251 GB, free: 260 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2978, allocations: 4 kB / 1.251 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2978, allocations: 0 / 1.251 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.2978, allocations: 3.984 kB / 1.251 GB, free: 252 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5056/0.8033, allocations: 0.6308 MB / 1.251 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.8034, allocations: 0 / 1.251 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.8035, allocations: 18.52 kB / 1.251 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.8035, allocations: 1.812 kB / 1.252 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.8035, allocations: 6.344 kB / 1.252 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.8035, allocations: 1.812 kB / 1.252 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.8035, allocations: 1.406 kB / 1.252 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.8039, allocations: 321 kB / 1.252 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.06e-05/0.8039, allocations: 103.4 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.804, allocations: 6.781 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.8041, allocations: 9.156 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.292e-05/0.8042, allocations: 24.33 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.8042, allocations: 11.31 kB / 1.252 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.181e-05/0.8042, allocations: 103.7 kB / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8042, allocations: 0 / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003932/0.8046, allocations: 71.69 kB / 1.252 GB, free: 14.59 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: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005268/0.8052, allocations: 0.8654 MB / 1.253 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004738/0.8057, allocations: 307.5 kB / 1.253 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.8057, allocations: 0.7812 kB / 1.253 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.8058, allocations: 101.4 kB / 1.253 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.8062, allocations: 29.09 kB / 1.253 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.8086, allocations: 2.383 MB / 1.256 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.8087, allocations: 0.7484 MB / 1.256 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.431e-05/0.8088, allocations: 29.47 kB / 1.256 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.809, allocations: 69.14 kB / 1.257 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.809, allocations: 0 / 1.257 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.8351, allocations: 4.961 MB / 1.261 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.603, allocations: 10.5 kB / 1.261 GB, free: 11.07 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches