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.001351/0.001351, allocations: 100.4 kB / 16.27 MB, free: 5.969 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.001401/0.001402, allocations: 191.3 kB / 17.2 MB, free: 5.598 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.301/1.301, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.485/2.485, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 59.31 kB / 0.9088 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003108/0.3095, allocations: 1.757 MB / 1.066 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.311, allocations: 0.8416 MB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3111, allocations: 7.938 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.3113, allocations: 11.88 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.3116, allocations: 39.72 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004525/0.312, allocations: 156.7 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.3123, allocations: 219.5 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.3124, allocations: 37.42 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.3126, allocations: 83.75 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.3128, allocations: 71.69 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.914e-05/0.3128, allocations: 16 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.417e-05/0.3129, allocations: 35.98 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.772e-05/0.313, allocations: 35.84 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.3131, allocations: 79.64 kB / 1.068 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.3134, allocations: 199.7 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3134, allocations: 0 / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3134, allocations: 0 / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3134, allocations: 0 / 1.068 GB, free: 11.44 MB / 0.8419 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.0008196/0.3142, allocations: 474.4 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3143, allocations: 8.625 kB / 1.068 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.3143, allocations: 20.75 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.3147, allocations: 240.6 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3147, allocations: 12.38 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.3147, allocations: 12.38 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.3149, allocations: 96.14 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3149, allocations: 0 / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3149, allocations: 4 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.315, allocations: 8 kB / 1.069 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.3151, allocations: 55.97 kB / 1.069 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.3157, allocations: 444.5 kB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3159, allocations: 86.56 kB / 1.069 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.468e-05/0.316, allocations: 40.84 kB / 1.069 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.316, allocations: 0 / 1.069 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.3161, allocations: 79.38 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.3161, allocations: 0 / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9): time 0.0002851/0.3164, allocations: 137.7 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.3165, allocations: 51.41 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.3167, allocations: 187.4 kB / 1.07 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.3167, allocations: 37.64 kB / 1.07 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.422e-05/0.3168, allocations: 112.2 kB / 1.07 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.3168, allocations: 27.56 kB / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.3169, allocations: 45.69 kB / 1.07 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.317, allocations: 322.8 kB / 1.07 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3171, allocations: 51.97 kB / 1.07 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.3173, allocations: 72.92 kB / 1.07 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.3175, allocations: 132.2 kB / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3175, allocations: 0 / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003481/0.3178, allocations: 215.2 kB / 1.071 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.3179, allocations: 33.7 kB / 1.071 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.3179, allocations: 0 / 1.071 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3179, allocations: 0 / 1.071 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.3181, allocations: 32.05 kB / 1.071 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.3181, allocations: 3.938 kB / 1.071 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.3183, allocations: 35.86 kB / 1.071 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.3184, allocations: 8 kB / 1.071 GB, free: 8.156 MB / 0.8419 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.00012/0.3185, allocations: 133.8 kB / 1.071 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.3185, allocations: 7.906 kB / 1.071 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.734e-05/0.3186, allocations: 17.41 kB / 1.071 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.3186, allocations: 4 kB / 1.071 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3186, allocations: 3.938 kB / 1.071 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3186, allocations: 3.984 kB / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.3188, allocations: 229.5 kB / 1.071 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3188, allocations: 0 / 1.071 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.872e-05/0.3189, allocations: 8 kB / 1.071 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.3189, allocations: 3.984 kB / 1.071 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3189, allocations: 4 kB / 1.071 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3189, allocations: 4 kB / 1.071 GB, free: 7.688 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3189, allocations: 3.938 kB / 1.071 GB, free: 7.684 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.3192, allocations: 165 kB / 1.071 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.3193, allocations: 105 kB / 1.071 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.3194, allocations: 7.875 kB / 1.071 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.3194, allocations: 12 kB / 1.071 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.3195, allocations: 11.92 kB / 1.071 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3195, allocations: 3.938 kB / 1.071 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001622/0.3197, allocations: 136.9 kB / 1.071 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.31e-07/0.3197, allocations: 4.062 kB / 1.071 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002517/0.32, allocations: 32 kB / 1.072 GB, free: 7.18 MB / 0.8419 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.0001553/0.3201, allocations: 99.78 kB / 1.072 GB, free: 7.074 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003027/0.3204, allocations: 179.3 kB / 1.072 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3204, allocations: 0 / 1.072 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.878e-05/0.3205, allocations: 43.92 kB / 1.072 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.3208, allocations: 28.11 kB / 1.072 GB, free: 6.816 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005824/0.3214, allocations: 318.9 kB / 1.072 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.3217, allocations: 0.7158 MB / 1.073 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.3217, allocations: 15.44 kB / 1.073 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/0.3217, allocations: 0 / 1.073 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of Templates: time 0.003876/0.3256, allocations: 1.932 MB / 1.075 GB, free: 3.789 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/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