Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_10_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_10_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.001119/0.001119, 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.001191/0.001191, allocations: 195.4 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.29/1.29, 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.512/2.512, allocations: 437.1 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.91 kB / 0.8694 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6324/0.6337, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002129/0.6359, allocations: 0.7481 MB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.6373, allocations: 1.07 MB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.479e-05/0.6374, allocations: 0 / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.287e-05/0.6374, allocations: 7.922 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.539e-05/0.6375, allocations: 19.86 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.6379, allocations: 47.84 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.638, allocations: 71.83 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.6381, allocations: 20.16 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.921e-05/0.6382, allocations: 31.86 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.063e-05/0.6382, allocations: 31.89 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.6383, allocations: 8 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.419e-05/0.6383, allocations: 23.98 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.6384, allocations: 19.92 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.6384, allocations: 27.88 kB / 1.02 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.6386, allocations: 75.73 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6386, allocations: 0 / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6386, allocations: 0 / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.6386, allocations: 0 / 1.02 GB, free: 268 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.0005774/0.6392, allocations: 385.4 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.6392, allocations: 8.031 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.6393, allocations: 42.73 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.6393, allocations: 4.938 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.6394, allocations: 188.1 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.6395, allocations: 384 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.6395, allocations: 8.375 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.6397, allocations: 73.91 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.6397, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.6397, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.6397, allocations: 0 / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.6399, allocations: 51.95 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.6405, allocations: 328.7 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.6407, allocations: 50.5 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.937e-05/0.6408, allocations: 40.95 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.6408, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.641, allocations: 75.38 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.641, allocations: 0 / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004018/0.6414, allocations: 133.4 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.6415, allocations: 59.41 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.037e-05/0.6416, allocations: 125.8 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.6416, allocations: 25.7 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.6417, allocations: 96.03 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.6417, allocations: 11.81 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.6418, allocations: 29.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.6419, allocations: 326.8 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.642, allocations: 31.98 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.6421, allocations: 69.98 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.6424, allocations: 113.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.6424, allocations: 4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003628/0.6427, allocations: 137.4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.6428, allocations: 4 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6428, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.6428, allocations: 4 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.6429, allocations: 19.92 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.643, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.643, allocations: 20.05 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.6431, allocations: 4 kB / 1.022 GB, free: 13.56 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 8.919e-05/0.6432, allocations: 127.3 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.6432, allocations: 3.906 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.046e-05/0.6432, allocations: 12.31 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.6432, allocations: 3.938 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.6432, allocations: 3.984 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6432, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.6437, allocations: 374.5 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.6437, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.437e-05/0.6438, allocations: 11.92 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.6438, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.6438, allocations: 4 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.6438, allocations: 3.938 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6438, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.6441, allocations: 199.4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.6441, allocations: 85.02 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.6441, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.6442, allocations: 15.92 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.6443, allocations: 7.984 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.6443, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.565e-05/0.6443, allocations: 99.27 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6444, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002558/0.6446, allocations: 16 kB / 1.023 GB, free: 12.51 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.0006082/0.6452, allocations: 0.7357 MB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002669/0.6455, allocations: 83.88 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6455, allocations: 7.938 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.6456, allocations: 31.92 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.6459, allocations: 22.3 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.6477, allocations: 1.519 MB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.6479, allocations: 0.6846 MB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.857e-05/0.648, allocations: 7.984 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.621e-05/0.648, allocations: 19.44 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.648, allocations: 0 / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.6665, allocations: 2.081 MB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.807, allocations: 16.69 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable samTri.y in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! " Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:time,triggeredSampler1.u,triggeredSampler.y,triggeredSampler1.y,ramp.duration,ramp.height