Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SampleTrigger,fileNamePrefix="Buildings_latest_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_latest_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.001116/0.001117, 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.001266/0.001266, allocations: 195.8 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.667/2.667, allocations: 469.4 MB / 0.742 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.44 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3738, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002468/0.3763, allocations: 0.7556 MB / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001853/0.3782, allocations: 1.074 MB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.242e-05/0.3783, allocations: 4 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.558e-05/0.3784, allocations: 3.938 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.03e-05/0.3785, allocations: 15.84 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004075/0.3789, allocations: 47.84 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.3791, allocations: 71.83 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.3792, allocations: 24.11 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.3793, allocations: 27.92 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.067e-05/0.3794, allocations: 35.83 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.3794, allocations: 8 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.442e-05/0.3795, allocations: 15.98 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.3796, allocations: 12 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.066e-05/0.3796, allocations: 31.8 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.3798, allocations: 79.73 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3798, allocations: 4 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3798, allocations: 0 / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.3798, allocations: 0 / 1.066 GB, free: 12.3 MB / 0.8262 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.0006256/0.3805, allocations: 379.5 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3805, allocations: 15.97 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.3806, allocations: 30.75 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.3806, allocations: 12.83 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.3808, allocations: 176.2 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3808, allocations: 8.312 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.3809, allocations: 8.359 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.3811, allocations: 73.91 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3811, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.3811, allocations: 8 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3811, allocations: 4 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.3813, allocations: 39.95 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000712/0.382, allocations: 316.7 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.3822, allocations: 58.55 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.898e-05/0.3824, allocations: 32.95 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.3824, allocations: 0 / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3826, allocations: 79.38 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.536e-06/0.3827, allocations: 4 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004448/0.3831, allocations: 133.6 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.3832, allocations: 55.39 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3833, allocations: 121.8 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3833, allocations: 29.7 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.099e-05/0.3834, allocations: 92.12 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.3834, allocations: 19.75 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.455e-05/0.3835, allocations: 29.7 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.3836, allocations: 318.8 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.3837, allocations: 27.97 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.3839, allocations: 82.3 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3842, allocations: 117.8 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3842, allocations: 0 / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003368/0.3845, allocations: 125.4 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3846, allocations: 4 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.3846, allocations: 4.312 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3846, allocations: 224 / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3847, allocations: 31.91 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3848, allocations: 0 / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.631e-05/0.3848, allocations: 12 kB / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3849, allocations: 11.97 kB / 1.068 GB, free: 9.617 MB / 0.8262 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.0001093/0.385, allocations: 123.6 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.385, allocations: 7.906 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.385, allocations: 8.375 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3851, allocations: 3.938 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3851, allocations: 4 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3851, allocations: 4 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.3856, allocations: 374.3 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3856, allocations: 0 / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.857e-05/0.3856, allocations: 15.92 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3857, allocations: 0 / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.3857, allocations: 4 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3857, allocations: 3.938 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3857, allocations: 0 / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.386, allocations: 199.5 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.3861, allocations: 81.02 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.3861, allocations: 0 / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.648e-05/0.3862, allocations: 15.92 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/0.3862, allocations: 4 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.3862, allocations: 15.97 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.96e-05/0.3863, allocations: 91.22 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3863, allocations: 0 / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000261/0.3866, allocations: 15.98 kB / 1.069 GB, free: 8.566 MB / 0.8262 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.0006696/0.3873, allocations: 0.7441 MB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002931/0.3876, allocations: 83.81 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3876, allocations: 0 / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.3877, allocations: 36.42 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.388, allocations: 19.92 kB / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.3899, allocations: 1.509 MB / 1.071 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3902, allocations: 0.6962 MB / 1.072 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.183e-05/0.3903, allocations: 7.984 kB / 1.072 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3904, allocations: 19.44 kB / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3904, allocations: 0 / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.4144, allocations: 2.066 MB / 1.074 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.243/7.658, allocations: 10.38 kB / 1.074 GB, free: 3.332 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches