Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004572/0.004572, allocations: 101.8 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 192.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.708/2.708, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.89 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6726/0.6745, allocations: 159.1 MB / 1.22 GB, free: 2.184 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001792/0.6763, allocations: 0.7535 MB / 1.221 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.6778, allocations: 1.158 MB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.968e-05/0.6778, allocations: 7.938 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3e-05/0.6779, allocations: 3.938 kB / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.306e-05/0.678, allocations: 15.84 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.6784, allocations: 138.8 kB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.6786, allocations: 123.9 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.6787, allocations: 24.11 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.213e-05/0.6788, allocations: 51.84 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.6789, allocations: 51.8 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.679, allocations: 12 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.551e-05/0.6791, allocations: 27.98 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.592e-05/0.6791, allocations: 15.92 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.6792, allocations: 47.84 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.6794, allocations: 119.2 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.6794, allocations: 0 / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.537e-06/0.6794, allocations: 4 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.6794, allocations: 4 kB / 1.223 GB, free: 15.63 MB / 0.9512 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.0005976/0.68, allocations: 416.8 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.68, allocations: 12.03 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.717e-05/0.6801, allocations: 38.73 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.6801, allocations: 12.89 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.6803, allocations: 172.2 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.6803, allocations: 8.375 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.6803, allocations: 16.36 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.6805, allocations: 81.91 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.6805, allocations: 0 / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.6806, allocations: 0 / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.6806, allocations: 3.984 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.6808, allocations: 47.95 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004869/0.6813, allocations: 348.6 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.6814, allocations: 54.55 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.6816, allocations: 32.95 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.6816, allocations: 4 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.6818, allocations: 91.41 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.6818, allocations: 3.938 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0004598/0.6823, allocations: 153.5 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.6823, allocations: 51.41 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.011e-05/0.6824, allocations: 117.8 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.6825, allocations: 29.7 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.6825, allocations: 108 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.6826, allocations: 7.906 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.6827, allocations: 41.64 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.6828, allocations: 326.8 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.683, allocations: 51.95 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.6832, allocations: 101 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.6835, allocations: 146.8 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6835, allocations: 4 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004713/0.684, allocations: 211.1 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.684, allocations: 33.7 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.684, allocations: 3.984 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.6841, allocations: 4 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.324e-05/0.6842, allocations: 8 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.6842, allocations: 16.08 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.6844, allocations: 39.86 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.6844, allocations: 11.92 kB / 1.225 GB, free: 12.58 MB / 0.9512 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 9.807e-05/0.6845, allocations: 117.8 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.6846, allocations: 4 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003346/0.6849, allocations: 137.9 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.6849, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6849, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.6849, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.6854, allocations: 378.4 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6854, allocations: 0 / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.557e-05/0.6855, allocations: 11.98 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.6855, allocations: 4 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.6855, allocations: 0 / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.6855, allocations: 3.938 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6855, allocations: 4 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.6859, allocations: 211.9 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.6859, allocations: 85.06 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.6859, allocations: 4 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.686, allocations: 15.92 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.6861, allocations: 0 / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.6861, allocations: 7.938 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.953e-05/0.6862, allocations: 95.27 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6862, allocations: 0 / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002712/0.6864, allocations: 27.95 kB / 1.226 GB, free: 11.38 MB / 0.9512 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.0006567/0.6871, allocations: 0.7598 MB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004064/0.6875, allocations: 179.3 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6875, allocations: 0 / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.6877, allocations: 48.22 kB / 1.227 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.688, allocations: 15.92 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.6901, allocations: 1.711 MB / 1.229 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.6904, allocations: 0.6924 MB / 1.23 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.002e-05/0.6905, allocations: 4 kB / 1.23 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.262e-05/0.6905, allocations: 19.44 kB / 1.23 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.6905, allocations: 0 / 1.23 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.7129, allocations: 2.579 MB / 1.232 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.557, allocations: 0 / 1.232 GB, free: 5.336 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches