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.001421/0.00142, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001564/0.001564, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.346/1.346, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.418/2.418, allocations: 437 MB / 0.7101 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 0.8689 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6603/0.6616, allocations: 151.6 MB / 1.017 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001486/0.6631, allocations: 0.8245 MB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009412/0.6641, allocations: 1.07 MB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.591e-05/0.6641, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.162e-05/0.6642, allocations: 7.922 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.836e-05/0.6642, allocations: 7.938 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.6644, allocations: 47.89 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.519e-05/0.6644, allocations: 63.84 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.976e-05/0.6645, allocations: 28.11 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.086e-05/0.6646, allocations: 31.91 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.619e-05/0.6646, allocations: 27.91 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.6646, allocations: 11.94 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.6647, allocations: 23.92 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.6647, allocations: 15.97 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.6647, allocations: 35.8 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.486e-05/0.6648, allocations: 67.81 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.6648, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.81e-07/0.6648, allocations: 4 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.695e-06/0.6648, allocations: 0 / 1.019 GB, free: 396 kB / 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.0003708/0.6652, allocations: 385.4 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.233e-05/0.6653, allocations: 8.031 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.405e-05/0.6653, allocations: 38.69 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.041e-05/0.6653, allocations: 4.938 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.626e-05/0.6654, allocations: 176.2 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-06/0.6654, allocations: 4.359 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.6654, allocations: 4.375 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.6656, allocations: 77.86 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-06/0.6656, allocations: 0 / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.6656, allocations: 4 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-06/0.6656, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.6658, allocations: 47.95 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004778/0.6662, allocations: 328.5 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.6664, allocations: 54.55 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.759e-05/0.6665, allocations: 28.97 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.6665, allocations: 0 / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.6667, allocations: 83.36 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.595e-06/0.6667, allocations: 96 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003225/0.667, allocations: 129.5 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.667, allocations: 55.41 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.6671, allocations: 121.8 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.6671, allocations: 33.7 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.567e-05/0.6672, allocations: 92.05 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.6672, allocations: 15.8 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.315e-05/0.6672, allocations: 29.7 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.29e-05/0.6673, allocations: 322.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.6674, allocations: 31.97 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.6675, allocations: 82.3 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.6678, allocations: 105.9 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.6678, allocations: 4 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002653/0.668, allocations: 125.7 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.6681, allocations: 4 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.6681, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/0.6681, allocations: 7.938 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.6682, allocations: 19.98 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.6682, allocations: 4 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.969e-05/0.6683, allocations: 19.83 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.6683, allocations: 4 kB / 1.021 GB, free: 13.71 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 7.69e-05/0.6684, allocations: 135.9 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.6684, allocations: 7.891 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.319e-05/0.6684, allocations: 12.38 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.6684, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.6684, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.6684, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.6688, allocations: 370.4 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6689, allocations: 7.938 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.722e-05/0.6689, allocations: 4 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.6689, allocations: 7.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.6689, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.6689, allocations: 3.938 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.6689, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.6692, allocations: 199.4 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.6692, allocations: 89 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.6692, allocations: 0 / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.688e-05/0.6693, allocations: 7.938 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.6694, allocations: 11.98 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.6694, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.541e-05/0.6694, allocations: 103.4 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6694, allocations: 3.938 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002277/0.6697, allocations: 16 kB / 1.022 GB, free: 12.64 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.0004851/0.6702, allocations: 0.7398 MB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.6704, allocations: 87.92 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6704, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.871e-05/0.6705, allocations: 36.52 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.6708, allocations: 15.94 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.6721, allocations: 1.517 MB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.6723, allocations: 0.6924 MB / 1.025 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.921e-05/0.6724, allocations: 11.94 kB / 1.025 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.603e-05/0.6724, allocations: 23.42 kB / 1.025 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6724, allocations: 0 / 1.025 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.001/1.673, allocations: 1.93 MB / 1.027 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/1.673, allocations: 222.7 kB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/3.506, allocations: 0 / 1.028 GB, free: 7.34 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