Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_10_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_10_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.008777/0.008776, allocations: 95.58 kB / 15.73 MB, free: 6.039 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.002115/0.002115, allocations: 200.5 kB / 16.68 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.654/2.654, allocations: 437 MB / 0.7105 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3179, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002424/0.3203, allocations: 0.7487 MB / 1.167 GB, free: 6.555 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.322, allocations: 1.074 MB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.245e-05/0.3221, allocations: 0 / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.3221, allocations: 3.938 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.892e-05/0.3222, allocations: 15.84 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.3226, allocations: 59.83 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.3227, allocations: 67.78 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.3229, allocations: 28.16 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.454e-05/0.3229, allocations: 27.92 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.395e-05/0.323, allocations: 35.83 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.323, allocations: 4 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.371e-05/0.3231, allocations: 23.98 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.481e-05/0.3231, allocations: 11.92 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.031e-05/0.3232, allocations: 39.84 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.3234, allocations: 79.91 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3234, allocations: 4 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3234, allocations: 0 / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3234, allocations: 3.938 kB / 1.168 GB, free: 5.062 MB / 0.92 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.0005494/0.324, allocations: 379.2 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.324, allocations: 12.02 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.3241, allocations: 30.75 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.3241, allocations: 12.89 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.3243, allocations: 176.3 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.3243, allocations: 4.375 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.3243, allocations: 4.375 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.3245, allocations: 77.91 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3246, allocations: 0 / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3246, allocations: 0 / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3246, allocations: 4 kB / 1.169 GB, free: 4.277 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3248, allocations: 43.95 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006819/0.3255, allocations: 324.6 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.3256, allocations: 62.48 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.982e-05/0.3258, allocations: 24.97 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.3258, allocations: 4 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.326, allocations: 79.33 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.326, allocations: 0 / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004274/0.3265, allocations: 133.6 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.3265, allocations: 55.41 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3266, allocations: 129.7 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3267, allocations: 29.7 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.894e-05/0.3267, allocations: 88.14 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.3267, allocations: 15.91 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.3268, allocations: 29.7 kB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.3269, allocations: 322.8 kB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.327, allocations: 31.97 kB / 1.17 GB, free: 2.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3272, allocations: 73.98 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.3274, allocations: 105.9 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3274, allocations: 0 / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003127/0.3277, allocations: 133.5 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3277, allocations: 8 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3278, allocations: 0 / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3278, allocations: 4 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.3279, allocations: 23.92 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.3279, allocations: 3.938 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.813e-05/0.328, allocations: 19.88 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.328, allocations: 4.188 kB / 1.171 GB, free: 2.387 MB / 0.92 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.477e-05/0.3281, allocations: 125.7 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.3282, allocations: 11.89 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.3282, allocations: 12.36 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3282, allocations: 4 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3282, allocations: 0 / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3282, allocations: 0 / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.3287, allocations: 374.4 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3287, allocations: 4 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.615e-05/0.3287, allocations: 8 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3287, allocations: 0 / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.3288, allocations: 3.984 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3288, allocations: 3.938 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.3288, allocations: 7.984 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.3291, allocations: 199.5 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.3291, allocations: 81.06 kB / 1.171 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.3292, allocations: 7.984 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.704e-05/0.3293, allocations: 11.94 kB / 1.172 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.3293, allocations: 7.984 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.3293, allocations: 4 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.172e-05/0.3294, allocations: 95.2 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3294, allocations: 0 / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002667/0.3297, allocations: 19.94 kB / 1.172 GB, free: 1.324 MB / 0.92 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.0006316/0.3303, allocations: 0.7363 MB / 1.172 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003007/0.3306, allocations: 84 kB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3306, allocations: 3.938 kB / 1.172 GB, free: 488 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3307, allocations: 35.97 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.331, allocations: 13.97 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.3329, allocations: 1.517 MB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.3332, allocations: 0.6885 MB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.64e-05/0.3333, allocations: 7.984 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.3333, allocations: 23.44 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3333, allocations: 3.938 kB / 1.175 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01875/0.3521, allocations: 2.129 MB / 1.177 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.12, allocations: 10.45 kB / 1.177 GB, free: 12.1 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches