Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 166 kB / 24.87 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9286/0.9286, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.794/1.794, allocations: 359 MB / 0.6063 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 0.7883 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.974e-05, allocations: 3.312 kB / 0.7883 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002526/0.002546, allocations: 1.817 MB / 0.7901 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.003645, allocations: 0.8436 MB / 0.7909 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.187e-05/0.003737, allocations: 4 kB / 0.7909 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 9.789e-05/0.003835, allocations: 20.36 kB / 0.7909 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.004034, allocations: 36.42 kB / 0.7909 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003681/0.004402, allocations: 165.1 kB / 0.7911 GB, free: 9.371 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.00463, allocations: 207.5 kB / 0.7913 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.444e-05/0.004715, allocations: 31.2 kB / 0.7913 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.004871, allocations: 111.8 kB / 0.7914 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.004992, allocations: 63.84 kB / 0.7915 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.005018, allocations: 19.47 kB / 0.7915 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.005079, allocations: 39.86 kB / 0.7915 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.47e-05/0.005133, allocations: 31.84 kB / 0.7916 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.005184, allocations: 51.91 kB / 0.7916 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.005348, allocations: 139.6 kB / 0.7918 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00535, allocations: 0 / 0.7918 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.71e-07/0.005351, allocations: 0 / 0.7918 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.005354, allocations: 0 / 0.7918 GB, free: 8.691 MB / 0.7448 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.000516/0.00587, allocations: 0.4942 MB / 0.7922 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.005901, allocations: 8.031 kB / 0.7922 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.005955, allocations: 21.44 kB / 0.7923 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.006157, allocations: 192.2 kB / 0.7925 GB, free: 7.914 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.006174, allocations: 8.375 kB / 0.7925 GB, free: 7.906 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.006199, allocations: 16.36 kB / 0.7925 GB, free: 7.891 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.667e-05/0.006285, allocations: 67.27 kB / 0.7925 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.006292, allocations: 192 / 0.7925 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.006299, allocations: 384 / 0.7925 GB, free: 7.82 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.006318, allocations: 8.906 kB / 0.7925 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.181e-05/0.00637, allocations: 27.97 kB / 0.7926 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003714/0.006742, allocations: 360.5 kB / 0.7929 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.091e-05/0.006833, allocations: 60.08 kB / 0.793 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.592e-05/0.006858, allocations: 15.88 kB / 0.793 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-06/0.006866, allocations: 8.828 kB / 0.793 GB, free: 7.309 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.612e-05/0.006962, allocations: 76.97 kB / 0.7931 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.006963, allocations: 1.094 kB / 0.7931 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of matching and sorting (n=9): time 0.0001768/0.00714, allocations: 97.52 kB / 0.7932 GB, free: 7.117 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.007169, allocations: 56.81 kB / 0.7932 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.007287, allocations: 214.5 kB / 0.7934 GB, free: 6.824 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.007307, allocations: 29.7 kB / 0.7935 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.503e-05/0.007382, allocations: 158.8 kB / 0.7936 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.007416, allocations: 36.42 kB / 0.7936 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.007471, allocations: 51.28 kB / 0.7937 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.007589, allocations: 0.4967 MB / 0.7942 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.1e-05/0.00765, allocations: 58.27 kB / 0.7942 GB, free: 5.965 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.558e-05/0.007716, allocations: 91.39 kB / 0.7943 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.928e-05/0.007805, allocations: 104.7 kB / 0.7944 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.007807, allocations: 0.7188 kB / 0.7944 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002067/0.008014, allocations: 198.8 kB / 0.7946 GB, free: 5.527 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.008042, allocations: 43.25 kB / 0.7946 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.008045, allocations: 3.938 kB / 0.7947 GB, free: 5.477 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.008053, allocations: 4 kB / 0.7947 GB, free: 5.473 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.586e-05/0.008139, allocations: 23.98 kB / 0.7947 GB, free: 5.449 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.008143, allocations: 4.625 kB / 0.7947 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.264e-05/0.008235, allocations: 16.7 kB / 0.7947 GB, free: 5.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.008252, allocations: 17.2 kB / 0.7947 GB, free: 5.414 MB / 0.7448 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 7.307e-05/0.008325, allocations: 164.5 kB / 0.7949 GB, free: 5.242 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.008342, allocations: 16.47 kB / 0.7949 GB, free: 5.227 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.008367, allocations: 21.39 kB / 0.7949 GB, free: 5.207 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.008369, allocations: 4.625 kB / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.008372, allocations: 0 / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.008375, allocations: 1.062 kB / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.008477, allocations: 137.1 kB / 0.795 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.008479, allocations: 0 / 0.795 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.008518, allocations: 13.03 kB / 0.7951 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.008519, allocations: 0 / 0.7951 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.008531, allocations: 7.984 kB / 0.7951 GB, free: 5.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.008534, allocations: 4.844 kB / 0.7951 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.008535, allocations: 0 / 0.7951 GB, free: 5.02 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.008683, allocations: 142.9 kB / 0.7952 GB, free: 4.859 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/0.008715, allocations: 23.83 kB / 0.7952 GB, free: 4.836 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.008729, allocations: 4 kB / 0.7952 GB, free: 4.832 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.124e-05/0.00876, allocations: 7.984 kB / 0.7952 GB, free: 4.824 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.051e-05/0.008791, allocations: 0 / 0.7952 GB, free: 4.824 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.008796, allocations: 10.77 kB / 0.7953 GB, free: 4.816 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.466e-05/0.008861, allocations: 156.8 kB / 0.7954 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.008861, allocations: 0 / 0.7954 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001569/0.009018, allocations: 32 kB / 0.7954 GB, free: 4.633 MB / 0.7448 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 9.427e-05/0.009112, allocations: 103.2 kB / 0.7955 GB, free: 4.523 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.00928, allocations: 166.3 kB / 0.7957 GB, free: 4.34 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.009281, allocations: 0 / 0.7957 GB, free: 4.34 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.476e-05/0.009316, allocations: 27.67 kB / 0.7957 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001616/0.009478, allocations: 24.53 kB / 0.7957 GB, free: 4.285 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.009819, allocations: 270 kB / 0.796 GB, free: 3.992 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.176e-05/0.009861, allocations: 71.83 kB / 0.7961 GB, free: 3.902 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.057e-05/0.009901, allocations: 14.44 kB / 0.7961 GB, free: 3.887 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.895e-05/0.01, allocations: 98.17 kB / 0.7962 GB, free: 3.789 MB / 0.7448 GB Notification: Performance of SimCode: time 9.32e-07/0.01, allocations: 1 kB / 0.7962 GB, free: 3.789 MB / 0.7448 GB Notification: Performance of Templates: time 0.003978/0.01398, allocations: 2.37 MB / 0.7985 GB, free: 1.473 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0891996547579765]