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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001128/0.001128, allocations: 108 kB / 15.6 MB, free: 132 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.001534/0.001534, allocations: 199.3 kB / 16.54 MB, free: 6.672 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.912/2.912, allocations: 472.6 MB / 0.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 68.69 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.399, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004636/0.4037, allocations: 1.772 MB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001888/0.4056, allocations: 0.8338 MB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.4059, allocations: 4 kB / 1.071 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.4061, allocations: 19.8 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.4065, allocations: 35.78 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.4071, allocations: 159.2 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00037/0.4075, allocations: 215.5 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.4076, allocations: 41.42 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.4079, allocations: 79.75 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.4081, allocations: 71.73 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.4081, allocations: 23.94 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.4082, allocations: 43.91 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.086e-05/0.4083, allocations: 27.92 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.4084, allocations: 79.58 kB / 1.072 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.4088, allocations: 195.7 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4088, allocations: 0 / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4088, allocations: 0 / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.4088, allocations: 0 / 1.072 GB, free: 6.82 MB / 0.8262 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.0009975/0.4098, allocations: 476.5 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.4098, allocations: 11.97 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.271e-05/0.4099, allocations: 24.75 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.4103, allocations: 233.9 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.4103, allocations: 8.375 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.4104, allocations: 12.38 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.4106, allocations: 89.84 kB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.4106, allocations: 0 / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.4106, allocations: 11.98 kB / 1.073 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.4107, allocations: 11.92 kB / 1.073 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.4108, allocations: 55.97 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007002/0.4115, allocations: 436.5 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.4117, allocations: 86.56 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.817e-05/0.4118, allocations: 32.89 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.4118, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.4119, allocations: 87.31 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.4119, allocations: 0 / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003205/0.4123, allocations: 129.4 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.4123, allocations: 55.39 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.4125, allocations: 185.2 kB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.4126, allocations: 25.7 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.4127, allocations: 116 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.767e-05/0.4127, allocations: 31.55 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/0.4128, allocations: 42.08 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4129, allocations: 318.8 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.413, allocations: 55.97 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.4132, allocations: 73.92 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.4134, allocations: 136.1 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4134, allocations: 0 / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00035/0.4137, allocations: 207.1 kB / 1.075 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.4138, allocations: 41.69 kB / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.4138, allocations: 0 / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.4138, allocations: 4 kB / 1.075 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.414, allocations: 23.92 kB / 1.075 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.414, allocations: 11.92 kB / 1.075 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.4142, allocations: 31.94 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.4143, allocations: 15.98 kB / 1.075 GB, free: 3.535 MB / 0.8262 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.4144, allocations: 123.4 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.4144, allocations: 15.91 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.4145, allocations: 21.39 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4145, allocations: 0 / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4145, allocations: 3.938 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.4145, allocations: 4 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.4147, allocations: 229.6 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4147, allocations: 0 / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.927e-05/0.4148, allocations: 11.94 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.4148, allocations: 0 / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.4148, allocations: 8 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.4148, allocations: 0 / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4148, allocations: 3.938 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002699/0.4151, allocations: 169 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.477e-05/0.4152, allocations: 100.8 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.4152, allocations: 7.984 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.4153, allocations: 4 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.4154, allocations: 11.92 kB / 1.075 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.4154, allocations: 7.938 kB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001384/0.4155, allocations: 125.6 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4156, allocations: 192 / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002391/0.4158, allocations: 32 kB / 1.075 GB, free: 2.578 MB / 0.8262 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.0001571/0.416, allocations: 111.8 kB / 1.076 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003042/0.4163, allocations: 179.2 kB / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4163, allocations: 0 / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.4e-05/0.4164, allocations: 39.98 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.4166, allocations: 26.77 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.4172, allocations: 299.1 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.4175, allocations: 0.7158 MB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.669e-05/0.4176, allocations: 16.86 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.4176, allocations: 19.42 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.4176, allocations: 0 / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of Templates: time 0.005249/0.4229, allocations: 1.971 MB / 1.079 GB, free: 15.16 MB / 0.8419 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