Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.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.00117/0.00117, 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.001275/0.001275, allocations: 169 kB / 23.02 MB, free: 1.551 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 1.041/1.041, 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.198/2.198, allocations: 429.5 MB / 0.6732 GB, free: 4.023 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.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.636e-06/3.636e-06, allocations: 0 / 0.8782 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.533e-05/3.896e-05, allocations: 7.766 kB / 0.8782 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002911/0.00295, allocations: 1.06 MB / 0.8792 GB, free: 5.289 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002204/0.005154, allocations: 1.366 MB / 0.8806 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.005316, allocations: 5.031 kB / 0.8806 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.005479, allocations: 19.73 kB / 0.8806 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.423e-05/0.005574, allocations: 32.73 kB / 0.8806 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007553/0.006329, allocations: 264.9 kB / 0.8809 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.006715, allocations: 307.3 kB / 0.8812 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.006909, allocations: 61.3 kB / 0.8812 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.007125, allocations: 163.8 kB / 0.8814 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.007299, allocations: 80.72 kB / 0.8814 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.007353, allocations: 32 kB / 0.8815 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.007451, allocations: 43.97 kB / 0.8815 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.324e-05/0.007495, allocations: 36.92 kB / 0.8816 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.007616, allocations: 99.78 kB / 0.8816 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.007964, allocations: 216.6 kB / 0.8819 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.007968, allocations: 0 / 0.8819 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.292e-06/0.007969, allocations: 0 / 0.8819 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.007976, allocations: 0 / 0.8819 GB, free: 2.578 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007985/0.008774, allocations: 0.5549 MB / 0.8824 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.008832, allocations: 11.97 kB / 0.8824 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.008948, allocations: 32.84 kB / 0.8824 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.009294, allocations: 199.2 kB / 0.8826 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.00933, allocations: 16.38 kB / 0.8826 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.009374, allocations: 21.06 kB / 0.8827 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/0.00959, allocations: 112.5 kB / 0.8828 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.009602, allocations: 4.188 kB / 0.8828 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.009619, allocations: 11.75 kB / 0.8828 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.009629, allocations: 4.375 kB / 0.8828 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.009741, allocations: 44.41 kB / 0.8828 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.0108, allocations: 0.4953 MB / 0.8833 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.01099, allocations: 75.2 kB / 0.8834 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.368e-05/0.01104, allocations: 23.69 kB / 0.8834 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.01108, allocations: 8.766 kB / 0.8834 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.01125, allocations: 106.5 kB / 0.8835 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.01125, allocations: 0 / 0.8835 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0003576/0.01161, allocations: 156.7 kB / 0.8837 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.01165, allocations: 59.34 kB / 0.8837 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.01183, allocations: 235.5 kB / 0.884 GB, free: 260 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.01187, allocations: 29.7 kB / 0.884 GB, free: 224 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.01197, allocations: 179.1 kB / 0.8842 GB, free: 40 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.01202, allocations: 35.73 kB / 0.8842 GB, free: 4 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.01215, allocations: 67.33 kB / 0.8843 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.01231, allocations: 0.4962 MB / 0.8847 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.0125, allocations: 127.3 kB / 0.8849 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.01271, allocations: 181.5 kB / 0.885 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.01295, allocations: 196.1 kB / 0.8852 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.01295, allocations: 3.984 kB / 0.8852 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005758/0.01353, allocations: 376.1 kB / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.829e-05/0.01359, allocations: 67.39 kB / 0.8856 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.0136, allocations: 7.938 kB / 0.8857 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.01362, allocations: 0 / 0.8857 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.217e-05/0.0137, allocations: 8 kB / 0.8857 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.01371, allocations: 12.14 kB / 0.8857 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.01394, allocations: 51.8 kB / 0.8857 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.01398, allocations: 15.98 kB / 0.8857 GB, free: 14.27 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (sam.yRec.y,$PRE.sam.yRec.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,u.booPul.y,$PRE.u.booPul.y,resSig.y,$PRE.resSig.y,sam.edgThr.y,sam.edgThr.u,$PRE.sam.edgThr.u,sam.edgRes.u,$PRE.sam.edgRes.u,sam.samTri.y,sam.samTri.u2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * 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.0001255/0.0141, allocations: 168.6 kB / 0.8859 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.01414, allocations: 23.91 kB / 0.8859 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.598e-05/0.01419, allocations: 21.39 kB / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.01419, allocations: 4 kB / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01419, allocations: 0 / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.0142, allocations: 0 / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004907/0.01469, allocations: 433.4 kB / 0.8864 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.01469, allocations: 3.984 kB / 0.8864 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-05/0.01473, allocations: 11.92 kB / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.01474, allocations: 4 kB / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.01475, allocations: 0 / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.01475, allocations: 0 / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01475, allocations: 3.938 kB / 0.8864 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.01503, allocations: 276.3 kB / 0.8866 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.01506, allocations: 23.78 kB / 0.8867 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.01509, allocations: 3.984 kB / 0.8867 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.01517, allocations: 4 kB / 0.8867 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.01522, allocations: 11.98 kB / 0.8867 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.01524, allocations: 11.98 kB / 0.8867 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001074/0.01535, allocations: 155.9 kB / 0.8868 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1e-07/0.01535, allocations: 0 / 0.8868 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003783/0.01573, allocations: 51.89 kB / 0.8869 GB, free: 13.02 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: 13 (sam.samTri.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,sam.yRec.y,sam.samTri.u2,sam.edgRes.u,sam.edgThr.u,sam.edgThr.y,resSig.y,u.booPul.y) * Number of discrete states: 2 (sam.edgThr.u,sam.edgRes.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002133/0.01594, allocations: 117 kB / 0.887 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000442/0.01638, allocations: 317.7 kB / 0.8873 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01638, allocations: 0 / 0.8873 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.854e-05/0.01647, allocations: 50.56 kB / 0.8874 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.01688, allocations: 32.28 kB / 0.8874 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006401/0.01752, allocations: 305.3 kB / 0.8877 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.028e-05/0.01758, allocations: 71.83 kB / 0.8877 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.953e-05/0.01764, allocations: 17.48 kB / 0.8878 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.01769, allocations: 16.5 kB / 0.8878 GB, free: 12.01 MB / 0.8542 GB Notification: Performance of SimCode: time 7.21e-07/0.01769, allocations: 0 / 0.8878 GB, free: 12.01 MB / 0.8542 GB Notification: Performance of Templates: time 0.005738/0.02343, allocations: 2.906 MB / 0.8906 GB, free: 9.207 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.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.7028636410832405]