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.004949/0.004949, allocations: 99.69 kB / 15.73 MB, free: 6.055 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.001429/0.001429, allocations: 192.7 kB / 16.67 MB, free: 5.961 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.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.376/2.376, allocations: 437.1 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.001801, allocations: 67.89 kB / 1.018 GB, free: 9.832 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6704/0.6722, allocations: 151.6 MB / 1.166 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001734/0.674, allocations: 0.7602 MB / 1.167 GB, free: 2.969 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.6752, allocations: 1.068 MB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.049e-05/0.6753, allocations: 0 / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.717e-05/0.6753, allocations: 7.938 kB / 1.168 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.6754, allocations: 15.86 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.6756, allocations: 51.83 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.6758, allocations: 71.77 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.6759, allocations: 20.17 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.049e-05/0.6759, allocations: 31.91 kB / 1.168 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.002e-05/0.676, allocations: 31.84 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.676, allocations: 8 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.554e-05/0.6761, allocations: 23.98 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.6761, allocations: 19.92 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.512e-05/0.6762, allocations: 39.78 kB / 1.168 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.6763, allocations: 71.41 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.6763, allocations: 4 kB / 1.168 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6763, allocations: 0 / 1.168 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.6764, allocations: 0 / 1.168 GB, free: 1.496 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.0005115/0.6769, allocations: 383.1 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.6769, allocations: 8.922 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.815e-05/0.677, allocations: 34.75 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.677, allocations: 16.89 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.6771, allocations: 176.2 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.6771, allocations: 4.359 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.6772, allocations: 8.312 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.6774, allocations: 69.98 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.6774, allocations: 0 / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-06/0.6774, allocations: 0 / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.6774, allocations: 4 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.6776, allocations: 47.95 kB / 1.169 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.6782, allocations: 316.7 kB / 1.169 GB, free: 308 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.6783, allocations: 58.48 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.667e-05/0.6784, allocations: 32.97 kB / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.6785, allocations: 0 / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.6787, allocations: 87.34 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.6787, allocations: 0 / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004068/0.6791, allocations: 121.9 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.6791, allocations: 59.41 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.6793, allocations: 129.8 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.6793, allocations: 25.7 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.214e-05/0.6793, allocations: 92.08 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.6794, allocations: 11.91 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.6794, allocations: 33.7 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.6795, allocations: 322.8 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.6797, allocations: 35.97 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.6798, allocations: 82.28 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.68, allocations: 109.8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6801, allocations: 4 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003054/0.6804, allocations: 133.4 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.6804, allocations: 4 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6804, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.6804, allocations: 4 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.6805, allocations: 19.98 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.6806, allocations: 8.062 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.6806, allocations: 12.16 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.6807, allocations: 8 kB / 1.171 GB, free: 14.81 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.54e-05/0.6808, allocations: 129.7 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.6808, allocations: 7.938 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.6808, allocations: 12.38 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.6808, allocations: 3.984 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.6808, allocations: 0 / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6808, allocations: 0 / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00046/0.6813, allocations: 374.4 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.6813, allocations: 0 / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.933e-05/0.6814, allocations: 15.98 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.6814, allocations: 0 / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.6814, allocations: 4 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.6814, allocations: 3.938 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6814, allocations: 0 / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.6817, allocations: 203.4 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.6818, allocations: 89.05 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.6818, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.477e-05/0.6819, allocations: 7.938 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.6819, allocations: 15.92 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.6819, allocations: 0 / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.478e-05/0.682, allocations: 91.27 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.682, allocations: 8 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002348/0.6822, allocations: 12 kB / 1.172 GB, free: 13.75 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.0006008/0.6828, allocations: 0.7397 MB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002716/0.6831, allocations: 83.81 kB / 1.172 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.6831, allocations: 0 / 1.172 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.6832, allocations: 39.95 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.6835, allocations: 12.5 kB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.6851, allocations: 1.509 MB / 1.174 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.6854, allocations: 0.6846 MB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.6855, allocations: 7.984 kB / 1.175 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.6855, allocations: 25.19 kB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.6855, allocations: 0 / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.474/2.159, allocations: 2.102 MB / 1.177 GB, free: 8.527 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/12.68, allocations: 11 kB / 1.177 GB, free: 8.52 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 & /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=400 --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