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.001488/0.001488, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001817/0.001817, allocations: 191.4 kB / 16.25 MB, free: 6.637 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.848/2.848, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 70.16 kB / 0.8987 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3182, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003207/0.3214, allocations: 1.843 MB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.3229, allocations: 0.8221 MB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.323, allocations: 3.938 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.3232, allocations: 11.94 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.3235, allocations: 27.78 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.324, allocations: 147.2 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.3243, allocations: 219.5 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.3245, allocations: 41.36 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.3246, allocations: 79.81 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.3248, allocations: 83.61 kB / 1.056 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.002e-05/0.3249, allocations: 16 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.521e-05/0.325, allocations: 31.98 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.442e-05/0.325, allocations: 31.92 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.401e-05/0.3251, allocations: 71.64 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.3254, allocations: 203.7 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3254, allocations: 0 / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.635e-06/0.3254, allocations: 4 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.3254, allocations: 3.938 kB / 1.056 GB, free: 5.012 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.000853/0.3263, allocations: 468.5 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3264, allocations: 12.62 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.3264, allocations: 38.75 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.293e-05/0.3265, allocations: 16.84 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.3268, allocations: 237.3 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3268, allocations: 20.3 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.3269, allocations: 16.3 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.327, allocations: 89.77 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3271, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3271, allocations: 4 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.3271, allocations: 8 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.3272, allocations: 55.97 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006173/0.3279, allocations: 440.4 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.328, allocations: 86.58 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.979e-05/0.3281, allocations: 28.89 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.3281, allocations: 3.938 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.3282, allocations: 91.38 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3282, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003014/0.3285, allocations: 133.7 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.3286, allocations: 55.34 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.3288, allocations: 175.5 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3288, allocations: 37.62 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.3289, allocations: 108.2 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.3289, allocations: 31.69 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.329, allocations: 41.7 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.3291, allocations: 326.8 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.3292, allocations: 47.98 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.3294, allocations: 85.72 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.3295, allocations: 124.3 kB / 1.059 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3295, allocations: 0 / 1.059 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003219/0.3299, allocations: 207.1 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.3299, allocations: 43.03 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3299, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3299, allocations: 8.062 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.3301, allocations: 19.98 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.3301, allocations: 7.938 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.3304, allocations: 35.86 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.3304, allocations: 8 kB / 1.059 GB, free: 1.691 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.0001067/0.3305, allocations: 131.4 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.3305, allocations: 11.91 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.67e-05/0.3306, allocations: 13.41 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3306, allocations: 7.938 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.3306, allocations: 7.938 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.3306, allocations: 0 / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.3308, allocations: 229.6 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3308, allocations: 0 / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.577e-05/0.3309, allocations: 8 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3309, allocations: 0 / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.3309, allocations: 4 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3309, allocations: 0 / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3309, allocations: 11.92 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/0.3312, allocations: 168.9 kB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.3312, allocations: 101 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.3313, allocations: 7.922 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.263e-05/0.3314, allocations: 11.94 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/0.3314, allocations: 11.92 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3314, allocations: 0 / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001276/0.3315, allocations: 133 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3316, allocations: 0 / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002326/0.3318, allocations: 36 kB / 1.06 GB, free: 0.7188 MB / 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.0005052/0.3323, allocations: 0.7098 MB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003164/0.3326, allocations: 171.4 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3326, allocations: 4.062 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.102e-05/0.3327, allocations: 43.92 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.333, allocations: 39.94 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.3356, allocations: 1.922 MB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3359, allocations: 0.7119 MB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.326e-05/0.3359, allocations: 20.81 kB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.336, allocations: 35.42 kB / 1.063 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.336, allocations: 0 / 1.063 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4095/0.7455, allocations: 3.491 MB / 1.067 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003146/0.7459, allocations: 228.5 kB / 1.067 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/3.284, allocations: 0 / 1.067 GB, free: 9.34 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