Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SampleTrigger,fileNamePrefix="Buildings_10_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_10_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.009155/0.009155, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001791/0.001791, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.489/2.489, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001503, allocations: 63.91 kB / 1.018 GB, free: 9.887 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8737/0.8752, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002571/0.8778, allocations: 0.76 MB / 1.167 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.8795, allocations: 1.068 MB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.771e-05/0.8796, allocations: 0 / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.8797, allocations: 7.875 kB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.8798, allocations: 15.84 kB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.8802, allocations: 56.64 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.8804, allocations: 71.77 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.8805, allocations: 20.17 kB / 1.168 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.649e-05/0.8806, allocations: 27.86 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.369e-05/0.8807, allocations: 35.89 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.8807, allocations: 4 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.821e-05/0.8808, allocations: 23.98 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.649e-05/0.8808, allocations: 19.86 kB / 1.168 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.123e-05/0.8809, allocations: 35.86 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.8811, allocations: 74.42 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.8811, allocations: 0 / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.402e-06/0.8811, allocations: 3.938 kB / 1.168 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.8811, allocations: 0 / 1.168 GB, free: 1.578 MB / 0.8887 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.0005788/0.8817, allocations: 388.1 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.8818, allocations: 12.92 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.8818, allocations: 30.75 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.8818, allocations: 8.891 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.882, allocations: 180.3 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.882, allocations: 12.36 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.882, allocations: 4.375 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000214/0.8823, allocations: 65.92 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.8823, allocations: 4 kB / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.8823, allocations: 4 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.8823, allocations: 0 / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.8825, allocations: 43.95 kB / 1.169 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.8832, allocations: 316.8 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.8834, allocations: 62.58 kB / 1.169 GB, free: 320 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.8835, allocations: 24.97 kB / 1.169 GB, free: 292 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.8835, allocations: 4 kB / 1.169 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.8838, allocations: 79.33 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.8838, allocations: 0 / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004883/0.8843, allocations: 137.5 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.542e-05/0.8844, allocations: 55.41 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.8845, allocations: 125.8 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.8846, allocations: 29.7 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.8846, allocations: 92.08 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.8846, allocations: 15.91 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/0.8847, allocations: 29.7 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.8849, allocations: 322.8 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.885, allocations: 35.91 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.8851, allocations: 73.98 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/0.8854, allocations: 113.8 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.8854, allocations: 3.938 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003015/0.8857, allocations: 129.5 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.8857, allocations: 4 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.8857, allocations: 4 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.8858, allocations: 4 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.8859, allocations: 19.92 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.8859, allocations: 0 / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.737e-05/0.886, allocations: 23.94 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.886, allocations: 4.219 kB / 1.171 GB, free: 14.89 MB / 0.9044 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.331e-05/0.8861, allocations: 128.2 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.8861, allocations: 7.953 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.004e-05/0.8862, allocations: 12.36 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.8862, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.8862, allocations: 4 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8862, allocations: 3.938 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.8867, allocations: 370.5 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.8867, allocations: 3.984 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.555e-05/0.8867, allocations: 8 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.8867, allocations: 7.922 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.8868, allocations: 4 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.8868, allocations: 3.938 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8868, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.8871, allocations: 199.5 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.006e-05/0.8871, allocations: 85.05 kB / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.8871, allocations: 0 / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.894e-05/0.8872, allocations: 7.938 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.8873, allocations: 7.984 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.8873, allocations: 11.94 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.657e-05/0.8873, allocations: 95.86 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8873, allocations: 0 / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002464/0.8876, allocations: 16 kB / 1.172 GB, free: 13.84 MB / 0.9044 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.0006052/0.8882, allocations: 0.7435 MB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002877/0.8885, allocations: 79.88 kB / 1.172 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8885, allocations: 0 / 1.172 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.8886, allocations: 43.91 kB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.8889, allocations: 7.938 kB / 1.172 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.8907, allocations: 1.525 MB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.891, allocations: 0.6846 MB / 1.175 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.587e-05/0.891, allocations: 7.984 kB / 1.175 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.8911, allocations: 23.44 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of SimCode: time 1.9e-07/0.8911, allocations: 0 / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.9104, allocations: 2.097 MB / 1.177 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.683, allocations: 12.62 kB / 1.177 GB, free: 8.598 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches