Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.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.0009684/0.0009684, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.0009543/0.0009543, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9935/0.9935, allocations: 177.1 MB / 204.5 MB, free: 5.484 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.1/2.1, allocations: 429.5 MB / 0.6743 GB, free: 3.938 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.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|tOn.y|tOff.y|tunSta.y|gai.k",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|tOn.y|tOff.y|tunSta.y|gai.k",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.548e-06/4.548e-06, allocations: 4 kB / 0.8794 GB, free: 4.887 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.426e-05/3.881e-05, allocations: 2.312 kB / 0.8794 GB, free: 4.883 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain): time 0.002218/0.002257, allocations: 1.157 MB / 0.8806 GB, free: 3.762 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.004011, allocations: 1.541 MB / 0.8821 GB, free: 2.207 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.004141, allocations: 0 / 0.8821 GB, free: 2.207 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 5.183e-05/0.004193, allocations: 23.67 kB / 0.8821 GB, free: 2.184 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.004365, allocations: 64.41 kB / 0.8821 GB, free: 2.121 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.005373, allocations: 454.3 kB / 0.8826 GB, free: 1.68 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.000482/0.005855, allocations: 0.5234 MB / 0.8831 GB, free: 1.156 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.006038, allocations: 72.02 kB / 0.8832 GB, free: 1.082 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.006314, allocations: 299.5 kB / 0.8834 GB, free: 0.7891 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.006526, allocations: 144.2 kB / 0.8836 GB, free: 0.6484 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.006587, allocations: 56 kB / 0.8836 GB, free: 0.5938 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.006691, allocations: 64.58 kB / 0.8837 GB, free: 0.5312 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 4.413e-05/0.006735, allocations: 56.39 kB / 0.8837 GB, free: 488 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.006852, allocations: 151.7 kB / 0.8839 GB, free: 336 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.007231, allocations: 376 kB / 0.8842 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.007236, allocations: 0 / 0.8842 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.373e-06/0.007237, allocations: 0 / 0.8842 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.007245, allocations: 0.75 kB / 0.8842 GB, free: 15.96 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0007603/0.008005, allocations: 0.7371 MB / 0.885 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.008046, allocations: 8.031 kB / 0.885 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.892e-05/0.008135, allocations: 48.8 kB / 0.885 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.008415, allocations: 241.1 kB / 0.8853 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.008443, allocations: 24.31 kB / 0.8853 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.008491, allocations: 32.36 kB / 0.8853 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.008649, allocations: 107.8 kB / 0.8854 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.008662, allocations: 5 kB / 0.8854 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.008678, allocations: 8.359 kB / 0.8854 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.008688, allocations: 9.031 kB / 0.8854 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.45e-05/0.008753, allocations: 48.94 kB / 0.8855 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007421/0.009495, allocations: 0.5813 MB / 0.886 GB, free: 14 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.009706, allocations: 83.09 kB / 0.8861 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.002e-05/0.009746, allocations: 35.83 kB / 0.8862 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.009756, allocations: 4 kB / 0.8862 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.009924, allocations: 142.8 kB / 0.8863 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=22): time 2.465e-06/0.009927, allocations: 0.625 kB / 0.8863 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22): time 0.0002846/0.01021, allocations: 193.4 kB / 0.8865 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.01025, allocations: 63.41 kB / 0.8865 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.01042, allocations: 276.1 kB / 0.8868 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.01047, allocations: 45.7 kB / 0.8869 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.01059, allocations: 199.2 kB / 0.887 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.01063, allocations: 59.53 kB / 0.8871 GB, free: 12.85 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.01078, allocations: 111.5 kB / 0.8872 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.01095, allocations: 0.5117 MB / 0.8877 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.01115, allocations: 211 kB / 0.8879 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.01139, allocations: 340.5 kB / 0.8882 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.01169, allocations: 352.1 kB / 0.8886 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01169, allocations: 0 / 0.8886 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008048/0.01249, allocations: 0.6315 MB / 0.8892 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.922e-05/0.01257, allocations: 134.8 kB / 0.8893 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.01258, allocations: 4 kB / 0.8893 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.01259, allocations: 4 kB / 0.8893 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.267e-05/0.01267, allocations: 27.92 kB / 0.8893 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.01267, allocations: 4 kB / 0.8893 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.01294, allocations: 91.98 kB / 0.8894 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.01298, allocations: 27.98 kB / 0.8895 GB, free: 10.15 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 17 (tunSta.y,$PRE.tunSta.y,$whenCondition9,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,u.booPul.y,$PRE.u.booPul.y,tOn.booPul.y,$PRE.tOn.booPul.y,tOff.booPul.y,$PRE.tOff.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 4 * 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.0001333/0.01311, allocations: 185.6 kB / 0.8896 GB, free: 9.961 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.01314, allocations: 35.84 kB / 0.8897 GB, free: 9.926 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.01318, allocations: 22.28 kB / 0.8897 GB, free: 9.898 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.01319, allocations: 0 / 0.8897 GB, free: 9.898 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.01319, allocations: 3.984 kB / 0.8897 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.0132, allocations: 96 / 0.8897 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003855/0.01358, allocations: 459.7 kB / 0.8901 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.01359, allocations: 3.984 kB / 0.8901 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.4e-05/0.01365, allocations: 12 kB / 0.8902 GB, free: 9.398 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.01365, allocations: 4 kB / 0.8902 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.01367, allocations: 7.984 kB / 0.8902 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01367, allocations: 4 kB / 0.8902 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01367, allocations: 0 / 0.8902 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.01396, allocations: 344.2 kB / 0.8905 GB, free: 9.031 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.695e-05/0.01399, allocations: 23.84 kB / 0.8905 GB, free: 9.008 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.01401, allocations: 4 kB / 0.8905 GB, free: 9.004 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.811e-05/0.01406, allocations: 12.03 kB / 0.8905 GB, free: 8.992 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.01409, allocations: 15.97 kB / 0.8906 GB, free: 8.977 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.0141, allocations: 7.984 kB / 0.8906 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.209e-05/0.0142, allocations: 193 kB / 0.8907 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.0142, allocations: 0 / 0.8907 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002621/0.01446, allocations: 83.89 kB / 0.8908 GB, free: 8.699 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gai.Iy.y) * Number of discrete variables: 13 ($whenCondition9,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,tunSta.y,tOff.booPul.y,tOn.booPul.y,u.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001505/0.01461, allocations: 119.8 kB / 0.8909 GB, free: 8.574 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004697/0.01508, allocations: 0.5546 MB / 0.8915 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01508, allocations: 0 / 0.8915 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.753e-05/0.01515, allocations: 57.09 kB / 0.8915 GB, free: 7.883 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.0155, allocations: 81.77 kB / 0.8916 GB, free: 7.801 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005681/0.01607, allocations: 387.5 kB / 0.892 GB, free: 7.395 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.861e-05/0.01612, allocations: 88.25 kB / 0.8921 GB, free: 7.289 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 6.151e-05/0.01619, allocations: 21.95 kB / 0.8921 GB, free: 7.27 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.01641, allocations: 170.1 kB / 0.8922 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of SimCode: time 1.072e-06/0.01641, allocations: 0 / 0.8922 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of Templates: time 0.008561/0.02497, allocations: 5.834 MB / 0.8979 GB, free: 1.441 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.SystemIdentification.FirstOrderTimeDelay.BaseClasses.Validation.Gain_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_SystemIdentification_FirstOrderTimeDelay_BaseClasses_Validation_Gain.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.572563000954688]