Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.008281/0.008281, allocations: 99.95 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.001692/0.001692, allocations: 189.4 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.667/2.667, allocations: 472.7 MB / 0.7453 GB, free: 436 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.91 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8508/0.8522, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001965/0.8542, allocations: 0.7482 MB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.8556, allocations: 1.069 MB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.349e-05/0.8557, allocations: 3.938 kB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.8558, allocations: 3.938 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.908e-05/0.8558, allocations: 19.84 kB / 1.227 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.8562, allocations: 51.89 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.8563, allocations: 67.78 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.8564, allocations: 16.17 kB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.615e-05/0.8565, allocations: 31.86 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.892e-05/0.8566, allocations: 35.89 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.8566, allocations: 4 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.219e-05/0.8567, allocations: 19.98 kB / 1.227 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.8567, allocations: 19.92 kB / 1.227 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.41e-05/0.8568, allocations: 27.86 kB / 1.227 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.857, allocations: 83.39 kB / 1.227 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.857, allocations: 3.938 kB / 1.227 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.543e-06/0.857, allocations: 3.938 kB / 1.227 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.857, allocations: 0 / 1.227 GB, free: 11.23 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.0005519/0.8576, allocations: 379.2 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.8576, allocations: 12.03 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.8576, allocations: 38.73 kB / 1.228 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.85e-05/0.8577, allocations: 8.891 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.8578, allocations: 172.3 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.8578, allocations: 12.31 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.8579, allocations: 4.375 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.8581, allocations: 73.91 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.8581, allocations: 4 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.8581, allocations: 0 / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.8581, allocations: 0 / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.8583, allocations: 47.95 kB / 1.228 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006397/0.859, allocations: 320.7 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.8591, allocations: 54.56 kB / 1.228 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.627e-05/0.8592, allocations: 32.95 kB / 1.228 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.8593, allocations: 0 / 1.228 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.8595, allocations: 79.33 kB / 1.229 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.8595, allocations: 0 / 1.229 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004204/0.8599, allocations: 141.6 kB / 1.229 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.86, allocations: 51.41 kB / 1.229 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.8601, allocations: 121.8 kB / 1.229 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.8601, allocations: 33.69 kB / 1.229 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.8602, allocations: 92.08 kB / 1.229 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.8602, allocations: 11.91 kB / 1.229 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.553e-05/0.8602, allocations: 33.7 kB / 1.229 GB, free: 9.328 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.8604, allocations: 322.8 kB / 1.229 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.8605, allocations: 31.92 kB / 1.229 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.8606, allocations: 77.97 kB / 1.229 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.8609, allocations: 105.9 kB / 1.23 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.8609, allocations: 0 / 1.23 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003098/0.8612, allocations: 137.5 kB / 1.23 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.8612, allocations: 8 kB / 1.23 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.8612, allocations: 0 / 1.23 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.8612, allocations: 4 kB / 1.23 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.8614, allocations: 19.92 kB / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.8614, allocations: 0 / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.915e-05/0.8615, allocations: 24.16 kB / 1.23 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.8615, allocations: 4 kB / 1.23 GB, free: 8.551 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 9.713e-05/0.8616, allocations: 131.9 kB / 1.23 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.8616, allocations: 7.953 kB / 1.23 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.8617, allocations: 12.36 kB / 1.23 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.8617, allocations: 3.938 kB / 1.23 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8617, allocations: 4 kB / 1.23 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.8617, allocations: 0 / 1.23 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000463/0.8622, allocations: 370.5 kB / 1.23 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8622, allocations: 0 / 1.23 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.504e-05/0.8622, allocations: 11.94 kB / 1.23 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.8622, allocations: 0 / 1.23 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.8623, allocations: 0 / 1.23 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.8623, allocations: 7.922 kB / 1.23 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.8623, allocations: 0 / 1.23 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000312/0.8626, allocations: 208.6 kB / 1.23 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.8626, allocations: 81.06 kB / 1.231 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.8627, allocations: 11.98 kB / 1.231 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.853e-05/0.8628, allocations: 3.938 kB / 1.231 GB, free: 7.613 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.8628, allocations: 7.984 kB / 1.231 GB, free: 7.605 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.8628, allocations: 7.938 kB / 1.231 GB, free: 7.598 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.538e-05/0.8629, allocations: 95.92 kB / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8629, allocations: 4 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002611/0.8631, allocations: 12 kB / 1.231 GB, free: 7.488 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.0006259/0.8638, allocations: 0.7438 MB / 1.231 GB, free: 6.719 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.8641, allocations: 83.88 kB / 1.231 GB, free: 6.637 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8641, allocations: 0 / 1.231 GB, free: 6.637 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.8642, allocations: 31.92 kB / 1.231 GB, free: 6.605 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.8645, allocations: 18.36 kB / 1.232 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.8662, allocations: 1.532 MB / 1.233 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.8664, allocations: 0.6885 MB / 1.234 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.344e-05/0.8665, allocations: 11.98 kB / 1.234 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.797e-05/0.8666, allocations: 19.44 kB / 1.234 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.8666, allocations: 0 / 1.234 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.8859, allocations: 2.119 MB / 1.236 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.771/8.657, allocations: 16.12 kB / 1.236 GB, free: 2.242 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches