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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001034/0.001034, allocations: 108 kB / 15.61 MB, free: 152 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.00101/0.00101, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.301/1.301, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.464/2.464, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 61.17 kB / 0.8992 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.32, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00318/0.3232, allocations: 1.774 MB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.3247, allocations: 0.842 MB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.3248, allocations: 0 / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.325, allocations: 19.8 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.3253, allocations: 35.78 kB / 1.056 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.3258, allocations: 162.6 kB / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.3262, allocations: 219.5 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3263, allocations: 41.42 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.3265, allocations: 79.81 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.3266, allocations: 79.61 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.3267, allocations: 19.98 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.484e-05/0.3268, allocations: 27.98 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.772e-05/0.3269, allocations: 35.92 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.327, allocations: 71.64 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.3272, allocations: 199.6 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3273, allocations: 4 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3273, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3273, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 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.0008418/0.3281, allocations: 476.5 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3282, allocations: 12.62 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.502e-05/0.3282, allocations: 42.73 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/0.3283, allocations: 16.84 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.3287, allocations: 241.3 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.3287, allocations: 12.31 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.3287, allocations: 8.375 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.3289, allocations: 91.69 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.3289, allocations: 4 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.3289, allocations: 0 / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.329, allocations: 4 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.3291, allocations: 55.97 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.3297, allocations: 452.4 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.3299, allocations: 82.62 kB / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.804e-05/0.33, allocations: 28.86 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.33, allocations: 0 / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001659/0.3302, allocations: 91.31 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.194e-06/0.3302, allocations: 0 / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003037/0.3305, allocations: 133.4 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.3305, allocations: 59.34 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.3307, allocations: 179.3 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.3308, allocations: 33.7 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.94e-05/0.3309, allocations: 104 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.3309, allocations: 27.7 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.986e-05/0.331, allocations: 46.06 kB / 1.059 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.3311, allocations: 322.8 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.3312, allocations: 51.97 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.3313, allocations: 70.55 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.3315, allocations: 140.1 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3316, allocations: 0 / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003409/0.3319, allocations: 207.4 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.332, allocations: 33.7 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.332, allocations: 0 / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.332, allocations: 4 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3321, allocations: 27.98 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.3322, allocations: 11.92 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.3324, allocations: 31.88 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3325, allocations: 8 kB / 1.059 GB, free: 1.352 MB / 0.8106 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.0001055/0.3326, allocations: 127.4 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.3326, allocations: 15.91 kB / 1.06 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.827e-05/0.3326, allocations: 17.41 kB / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3326, allocations: 0 / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3327, allocations: 7.938 kB / 1.06 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3327, allocations: 3.984 kB / 1.06 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.3328, allocations: 225.6 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3329, allocations: 3.938 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.3329, allocations: 11.98 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3329, allocations: 0 / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.333, allocations: 4 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.333, allocations: 0 / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.333, allocations: 3.938 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.3333, allocations: 180.8 kB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.705e-05/0.3333, allocations: 100.8 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.3334, allocations: 0 / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.507e-05/0.3334, allocations: 11.92 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.082e-05/0.3335, allocations: 15.92 kB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.3335, allocations: 4 kB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001257/0.3336, allocations: 128.9 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3337, allocations: 4.25 kB / 1.06 GB, free: 416 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002338/0.3339, allocations: 32 kB / 1.06 GB, free: 384 kB / 0.8106 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.0005178/0.3344, allocations: 0.702 MB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.3347, allocations: 187.2 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3347, allocations: 4.188 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.049e-05/0.3348, allocations: 39.98 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.3351, allocations: 27.92 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.3372, allocations: 1.899 MB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.3375, allocations: 0.7119 MB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.487e-05/0.3375, allocations: 16.88 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.3376, allocations: 35.42 kB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3376, allocations: 480 / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.31/1.648, allocations: 3.592 MB / 1.067 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/12.54, allocations: 10.88 kB / 1.067 GB, free: 9.133 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 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.mat","/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