Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.148/3.148, allocations: 497.2 MB / 0.7811 GB, free: 33.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 71.08 kB / 1.134 GB, free: 33.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.356, allocations: 173.9 MB / 1.304 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002176/0.3581, allocations: 0.7597 MB / 1.305 GB, free: 0.8086 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3598, allocations: 1.158 MB / 1.306 GB, free: 15.64 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.535e-05/0.3598, allocations: 4 kB / 1.306 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.554e-05/0.3599, allocations: 11.88 kB / 1.306 GB, free: 15.62 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.47e-05/0.3599, allocations: 11.86 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.3604, allocations: 135.3 kB / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.3607, allocations: 127.7 kB / 1.306 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3608, allocations: 28.16 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.06e-05/0.3608, allocations: 43.91 kB / 1.306 GB, free: 15.28 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.361, allocations: 51.81 kB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.361, allocations: 12 kB / 1.306 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.955e-05/0.3611, allocations: 27.98 kB / 1.306 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.583e-05/0.3611, allocations: 15.92 kB / 1.306 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.674e-05/0.3611, allocations: 43.84 kB / 1.306 GB, free: 15.13 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.3614, allocations: 127.8 kB / 1.306 GB, free: 15.01 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3614, allocations: 0 / 1.306 GB, free: 15.01 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3614, allocations: 0 / 1.306 GB, free: 15.01 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.3614, allocations: 0 / 1.306 GB, free: 15.01 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006673/0.362, allocations: 424.8 kB / 1.307 GB, free: 14.54 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3621, allocations: 8.922 kB / 1.307 GB, free: 14.53 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.891e-05/0.3621, allocations: 38.75 kB / 1.307 GB, free: 14.48 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.3622, allocations: 8.891 kB / 1.307 GB, free: 14.48 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3623, allocations: 176.3 kB / 1.307 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.3623, allocations: 8.375 kB / 1.307 GB, free: 14.26 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/0.3623, allocations: 8.375 kB / 1.307 GB, free: 14.25 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3626, allocations: 81.84 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3626, allocations: 4 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3626, allocations: 4 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3626, allocations: 0 / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.3628, allocations: 47.95 kB / 1.307 GB, free: 14.11 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005611/0.3633, allocations: 348.5 kB / 1.308 GB, free: 13.72 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.3635, allocations: 54.55 kB / 1.308 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.3636, allocations: 28.97 kB / 1.308 GB, free: 13.62 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3636, allocations: 7.984 kB / 1.308 GB, free: 13.62 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.3639, allocations: 91.39 kB / 1.308 GB, free: 13.52 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.3639, allocations: 0 / 1.308 GB, free: 13.52 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0004571/0.3643, allocations: 153.6 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.3644, allocations: 51.41 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3645, allocations: 121.8 kB / 1.308 GB, free: 13.17 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.3645, allocations: 25.7 kB / 1.308 GB, free: 13.14 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.3646, allocations: 96.09 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.3646, allocations: 15.89 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.3647, allocations: 37.7 kB / 1.308 GB, free: 12.98 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3649, allocations: 326.8 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.365, allocations: 47.97 kB / 1.309 GB, free: 12.61 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.3652, allocations: 93.05 kB / 1.309 GB, free: 12.5 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.3655, allocations: 150.8 kB / 1.309 GB, free: 12.32 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.3655, allocations: 0 / 1.309 GB, free: 12.32 MB / 1.014 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004696/0.366, allocations: 219.3 kB / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.3661, allocations: 37.69 kB / 1.309 GB, free: 12.05 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3661, allocations: 0 / 1.309 GB, free: 12.05 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3661, allocations: 4 kB / 1.309 GB, free: 12.05 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.762e-05/0.3662, allocations: 11.98 kB / 1.309 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3662, allocations: 7.938 kB / 1.309 GB, free: 12.03 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.3664, allocations: 51.72 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.3664, allocations: 7.938 kB / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 0.0001162/0.3665, allocations: 125.9 kB / 1.309 GB, free: 11.84 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.3665, allocations: 7.953 kB / 1.309 GB, free: 11.83 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.3669, allocations: 133.9 kB / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3669, allocations: 0 / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.3669, allocations: 0 / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3669, allocations: 0 / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004796/0.3674, allocations: 378.5 kB / 1.31 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3674, allocations: 4 kB / 1.31 GB, free: 11.26 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.3674, allocations: 11.98 kB / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3674, allocations: 0 / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.3674, allocations: 4 kB / 1.31 GB, free: 11.25 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3674, allocations: 7.938 kB / 1.31 GB, free: 11.24 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3674, allocations: 3.938 kB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.3678, allocations: 211.5 kB / 1.31 GB, free: 11.01 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3678, allocations: 85 kB / 1.31 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3678, allocations: 4 kB / 1.31 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.3679, allocations: 11.92 kB / 1.31 GB, free: 10.89 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.368, allocations: 7.984 kB / 1.31 GB, free: 10.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.368, allocations: 4 kB / 1.31 GB, free: 10.88 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.365e-05/0.3681, allocations: 95.81 kB / 1.31 GB, free: 10.79 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3681, allocations: 0 / 1.31 GB, free: 10.79 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002657/0.3683, allocations: 24 kB / 1.31 GB, free: 10.77 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0007588/0.3691, allocations: 0.7519 MB / 1.311 GB, free: 9.988 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004263/0.3695, allocations: 171.3 kB / 1.311 GB, free: 9.809 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3695, allocations: 0 / 1.311 GB, free: 9.809 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.3696, allocations: 39.98 kB / 1.311 GB, free: 9.77 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.3699, allocations: 15.92 kB / 1.311 GB, free: 9.754 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.3723, allocations: 1.728 MB / 1.313 GB, free: 7.906 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.3727, allocations: 0.6885 MB / 1.313 GB, free: 7.191 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.384e-05/0.3727, allocations: 4 kB / 1.314 GB, free: 7.188 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.3728, allocations: 23.42 kB / 1.314 GB, free: 7.164 MB / 1.014 GB Notification: Performance of SimCode: time 8.22e-07/0.3728, allocations: 4 kB / 1.314 GB, free: 7.16 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.3992, allocations: 2.574 MB / 1.316 GB, free: 4.746 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.481, allocations: 3.875 kB / 1.316 GB, free: 4.746 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 15.331196099054068]