Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_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.008126/0.008126, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001678/0.001678, allocations: 195.2 kB / 16.67 MB, free: 5.934 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.519/2.519, allocations: 469.8 MB / 0.7425 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 67.89 kB / 1.065 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8247/0.8265, allocations: 159.1 MB / 1.22 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002861/0.8294, allocations: 1.766 MB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.8309, allocations: 0.8346 MB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.831, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.8311, allocations: 19.81 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002611/0.8314, allocations: 35.78 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004635/0.8319, allocations: 163 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002973/0.8322, allocations: 223.5 kB / 1.223 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.8323, allocations: 45.38 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.8325, allocations: 75.75 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.8326, allocations: 83.72 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.8327, allocations: 19.94 kB / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.201e-05/0.8328, allocations: 39.91 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.71e-05/0.8329, allocations: 31.86 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.833, allocations: 71.66 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003358/0.8333, allocations: 203.1 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.8334, allocations: 3.938 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.263e-06/0.8334, allocations: 3.938 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.8334, allocations: 0 / 1.224 GB, free: 14.46 MB / 0.9512 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.0007976/0.8342, allocations: 484.4 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.8342, allocations: 8.031 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.976e-05/0.8343, allocations: 38.75 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.971e-05/0.8343, allocations: 20.83 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.8347, allocations: 232.9 kB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.8347, allocations: 12.31 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.8347, allocations: 12.38 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.8349, allocations: 89.78 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.8349, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.8349, allocations: 4 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.8349, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.8351, allocations: 62.64 kB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00073/0.8358, allocations: 452.4 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.836, allocations: 86.62 kB / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.116e-05/0.8361, allocations: 28.8 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.8361, allocations: 7.984 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001423/0.8363, allocations: 79.38 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.8363, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0002855/0.8366, allocations: 133.5 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.8366, allocations: 63.34 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.8368, allocations: 175.7 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.8369, allocations: 29.7 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.077e-05/0.837, allocations: 112.1 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.837, allocations: 31.88 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.839e-05/0.8371, allocations: 41.64 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.8372, allocations: 322.8 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.8374, allocations: 55.97 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.8375, allocations: 81.23 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.8377, allocations: 128.2 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.8377, allocations: 0 / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003443/0.838, allocations: 211.1 kB / 1.227 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.8381, allocations: 41.77 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.8381, allocations: 0 / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.8381, allocations: 0 / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.8383, allocations: 27.97 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.8383, allocations: 3.938 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.8385, allocations: 31.91 kB / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.8385, allocations: 8 kB / 1.227 GB, free: 11.14 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: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001262/0.8387, allocations: 133.8 kB / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.8387, allocations: 15.84 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.8387, allocations: 17.41 kB / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.8387, allocations: 0 / 1.227 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.8388, allocations: 7.938 kB / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.8388, allocations: 3.984 kB / 1.227 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.839, allocations: 221.7 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.839, allocations: 0 / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.476e-05/0.8391, allocations: 16 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.8391, allocations: 3.984 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.8391, allocations: 7.938 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.8391, allocations: 4 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8391, allocations: 3.938 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.8394, allocations: 168.9 kB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.234e-05/0.8395, allocations: 97.08 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.8395, allocations: 4 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.295e-05/0.8396, allocations: 4 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.8396, allocations: 11.98 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.8396, allocations: 4.188 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001409/0.8398, allocations: 131.9 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8398, allocations: 3.938 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000225/0.84, allocations: 39.89 kB / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007316/0.8408, allocations: 0.7144 MB / 1.228 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003745/0.8411, allocations: 175.3 kB / 1.228 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8412, allocations: 0 / 1.228 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.8413, allocations: 35.98 kB / 1.228 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.8415, allocations: 30.42 kB / 1.228 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.844, allocations: 1.916 MB / 1.23 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.8443, allocations: 0.708 MB / 1.231 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.267e-05/0.8444, allocations: 21.34 kB / 1.231 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.8445, allocations: 35.53 kB / 1.231 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of SimCode: time 3.41e-07/0.8445, allocations: 0 / 1.231 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.8771, allocations: 3.644 MB / 1.235 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.24, allocations: 8.125 kB / 1.235 GB, free: 2.848 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches