Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001834/0.001834, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.002113/0.002113, allocations: 214.4 kB / 22.99 MB, free: 4.945 MB / 14.72 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.174/3.174, allocations: 0.4892 GB / 0.7951 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.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_12_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_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 69.2 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3431, allocations: 176.1 MB / 1.326 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002437/0.3455, allocations: 0.9865 MB / 1.327 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001856/0.3474, allocations: 1.338 MB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.3475, allocations: 7.938 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.3477, allocations: 19.8 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.279e-05/0.3477, allocations: 35.66 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006887/0.3484, allocations: 266.5 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003684/0.3488, allocations: 303.5 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.3489, allocations: 65.72 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3491, allocations: 115.6 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.3493, allocations: 103.5 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.019e-05/0.3493, allocations: 28 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.108e-05/0.3494, allocations: 40 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.509e-05/0.3495, allocations: 43.84 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3496, allocations: 99.62 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.35, allocations: 342.8 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.35, allocations: 0 / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.434e-06/0.35, allocations: 3.938 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.35, allocations: 4 kB / 1.33 GB, free: 14.08 MB / 1.029 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.0007288/0.3507, allocations: 472.9 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.3508, allocations: 8.031 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.3508, allocations: 20.84 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.3512, allocations: 191.8 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.3512, allocations: 12.38 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.3513, allocations: 24.36 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.3515, allocations: 122.2 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3515, allocations: 7.875 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.3515, allocations: 7.984 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3515, allocations: 8 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.3517, allocations: 67.97 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007854/0.3525, allocations: 471.9 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.3527, allocations: 90.52 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.608e-05/0.3527, allocations: 32.98 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.3528, allocations: 7.938 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.353, allocations: 119.5 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.353, allocations: 0 / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004559/0.3534, allocations: 185.4 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.3535, allocations: 55.41 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3536, allocations: 171.2 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.3537, allocations: 33.7 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3538, allocations: 132.4 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.3538, allocations: 35.78 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.3539, allocations: 61.69 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3541, allocations: 326.8 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.3543, allocations: 151.3 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.3546, allocations: 196.4 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.3549, allocations: 213.9 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3549, allocations: 0 / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000611/0.3555, allocations: 400.1 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.693e-05/0.3556, allocations: 75.55 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3556, allocations: 0 / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3556, allocations: 7.938 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.463e-05/0.3557, allocations: 11.94 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3557, allocations: 7.984 kB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.356, allocations: 59.83 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.356, allocations: 15.98 kB / 1.334 GB, free: 10.05 MB / 1.029 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.0001492/0.3562, allocations: 150.2 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.3562, allocations: 15.84 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.511e-05/0.3563, allocations: 17.47 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3563, allocations: 0 / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3563, allocations: 3.984 kB / 1.334 GB, free: 9.852 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3563, allocations: 4 kB / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.3568, allocations: 396.2 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3568, allocations: 3.938 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.079e-05/0.3568, allocations: 8 kB / 1.334 GB, free: 9.414 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3568, allocations: 4 kB / 1.334 GB, free: 9.41 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.3568, allocations: 4 kB / 1.334 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.3568, allocations: 0 / 1.334 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3568, allocations: 3.984 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.3571, allocations: 235.9 kB / 1.334 GB, free: 9.156 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.439e-05/0.3572, allocations: 15.84 kB / 1.334 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.3572, allocations: 4 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.44e-05/0.3573, allocations: 4 kB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.157e-05/0.3573, allocations: 23.91 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.3573, allocations: 4 kB / 1.334 GB, free: 9.105 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001071/0.3574, allocations: 128 kB / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3574, allocations: 0 / 1.335 GB, free: 8.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003155/0.3578, allocations: 51.89 kB / 1.335 GB, free: 8.93 MB / 1.029 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.0001741/0.3579, allocations: 117.2 kB / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005056/0.3584, allocations: 341 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3584, allocations: 320 / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.653e-05/0.3585, allocations: 55.92 kB / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.3589, allocations: 32.84 kB / 1.335 GB, free: 8.355 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005854/0.3595, allocations: 325.4 kB / 1.335 GB, free: 8.004 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.3596, allocations: 108 kB / 1.336 GB, free: 7.883 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.3596, allocations: 23.42 kB / 1.336 GB, free: 7.859 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3596, allocations: 3.938 kB / 1.336 GB, free: 7.855 MB / 1.029 GB Notification: Performance of Templates: time 0.004636/0.3643, allocations: 2.478 MB / 1.338 GB, free: 5.398 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.242126134224236]