Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.008718/0.008718, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001739/0.001739, allocations: 193.3 kB / 16.67 MB, free: 5.969 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.608/2.608, allocations: 469.4 MB / 0.7422 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.89 kB / 1.064 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9493/0.9508, allocations: 159.1 MB / 1.22 GB, free: 2.215 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002257/0.9531, allocations: 0.7443 MB / 1.22 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001606/0.9547, allocations: 1.077 MB / 1.222 GB, free: 392 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.504e-05/0.9548, allocations: 4 kB / 1.222 GB, free: 388 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.302e-05/0.9549, allocations: 3.938 kB / 1.222 GB, free: 384 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.955, allocations: 11.86 kB / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.9554, allocations: 55.83 kB / 1.222 GB, free: 316 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.9556, allocations: 67.83 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.9557, allocations: 24.17 kB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.906e-05/0.9558, allocations: 27.86 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.457e-05/0.9559, allocations: 35.84 kB / 1.222 GB, free: 156 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.9559, allocations: 4 kB / 1.222 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.591e-05/0.956, allocations: 15.98 kB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.9561, allocations: 23.91 kB / 1.222 GB, free: 112 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.561e-05/0.9561, allocations: 31.86 kB / 1.222 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.9563, allocations: 82.3 kB / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.9564, allocations: 0 / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of FrontEnd: time 2.444e-06/0.9564, allocations: 0 / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.9564, allocations: 4.047 kB / 1.222 GB, free: 15.99 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006917/0.9571, allocations: 384.1 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.9572, allocations: 12.03 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.528e-05/0.9572, allocations: 30.75 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.9573, allocations: 8.891 kB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.9575, allocations: 172.3 kB / 1.222 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.9575, allocations: 12.36 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.9575, allocations: 4.375 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.9578, allocations: 69.92 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.9578, allocations: 4 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.9579, allocations: 4 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.9579, allocations: 0 / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.9581, allocations: 39.95 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007581/0.9588, allocations: 332.6 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.959, allocations: 54.55 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.908e-05/0.9591, allocations: 28.97 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.9591, allocations: 0 / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.9594, allocations: 83.33 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 5.34e-06/0.9594, allocations: 96 / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004449/0.9599, allocations: 129.6 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.96, allocations: 51.41 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.9601, allocations: 129.7 kB / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.9601, allocations: 29.7 kB / 1.223 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.9602, allocations: 96.08 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.9602, allocations: 19.89 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-05/0.9603, allocations: 33.64 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9604, allocations: 322.8 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.9605, allocations: 31.97 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.9606, allocations: 86.17 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.9609, allocations: 109.9 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.9609, allocations: 0 / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003068/0.9612, allocations: 125.5 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.9612, allocations: 5.562 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.9612, allocations: 8.219 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.9613, allocations: 3.938 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.9614, allocations: 19.98 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.9614, allocations: 3.984 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.112e-05/0.9615, allocations: 19.94 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.9615, allocations: 4 kB / 1.224 GB, free: 13.3 MB / 0.9512 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 0.0001156/0.9617, allocations: 126.2 kB / 1.224 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.9617, allocations: 7.953 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.9617, allocations: 16.36 kB / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.9617, allocations: 0 / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.9617, allocations: 4 kB / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.9618, allocations: 0 / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.9622, allocations: 370.4 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.9622, allocations: 0 / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-05/0.9623, allocations: 8 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.9623, allocations: 7.984 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.9623, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.9623, allocations: 3.938 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9623, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.9627, allocations: 199.5 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.9627, allocations: 85.05 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.9627, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.212e-05/0.9628, allocations: 15.88 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.083e-05/0.9629, allocations: 11.92 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.9629, allocations: 8 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.393e-05/0.963, allocations: 91.27 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.21e-07/0.963, allocations: 0 / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002671/0.9633, allocations: 12 kB / 1.225 GB, free: 12.25 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 (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.0006782/0.964, allocations: 0.7436 MB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.9643, allocations: 83.81 kB / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9643, allocations: 0 / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.9644, allocations: 40.41 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.9647, allocations: 15.88 kB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.9665, allocations: 1.524 MB / 1.228 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.9668, allocations: 0.6871 MB / 1.228 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.991e-05/0.9668, allocations: 7.984 kB / 1.228 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.9669, allocations: 19.44 kB / 1.228 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.9669, allocations: 0 / 1.228 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.9846, allocations: 2.119 MB / 1.23 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.672, allocations: 8.438 kB / 1.23 GB, free: 7.02 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv --start-time -2 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches