Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00111/0.00111, allocations: 108 kB / 15.61 MB, free: 152 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.001192/0.001192, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.463/1.463, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.573/2.573, allocations: 390.2 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 64.09 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.829/0.8306, allocations: 140.4 MB / 0.9497 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001918/0.8326, allocations: 0.7386 MB / 0.9505 GB, free: 8.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.8337, allocations: 1.071 MB / 0.9515 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.25e-05/0.8337, allocations: 1.125 kB / 0.9515 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.8337, allocations: 3.938 kB / 0.9515 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.171e-05/0.8338, allocations: 13.25 kB / 0.9515 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.8341, allocations: 57.09 kB / 0.9516 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.854e-05/0.8342, allocations: 69.53 kB / 0.9517 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.8343, allocations: 24.53 kB / 0.9517 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.74e-05/0.8344, allocations: 26.23 kB / 0.9517 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.486e-05/0.8345, allocations: 34.94 kB / 0.9517 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.8345, allocations: 4.469 kB / 0.9517 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.027e-05/0.8346, allocations: 23.8 kB / 0.9518 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.122e-05/0.8346, allocations: 22.47 kB / 0.9518 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.8346, allocations: 32.64 kB / 0.9518 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.8348, allocations: 73.03 kB / 0.9519 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8348, allocations: 0 / 0.9519 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8348, allocations: 1.094 kB / 0.9519 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.8348, allocations: 0 / 0.9519 GB, free: 7.68 MB / 0.7169 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.0004551/0.8353, allocations: 379.9 kB / 0.9522 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.8353, allocations: 8.844 kB / 0.9523 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.536e-05/0.8353, allocations: 33.12 kB / 0.9523 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.8354, allocations: 11.69 kB / 0.9523 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.232e-05/0.8355, allocations: 176.8 kB / 0.9525 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.8355, allocations: 11.2 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.8355, allocations: 3.031 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.8357, allocations: 69.23 kB / 0.9525 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.8357, allocations: 1.281 kB / 0.9525 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.8357, allocations: 4 kB / 0.9525 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.8357, allocations: 1.312 kB / 0.9526 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.8359, allocations: 48.8 kB / 0.9526 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005204/0.8364, allocations: 325 kB / 0.9529 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.8366, allocations: 67.45 kB / 0.953 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.39e-05/0.8367, allocations: 28.12 kB / 0.953 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.8367, allocations: 3.984 kB / 0.953 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.8369, allocations: 78.22 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.8369, allocations: 1.281 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000385/0.8373, allocations: 131.4 kB / 0.9532 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.8373, allocations: 53.72 kB / 0.9533 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/0.8374, allocations: 120.3 kB / 0.9534 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.8374, allocations: 31.17 kB / 0.9534 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.8375, allocations: 92.19 kB / 0.9535 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.8375, allocations: 18.92 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.8375, allocations: 26.61 kB / 0.9535 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.834e-05/0.8376, allocations: 329 kB / 0.9538 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.8377, allocations: 31.44 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.8378, allocations: 75.2 kB / 0.9539 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.838, allocations: 111 kB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.838, allocations: 0 / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002985/0.8383, allocations: 126.4 kB / 0.9542 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.8384, allocations: 9.219 kB / 0.9542 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.8384, allocations: 1.312 kB / 0.9542 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.8384, allocations: 3.281 kB / 0.9542 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.8385, allocations: 19.55 kB / 0.9542 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.8385, allocations: 7.25 kB / 0.9542 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.185e-05/0.8386, allocations: 16.7 kB / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.8386, allocations: 4.625 kB / 0.9542 GB, free: 5.438 MB / 0.7169 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 7.22e-05/0.8387, allocations: 125.6 kB / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.8387, allocations: 14.27 kB / 0.9544 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.8388, allocations: 9.562 kB / 0.9544 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.8388, allocations: 9.109 kB / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.8388, allocations: 1.312 kB / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.8388, allocations: 0 / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/0.8392, allocations: 376.7 kB / 0.9547 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.8392, allocations: 1.125 kB / 0.9547 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.124e-05/0.8393, allocations: 4.531 kB / 0.9547 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.8393, allocations: 5.266 kB / 0.9548 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.8393, allocations: 5.375 kB / 0.9548 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.8393, allocations: 3.938 kB / 0.9548 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.8393, allocations: 4 kB / 0.9548 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.8396, allocations: 193.8 kB / 0.955 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.8396, allocations: 86.41 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.8396, allocations: 1.438 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.082e-05/0.8397, allocations: 7.938 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.8397, allocations: 10.98 kB / 0.9551 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.8398, allocations: 13.25 kB / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.8398, allocations: 97.02 kB / 0.9552 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8398, allocations: 0 / 0.9552 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002645/0.8401, allocations: 17.59 kB / 0.9552 GB, free: 4.527 MB / 0.7169 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.0005102/0.8406, allocations: 0.7426 MB / 0.9559 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.8409, allocations: 80.69 kB / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8409, allocations: 1.469 kB / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.841, allocations: 35.91 kB / 0.956 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.8413, allocations: 17.81 kB / 0.956 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.8429, allocations: 1.514 MB / 0.9575 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.843, allocations: 0.6893 MB / 0.9582 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.724e-05/0.8431, allocations: 8.5 kB / 0.9582 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.8431, allocations: 22.89 kB / 0.9582 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.8431, allocations: 1.094 kB / 0.9582 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.8607, allocations: 2.059 MB / 0.9602 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.586/8.447, allocations: 7.156 kB / 0.9602 GB, free: 0.5312 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches