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.001164/0.001164, allocations: 110.1 kB / 16.42 MB, free: 6.453 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.001268/0.001268, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.536/2.536, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7388/0.7401, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00271/0.7429, allocations: 1.768 MB / 1.21 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.7442, allocations: 0.8337 MB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.788e-05/0.7443, allocations: 3.938 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.7444, allocations: 15.88 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.7447, allocations: 43.7 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.7451, allocations: 155.3 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.7454, allocations: 219.6 kB / 1.211 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.7455, allocations: 45.39 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.7456, allocations: 87.67 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.7458, allocations: 71.73 kB / 1.212 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.7459, allocations: 20 kB / 1.212 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.912e-05/0.7459, allocations: 31.98 kB / 1.212 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.746, allocations: 31.84 kB / 1.212 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.621e-05/0.7461, allocations: 79.64 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.7464, allocations: 197.2 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.7464, allocations: 0 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7464, allocations: 0 / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.7464, allocations: 4 kB / 1.212 GB, free: 10.2 MB / 0.9356 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.0007176/0.7471, allocations: 480.5 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.7471, allocations: 8.031 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.642e-05/0.7472, allocations: 20.75 kB / 1.212 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.7475, allocations: 240.7 kB / 1.213 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.7476, allocations: 8.375 kB / 1.213 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.7476, allocations: 12.38 kB / 1.213 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.7478, allocations: 93.91 kB / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.7478, allocations: 0 / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.7478, allocations: 4 kB / 1.213 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.7478, allocations: 4 kB / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.7479, allocations: 63.89 kB / 1.213 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006001/0.7485, allocations: 448.5 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.7487, allocations: 82.53 kB / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.904e-05/0.7488, allocations: 28.89 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.7488, allocations: 160 / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.7489, allocations: 95.23 kB / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.7489, allocations: 0 / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0002766/0.7492, allocations: 141.4 kB / 1.214 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.7492, allocations: 55.41 kB / 1.214 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.7494, allocations: 179.3 kB / 1.214 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.7495, allocations: 29.7 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.7496, allocations: 108 kB / 1.214 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.7496, allocations: 27.7 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.7497, allocations: 45.69 kB / 1.214 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.7498, allocations: 326.8 kB / 1.214 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.7499, allocations: 47.98 kB / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.75, allocations: 74.53 kB / 1.214 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.7502, allocations: 132.2 kB / 1.215 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7502, allocations: 0 / 1.215 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003272/0.7505, allocations: 207.2 kB / 1.215 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.7506, allocations: 41.7 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.7506, allocations: 0 / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.7506, allocations: 4 kB / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.7508, allocations: 19.98 kB / 1.215 GB, free: 6.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.7508, allocations: 7.938 kB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.751, allocations: 43.73 kB / 1.215 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.7511, allocations: 8 kB / 1.215 GB, free: 6.906 MB / 0.9356 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.0001157/0.7512, allocations: 129.8 kB / 1.215 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.7512, allocations: 15.89 kB / 1.215 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.7512, allocations: 17.41 kB / 1.215 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.7513, allocations: 0 / 1.215 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7513, allocations: 0 / 1.215 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.7513, allocations: 100.8 kB / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.7514, allocations: 4 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.7514, allocations: 7.984 kB / 1.215 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.7515, allocations: 4.469 kB / 1.215 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003291/0.7518, allocations: 220.8 kB / 1.215 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003092/0.7521, allocations: 330.5 kB / 1.216 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.361e-05/0.7522, allocations: 40.02 kB / 1.216 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000134/0.7524, allocations: 131.9 kB / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of Backend: time 3.71e-07/0.7524, allocations: 0 / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005046/0.7529, allocations: 229.8 kB / 1.216 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006592/0.7535, allocations: 0.7207 MB / 1.217 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of Templates: time 0.004785/0.7583, allocations: 2.168 MB / 1.219 GB, free: 2.707 MB / 0.9356 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/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