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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001063/0.001067, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001556/0.001556, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.253/1.253, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.354/2.354, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 67.91 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6303/0.6318, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002148/0.634, allocations: 0.8168 MB / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001451/0.6354, allocations: 1.07 MB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.471e-05/0.6355, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.069e-05/0.6356, allocations: 3.938 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.784e-05/0.6357, allocations: 7.922 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.636, allocations: 47.89 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.6361, allocations: 67.84 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.6362, allocations: 24.14 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.038e-05/0.6363, allocations: 27.86 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.561e-05/0.6364, allocations: 31.89 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.6364, allocations: 4 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.204e-05/0.6365, allocations: 16 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.096e-05/0.6365, allocations: 15.86 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.565e-05/0.6366, allocations: 27.86 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.6367, allocations: 79.75 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6368, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6368, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.6368, allocations: 0 / 1.019 GB, free: 0.5312 MB / 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.0005913/0.6374, allocations: 385.4 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.6374, allocations: 8.031 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.81e-05/0.6375, allocations: 34.75 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.6375, allocations: 8.844 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.6377, allocations: 180.2 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.6377, allocations: 8.375 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.6377, allocations: 8.375 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.6379, allocations: 73.91 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.638, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.638, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.638, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.6382, allocations: 43.95 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.6388, allocations: 328.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.639, allocations: 58.48 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.536e-05/0.6391, allocations: 28.97 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.6391, allocations: 11.98 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.6393, allocations: 67.39 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.6394, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004137/0.6398, allocations: 137.5 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.6398, allocations: 51.41 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.421e-05/0.6399, allocations: 126.2 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.64, allocations: 25.7 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.64, allocations: 96.05 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.64, allocations: 15.8 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.6401, allocations: 29.7 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.6402, allocations: 322.8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.6403, allocations: 27.97 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.6405, allocations: 78.03 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.6407, allocations: 109.8 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.6407, allocations: 3.938 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003048/0.641, allocations: 137.4 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.6411, allocations: 8 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6411, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.6411, allocations: 4 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.6412, allocations: 23.91 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.6412, allocations: 0 / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.352e-05/0.6413, allocations: 11.94 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.6413, allocations: 12.17 kB / 1.021 GB, free: 13.84 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 9.895e-05/0.6414, allocations: 122.3 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.6415, allocations: 11.89 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.6415, allocations: 8.375 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.6415, allocations: 7.938 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6415, allocations: 0 / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.6415, allocations: 0 / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.642, allocations: 374.5 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.642, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.365e-05/0.6421, allocations: 11.92 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6421, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.6421, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.6421, allocations: 7.938 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.6421, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.6424, allocations: 199.8 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.6424, allocations: 81.02 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.6425, allocations: 8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.6425, allocations: 11.92 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.6426, allocations: 7.984 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.6426, allocations: 4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.233e-05/0.6427, allocations: 91.27 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6427, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002463/0.6429, allocations: 28 kB / 1.022 GB, free: 12.79 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.0005879/0.6435, allocations: 0.7358 MB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002576/0.6438, allocations: 87.83 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6438, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.6439, allocations: 35.91 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.6442, allocations: 17.98 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.6459, allocations: 1.531 MB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.6462, allocations: 0.6926 MB / 1.025 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.291e-05/0.6462, allocations: 7.984 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.6463, allocations: 19.44 kB / 1.025 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of SimCode: time 5.31e-07/0.6463, allocations: 0 / 1.025 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.6581, allocations: 1.859 MB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.6583, allocations: 228.2 kB / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/2.219, allocations: 2.625 kB / 1.027 GB, free: 7.523 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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