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: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009054/0.009054, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001949/0.001949, allocations: 199 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.978/2.978, allocations: 461.8 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 59.91 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.419, allocations: 157.4 MB / 1.208 GB, free: 9.734 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003395/0.4225, allocations: 1.772 MB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.4241, allocations: 0.8265 MB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.4243, allocations: 4 kB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.4245, allocations: 15.81 kB / 1.21 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.4248, allocations: 47.7 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005893/0.4254, allocations: 151.8 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.4258, allocations: 223.5 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.4259, allocations: 41.33 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.4261, allocations: 79.8 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.4264, allocations: 91.66 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.4264, allocations: 16 kB / 1.211 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.835e-05/0.4265, allocations: 27.98 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.122e-05/0.4266, allocations: 35.86 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.4267, allocations: 67.7 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.427, allocations: 211.3 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.427, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.689e-06/0.427, allocations: 0 / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.427, allocations: 3.938 kB / 1.211 GB, free: 6.117 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.0008931/0.4279, allocations: 476.5 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.428, allocations: 8.031 kB / 1.212 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.019e-05/0.4281, allocations: 16.75 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.4284, allocations: 244.7 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.4284, allocations: 8.375 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.4285, allocations: 8.375 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.4287, allocations: 93.91 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.4287, allocations: 8 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.4287, allocations: 0 / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.4288, allocations: 8 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.4289, allocations: 51.97 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008397/0.4298, allocations: 436.5 kB / 1.213 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.4299, allocations: 90.52 kB / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.053e-05/0.43, allocations: 36.83 kB / 1.213 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.43, allocations: 0 / 1.213 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001483/0.4302, allocations: 87.28 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.4302, allocations: 0 / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0003498/0.4306, allocations: 133.5 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.4306, allocations: 51.41 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.4308, allocations: 188.1 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.4309, allocations: 29.7 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.431, allocations: 108 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.431, allocations: 27.72 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.4311, allocations: 45.62 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4312, allocations: 326.8 kB / 1.214 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.4313, allocations: 47.98 kB / 1.214 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.4315, allocations: 78.53 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.4317, allocations: 144.2 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.4317, allocations: 0 / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003448/0.432, allocations: 207.1 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.4321, allocations: 37.69 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.4321, allocations: 0 / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4321, allocations: 64 / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.4323, allocations: 27.98 kB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4323, allocations: 3.938 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.4325, allocations: 35.95 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.4326, allocations: 8 kB / 1.214 GB, free: 2.836 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.0001172/0.4327, allocations: 129.8 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.4327, allocations: 23.78 kB / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.4328, allocations: 13.88 kB / 1.214 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4328, allocations: 4 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.4328, allocations: 3.938 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4328, allocations: 0 / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.433, allocations: 225.6 kB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.433, allocations: 3.938 kB / 1.215 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.022e-05/0.4331, allocations: 8 kB / 1.215 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.4331, allocations: 0 / 1.215 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.4331, allocations: 4 kB / 1.215 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.4332, allocations: 3.984 kB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4332, allocations: 11.88 kB / 1.215 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.4334, allocations: 168.8 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.4335, allocations: 101 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.4336, allocations: 3.984 kB / 1.215 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.006e-05/0.4337, allocations: 8 kB / 1.215 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/0.4337, allocations: 11.92 kB / 1.215 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.4337, allocations: 0 / 1.215 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001514/0.4339, allocations: 136.2 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4339, allocations: 0 / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002527/0.4342, allocations: 32 kB / 1.215 GB, free: 1.863 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.0001574/0.4343, allocations: 108.7 kB / 1.215 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.4346, allocations: 171.3 kB / 1.215 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4347, allocations: 0 / 1.215 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.85e-05/0.4347, allocations: 39.92 kB / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.435, allocations: 32.58 kB / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005879/0.4356, allocations: 297.1 kB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.4359, allocations: 0.7158 MB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.964e-05/0.436, allocations: 20.88 kB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.762e-05/0.4361, allocations: 19.42 kB / 1.216 GB, free: 416 kB / 0.9669 GB Notification: Performance of SimCode: time 3.91e-07/0.4361, allocations: 0 / 1.216 GB, free: 416 kB / 0.9669 GB Notification: Performance of Templates: time 0.005582/0.4417, allocations: 1.97 MB / 1.218 GB, free: 14.45 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (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 & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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