Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.00709/0.00709, allocations: 102.7 kB / 15.73 MB, free: 6.047 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.001533/0.001533, allocations: 196.8 kB / 16.68 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 461.9 MB / 0.7348 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 63.91 kB / 1.054 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3645, allocations: 157.4 MB / 1.207 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002315/0.3669, allocations: 0.7477 MB / 1.208 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3685, allocations: 1.069 MB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.946e-05/0.3686, allocations: 7.938 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.89e-05/0.3687, allocations: 3.938 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.328e-05/0.3688, allocations: 15.86 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.3691, allocations: 51.83 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.3693, allocations: 67.83 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3694, allocations: 20.17 kB / 1.209 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.3695, allocations: 31.86 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.183e-05/0.3696, allocations: 31.89 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.3697, allocations: 12 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.598e-05/0.3698, allocations: 19.92 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.668e-05/0.3698, allocations: 15.92 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.592e-05/0.3698, allocations: 23.88 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.37, allocations: 83.73 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.37, allocations: 0 / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.864e-06/0.37, allocations: 0 / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.3701, allocations: 0 / 1.209 GB, free: 7.836 MB / 0.9669 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.0007342/0.3708, allocations: 383.5 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.3709, allocations: 12.62 kB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.609e-05/0.3709, allocations: 38.73 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/0.371, allocations: 8.844 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3711, allocations: 176.2 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.3712, allocations: 12.31 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.3712, allocations: 4.375 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.3714, allocations: 70.47 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3715, allocations: 0 / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.3715, allocations: 4 kB / 1.21 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3715, allocations: 4 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.3717, allocations: 43.95 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007389/0.3724, allocations: 324.6 kB / 1.21 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.3726, allocations: 54.56 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3727, allocations: 28.95 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.3728, allocations: 4 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.373, allocations: 79.34 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.373, allocations: 4 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004631/0.3735, allocations: 133.5 kB / 1.211 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.3736, allocations: 55.41 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3737, allocations: 117.8 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3737, allocations: 33.7 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.3738, allocations: 88.12 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3738, allocations: 19.75 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.3739, allocations: 25.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.374, allocations: 330.8 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.3742, allocations: 27.92 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3743, allocations: 77.92 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.3746, allocations: 105.9 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3746, allocations: 4 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003251/0.3749, allocations: 133.3 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3749, allocations: 8 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3749, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.375, allocations: 4 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.3751, allocations: 16.2 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.3751, allocations: 8 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.836e-05/0.3752, allocations: 19.89 kB / 1.212 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.3752, allocations: 4 kB / 1.212 GB, free: 5.148 MB / 0.9669 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.743e-05/0.3753, allocations: 121.7 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.3753, allocations: 4 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.3754, allocations: 12.38 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3754, allocations: 3.984 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3754, allocations: 0 / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3754, allocations: 4 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004919/0.3759, allocations: 378.3 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3759, allocations: 0 / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.376, allocations: 7.984 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.376, allocations: 0 / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.376, allocations: 4 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.376, allocations: 3.938 kB / 1.212 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.376, allocations: 0 / 1.212 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.3763, allocations: 207.7 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.3764, allocations: 81.11 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.3764, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.312e-05/0.3765, allocations: 11.92 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.3765, allocations: 7.984 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.3765, allocations: 7.984 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.911e-05/0.3766, allocations: 99.2 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3766, allocations: 3.938 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002692/0.3769, allocations: 23.91 kB / 1.213 GB, free: 4.082 MB / 0.9669 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.0006501/0.3775, allocations: 0.7398 MB / 1.213 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002838/0.3778, allocations: 79.88 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3778, allocations: 0 / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.3779, allocations: 27.98 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.3782, allocations: 22.42 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.38, allocations: 1.52 MB / 1.215 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.3803, allocations: 0.6963 MB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.477e-05/0.3804, allocations: 7.938 kB / 1.216 GB, free: 0.8203 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.74e-05/0.3804, allocations: 23.42 kB / 1.216 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3804, allocations: 0 / 1.216 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.3983, allocations: 2.127 MB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.674/8.072, allocations: 13.47 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches