Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.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.001048/0.001048, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001029/0.001029, allocations: 173 kB / 23.02 MB, free: 1.547 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.9372/0.9372, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.045/2.045, allocations: 429.5 MB / 0.6733 GB, free: 3.98 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.835e-06/2.835e-06, allocations: 0 / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.949e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002022/0.002051, allocations: 1.028 MB / 0.8792 GB, free: 5.289 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.003915, allocations: 1.314 MB / 0.8804 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.004059, allocations: 0 / 0.8804 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.004223, allocations: 23.67 kB / 0.8805 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.004325, allocations: 19.81 kB / 0.8805 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007025/0.005027, allocations: 172.4 kB / 0.8807 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.005386, allocations: 236 kB / 0.8809 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.005595, allocations: 62.05 kB / 0.8809 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.00593, allocations: 131.7 kB / 0.8811 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.006091, allocations: 71.81 kB / 0.8811 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.006129, allocations: 21.12 kB / 0.8812 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.622e-05/0.006225, allocations: 39.94 kB / 0.8812 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.18e-05/0.006267, allocations: 35.83 kB / 0.8812 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.554e-05/0.006352, allocations: 64.86 kB / 0.8813 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.006644, allocations: 175.4 kB / 0.8815 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.006651, allocations: 3.984 kB / 0.8815 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.713e-06/0.006653, allocations: 1.031 kB / 0.8815 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.006661, allocations: 0 / 0.8815 GB, free: 2.926 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008131/0.007475, allocations: 0.5138 MB / 0.882 GB, free: 2.371 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.007518, allocations: 12.56 kB / 0.882 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.007698, allocations: 37.55 kB / 0.882 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.008229, allocations: 172.3 kB / 0.8822 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.008253, allocations: 17.27 kB / 0.8822 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.008278, allocations: 16.38 kB / 0.8822 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.008471, allocations: 115.8 kB / 0.8823 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.008479, allocations: 192 / 0.8823 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.008495, allocations: 13.22 kB / 0.8823 GB, free: 1.965 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.008504, allocations: 0 / 0.8823 GB, free: 1.965 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.87e-05/0.008583, allocations: 39.97 kB / 0.8824 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.009133, allocations: 460.2 kB / 0.8828 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.009353, allocations: 80.62 kB / 0.8829 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.862e-05/0.009401, allocations: 23.67 kB / 0.8829 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.009428, allocations: 11.94 kB / 0.8829 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001417/0.00957, allocations: 77.97 kB / 0.883 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.009572, allocations: 0 / 0.883 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.000261/0.009833, allocations: 118.4 kB / 0.8831 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.00987, allocations: 55.41 kB / 0.8832 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.009993, allocations: 212.5 kB / 0.8834 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.01002, allocations: 29.7 kB / 0.8834 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.0101, allocations: 179.1 kB / 0.8836 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.01013, allocations: 31.73 kB / 0.8836 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.01019, allocations: 47.34 kB / 0.8836 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.01032, allocations: 0.4923 MB / 0.8841 GB, free: 12 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.01042, allocations: 65.69 kB / 0.8842 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.804e-05/0.01052, allocations: 138.1 kB / 0.8843 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.01063, allocations: 109.3 kB / 0.8844 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01063, allocations: 0 / 0.8844 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002471/0.01088, allocations: 232.9 kB / 0.8846 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.01091, allocations: 40.19 kB / 0.8847 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.01092, allocations: 0 / 0.8847 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.01093, allocations: 0 / 0.8847 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.778e-05/0.011, allocations: 19.94 kB / 0.8847 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.01101, allocations: 7.922 kB / 0.8847 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.742e-05/0.0111, allocations: 23.98 kB / 0.8847 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.01112, allocations: 7.984 kB / 0.8847 GB, free: 15.31 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,enaSig.y,$PRE.enaSig.y,relCon.hys.y,$PRE.relCon.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * 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 9.166e-05/0.01121, allocations: 168.8 kB / 0.8849 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.214e-05/0.01123, allocations: 23.84 kB / 0.8849 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.939e-05/0.01126, allocations: 8.781 kB / 0.8849 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.01126, allocations: 4 kB / 0.8849 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.01127, allocations: 3.984 kB / 0.8849 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.01127, allocations: 0 / 0.8849 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.01139, allocations: 168.5 kB / 0.8851 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.01139, allocations: 0 / 0.8851 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.01143, allocations: 15.98 kB / 0.8851 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.01144, allocations: 7.875 kB / 0.8851 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.01145, allocations: 8 kB / 0.8851 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.01145, allocations: 4 kB / 0.8851 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01145, allocations: 0 / 0.8851 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.01161, allocations: 136.2 kB / 0.8853 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.766e-05/0.01162, allocations: 15.88 kB / 0.8853 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.01165, allocations: 0 / 0.8853 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.017e-05/0.01168, allocations: 8 kB / 0.8853 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.01173, allocations: 11.97 kB / 0.8853 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.01174, allocations: 4 kB / 0.8853 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.69e-05/0.01181, allocations: 156.8 kB / 0.8854 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01181, allocations: 4 kB / 0.8854 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001751/0.01199, allocations: 39.89 kB / 0.8855 GB, free: 14.47 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,relCon.hys.y,enaSig.y) * Number of discrete states: 1 (relCon.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0001434/0.01213, allocations: 107.2 kB / 0.8856 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002369/0.01237, allocations: 168.8 kB / 0.8857 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01237, allocations: 3.938 kB / 0.8858 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.275e-05/0.01242, allocations: 39.66 kB / 0.8858 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.01263, allocations: 34.86 kB / 0.8858 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006915/0.01333, allocations: 286.4 kB / 0.8861 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.53e-05/0.01338, allocations: 67.33 kB / 0.8862 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.708e-05/0.01343, allocations: 8.984 kB / 0.8862 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.545e-05/0.01347, allocations: 20.48 kB / 0.8862 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of SimCode: time 1.333e-06/0.01348, allocations: 4 kB / 0.8862 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of Templates: time 0.004814/0.01829, allocations: 2.361 MB / 0.8885 GB, free: 11.36 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.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.321060341782868]