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.0064/0.0064, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.001254/0.001254, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.918/2.918, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.91 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3355, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003499/0.3391, allocations: 1.762 MB / 1.209 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001617/0.3407, allocations: 0.8342 MB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.3409, allocations: 3.938 kB / 1.21 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.3411, allocations: 19.86 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.3415, allocations: 39.7 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006879/0.3422, allocations: 162.2 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003799/0.3425, allocations: 219.5 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.3427, allocations: 45.39 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/0.3429, allocations: 83.75 kB / 1.21 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.3432, allocations: 75.72 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.615e-05/0.3432, allocations: 20 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-05/0.3433, allocations: 35.92 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.3434, allocations: 31.84 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3436, allocations: 79.66 kB / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.3439, allocations: 199.7 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3439, allocations: 3.938 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.675e-06/0.3439, allocations: 0 / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.3439, allocations: 0 / 1.211 GB, free: 6.539 MB / 0.9669 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.0009161/0.3449, allocations: 472.5 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.3449, allocations: 16.56 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.345, allocations: 34.75 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/0.345, allocations: 20.75 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.3454, allocations: 244.7 kB / 1.212 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.3455, allocations: 12.38 kB / 1.212 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.3455, allocations: 12.38 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.3457, allocations: 89.72 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3457, allocations: 0 / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.3457, allocations: 4 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.3458, allocations: 4 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.3459, allocations: 55.97 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00066/0.3466, allocations: 448.3 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.3468, allocations: 82.62 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.61e-05/0.3468, allocations: 29.02 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.3468, allocations: 7.984 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.347, allocations: 83.31 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.993e-06/0.347, allocations: 7.938 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.000307/0.3473, allocations: 129.5 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.3474, allocations: 55.34 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.3476, allocations: 183.2 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.3476, allocations: 29.7 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/0.3477, allocations: 112 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.644e-05/0.3478, allocations: 23.8 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3479, allocations: 45.69 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.348, allocations: 322.8 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.3481, allocations: 51.97 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3483, allocations: 74.55 kB / 1.213 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.3485, allocations: 140.2 kB / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3485, allocations: 0 / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003587/0.3488, allocations: 211.1 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.3489, allocations: 33.7 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3489, allocations: 0 / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3489, allocations: 4 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.3491, allocations: 27.92 kB / 1.214 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.3491, allocations: 8 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.3493, allocations: 31.95 kB / 1.214 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.3494, allocations: 11.98 kB / 1.214 GB, free: 3.203 MB / 0.9669 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.000115/0.3495, allocations: 129.8 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.3495, allocations: 15.81 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.511e-05/0.3496, allocations: 9.406 kB / 1.214 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3496, allocations: 4 kB / 1.214 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3496, allocations: 7.938 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3496, allocations: 0 / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.3498, allocations: 229.6 kB / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3498, allocations: 0 / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/0.3499, allocations: 11.94 kB / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3499, allocations: 3.938 kB / 1.214 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.35, allocations: 8.453 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.35, allocations: 0 / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.35, allocations: 7.938 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.3503, allocations: 176.8 kB / 1.214 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.3503, allocations: 101 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.3504, allocations: 0 / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.998e-05/0.3505, allocations: 8 kB / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.3505, allocations: 11.92 kB / 1.214 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3505, allocations: 0 / 1.214 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001399/0.3507, allocations: 128 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3507, allocations: 0 / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002427/0.3509, allocations: 32 kB / 1.215 GB, free: 2.238 MB / 0.9669 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.0005591/0.3515, allocations: 0.71 MB / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002776/0.3518, allocations: 167.3 kB / 1.215 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3518, allocations: 0 / 1.215 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.969e-05/0.3519, allocations: 43.92 kB / 1.215 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.3522, allocations: 44.64 kB / 1.216 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.3544, allocations: 1.898 MB / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.3547, allocations: 0.7158 MB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.674e-05/0.3548, allocations: 12.88 kB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.959e-05/0.3548, allocations: 39.42 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3548, allocations: 0 / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02342/0.3783, allocations: 3.656 MB / 1.222 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.107/8.485, allocations: 12.17 kB / 1.222 GB, free: 10.94 MB / 0.9825 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