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.008169/0.008169, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001688/0.001688, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.455/1.455, 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.964/2.964, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 1.054 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3499, allocations: 157.4 MB / 1.208 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002811/0.3528, allocations: 1.777 MB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3542, allocations: 0.8265 MB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.986e-05/0.3543, allocations: 4 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.3545, allocations: 23.73 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.3548, allocations: 39.72 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.3552, allocations: 159.2 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002752/0.3555, allocations: 215.6 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3557, allocations: 45.38 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.3558, allocations: 83.75 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.356, allocations: 83.61 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.356, allocations: 16 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.664e-05/0.3561, allocations: 31.98 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.503e-05/0.3562, allocations: 35.89 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.312e-05/0.3563, allocations: 71.66 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.3566, allocations: 211.3 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3566, allocations: 0 / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3566, allocations: 0 / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3566, allocations: 4 kB / 1.211 GB, free: 6.082 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.0007676/0.3574, allocations: 468.6 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3574, allocations: 8.031 kB / 1.212 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.233e-05/0.3575, allocations: 16.75 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.3578, allocations: 248.7 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3579, allocations: 4.375 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.3579, allocations: 16.38 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.3581, allocations: 93.91 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.3581, allocations: 0 / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.3581, allocations: 4 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.3581, allocations: 4 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.3583, allocations: 51.97 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00061/0.3589, allocations: 440.5 kB / 1.213 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.3591, allocations: 90.56 kB / 1.213 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.08e-05/0.3591, allocations: 28.86 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.3591, allocations: 0 / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/0.3593, allocations: 83.44 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.3593, allocations: 0 / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002751/0.3596, allocations: 137.8 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.3596, allocations: 55.39 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.3598, allocations: 184.1 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.3598, allocations: 33.73 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.261e-05/0.3599, allocations: 112 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.36, allocations: 27.56 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-05/0.36, allocations: 49.62 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3601, allocations: 326.8 kB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.3603, allocations: 55.97 kB / 1.214 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.3604, allocations: 73.05 kB / 1.214 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.3606, allocations: 132.2 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3606, allocations: 0 / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003164/0.3609, allocations: 215.1 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.3609, allocations: 33.7 kB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3609, allocations: 0 / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.361, allocations: 4 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3611, allocations: 23.98 kB / 1.214 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3611, allocations: 11.92 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.3614, allocations: 23.97 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3614, allocations: 8 kB / 1.214 GB, free: 2.812 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.0001277/0.3615, allocations: 137.8 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.3616, allocations: 15.81 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.831e-05/0.3616, allocations: 13.34 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3616, allocations: 4 kB / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3616, allocations: 3.938 kB / 1.214 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3616, allocations: 3.984 kB / 1.214 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.3618, allocations: 225.6 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3618, allocations: 0 / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.909e-05/0.3619, allocations: 12 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3619, allocations: 4 kB / 1.215 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.3619, allocations: 11.98 kB / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.362, allocations: 0 / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.362, allocations: 3.938 kB / 1.215 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002642/0.3622, allocations: 164.8 kB / 1.215 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.3623, allocations: 101 kB / 1.215 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.3623, allocations: 0 / 1.215 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.3624, allocations: 8.188 kB / 1.215 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.3625, allocations: 15.98 kB / 1.215 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.3625, allocations: 3.938 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001403/0.3626, allocations: 136.1 kB / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3627, allocations: 0 / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002341/0.3629, allocations: 35.98 kB / 1.215 GB, free: 1.832 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.00014/0.363, allocations: 99.25 kB / 1.215 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.3633, allocations: 171.3 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3633, allocations: 4.125 kB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.598e-05/0.3634, allocations: 43.92 kB / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.3637, allocations: 30.03 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005182/0.3642, allocations: 289.2 kB / 1.216 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.3645, allocations: 0.7197 MB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.956e-05/0.3646, allocations: 12.88 kB / 1.216 GB, free: 420 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.3646, allocations: 15.44 kB / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.3646, allocations: 0 / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of Templates: time 0.004889/0.3695, allocations: 1.979 MB / 1.218 GB, free: 14.43 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