Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001366/0.001366, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001385, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.515/2.515, allocations: 437.1 MB / 0.7104 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001227, allocations: 67.91 kB / 0.8694 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.585/0.5862, allocations: 151.6 MB / 1.017 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002047/0.5883, allocations: 0.7364 MB / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.5896, allocations: 1.077 MB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.307e-05/0.5896, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.5897, allocations: 3.938 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.989e-05/0.5898, allocations: 11.88 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.5901, allocations: 55.81 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.745e-05/0.5902, allocations: 63.84 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.324e-05/0.5903, allocations: 20.16 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.931e-05/0.5903, allocations: 39.8 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.527e-05/0.5904, allocations: 27.91 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.5904, allocations: 8 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.5905, allocations: 27.92 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.282e-05/0.5905, allocations: 23.91 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.028e-05/0.5906, allocations: 27.86 kB / 1.02 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.5907, allocations: 71.75 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.5907, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5907, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.5907, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004969/0.5912, allocations: 393.4 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.5913, allocations: 8.031 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.5913, allocations: 38.75 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.5913, allocations: 0.9375 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.5915, allocations: 176.2 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.5915, allocations: 16.25 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.5915, allocations: 4.375 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.5917, allocations: 65.98 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5917, allocations: 4 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.5917, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.5918, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.5919, allocations: 43.95 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006543/0.5926, allocations: 340.5 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.5928, allocations: 50.55 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.5929, allocations: 28.97 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.5929, allocations: 4 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.5932, allocations: 83.41 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.946e-06/0.5932, allocations: 3.984 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004206/0.5936, allocations: 129.5 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.5937, allocations: 55.41 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.5938, allocations: 121.8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.5938, allocations: 29.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.635e-05/0.5939, allocations: 100 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.5939, allocations: 15.8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.5939, allocations: 25.72 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5941, allocations: 326.8 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.5942, allocations: 31.91 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.5943, allocations: 73.98 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.5946, allocations: 109.9 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5946, allocations: 3.938 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003069/0.5949, allocations: 129.5 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.5949, allocations: 12.16 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.5949, allocations: 4 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.5949, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.5951, allocations: 15.98 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.5951, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.452e-05/0.5952, allocations: 19.83 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.5952, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.132e-05/0.5953, allocations: 124.1 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.5953, allocations: 11.89 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.5954, allocations: 16.38 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5954, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5954, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.5954, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004437/0.5958, allocations: 374.4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5958, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.205e-05/0.5959, allocations: 7.984 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.5959, allocations: 4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.5959, allocations: 8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5959, allocations: 3.938 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.5959, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.5962, allocations: 199.3 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.5963, allocations: 89.02 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.5963, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.057e-05/0.5964, allocations: 11.92 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.5964, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.351e-06/0.5964, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.181e-05/0.5965, allocations: 95.27 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5965, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000245/0.5967, allocations: 16 kB / 1.023 GB, free: 12.48 MB / 0.7794 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005801/0.5973, allocations: 0.7397 MB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000284/0.5976, allocations: 79.81 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5976, allocations: 448 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.5978, allocations: 43.91 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.598, allocations: 11.94 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.5997, allocations: 1.511 MB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.6, allocations: 0.6885 MB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.463e-05/0.6, allocations: 4 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.671e-05/0.6001, allocations: 27.42 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6001, allocations: 0 / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.6168, allocations: 2.068 MB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.981/7.598, allocations: 9.953 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches