Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.01063/0.01063, allocations: 104.6 kB / 15.74 MB, free: 6.488 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.00165/0.00165, allocations: 193 kB / 16.67 MB, free: 6.379 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.91 kB / 1.054 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3382, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.0022/0.3405, allocations: 0.7573 MB / 1.208 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.3423, allocations: 1.159 MB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.129e-05/0.3424, allocations: 0 / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.527e-05/0.3425, allocations: 7.938 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/0.3426, allocations: 7.875 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006507/0.3433, allocations: 137.8 kB / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.3435, allocations: 127.8 kB / 1.209 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3437, allocations: 24.17 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.3438, allocations: 51.78 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.3439, allocations: 51.86 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.344, allocations: 12 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.788e-05/0.3441, allocations: 27.94 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.407e-05/0.3441, allocations: 11.98 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.476e-05/0.3442, allocations: 47.83 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.3444, allocations: 123.6 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3444, allocations: 0 / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3444, allocations: 4 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.3445, allocations: 0 / 1.21 GB, free: 7.562 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007601/0.3452, allocations: 421.2 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.3453, allocations: 8.625 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.437e-05/0.3453, allocations: 34.75 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.066e-05/0.3454, allocations: 8.844 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.3456, allocations: 184.1 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.3456, allocations: 8.375 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.3456, allocations: 8.375 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.3459, allocations: 81.97 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3459, allocations: 0 / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3459, allocations: 3.938 kB / 1.21 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3459, allocations: 0 / 1.21 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.3461, allocations: 51.89 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005428/0.3467, allocations: 344.6 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3469, allocations: 62.58 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.347, allocations: 36.95 kB / 1.211 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.347, allocations: 3.984 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.3473, allocations: 87.36 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.3473, allocations: 0 / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004663/0.3477, allocations: 149.5 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.3478, allocations: 51.41 kB / 1.211 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.145e-05/0.3479, allocations: 125.8 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.3479, allocations: 29.7 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.348, allocations: 96.05 kB / 1.211 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.348, allocations: 31.66 kB / 1.211 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-05/0.3481, allocations: 37.7 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3483, allocations: 326.8 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.3484, allocations: 47.97 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.3486, allocations: 89.11 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.3489, allocations: 146.8 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.349, allocations: 11.94 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004732/0.3494, allocations: 207.1 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/0.3495, allocations: 37.69 kB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3495, allocations: 4 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3495, allocations: 0 / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.3496, allocations: 24.14 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3497, allocations: 320 / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.3499, allocations: 35.95 kB / 1.212 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.3499, allocations: 7.938 kB / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001222/0.35, allocations: 125.8 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.3501, allocations: 11.89 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003398/0.3504, allocations: 126 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3504, allocations: 0 / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3504, allocations: 0 / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3504, allocations: 0 / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.3509, allocations: 386.3 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3509, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/0.351, allocations: 11.98 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.351, allocations: 4 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.351, allocations: 0 / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.351, allocations: 3.938 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.351, allocations: 3.938 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.3514, allocations: 219.3 kB / 1.213 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.3514, allocations: 81.02 kB / 1.213 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.3515, allocations: 8 kB / 1.213 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.156e-05/0.3516, allocations: 11.92 kB / 1.213 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.3516, allocations: 11.92 kB / 1.213 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.3516, allocations: 4 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.535e-05/0.3517, allocations: 91.27 kB / 1.213 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3517, allocations: 0 / 1.213 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002782/0.352, allocations: 24 kB / 1.213 GB, free: 3.312 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006736/0.3526, allocations: 0.7475 MB / 1.214 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004022/0.3531, allocations: 179.2 kB / 1.214 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3531, allocations: 320 / 1.214 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.3532, allocations: 39.98 kB / 1.214 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.3535, allocations: 19.92 kB / 1.214 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.3557, allocations: 1.719 MB / 1.216 GB, free: 464 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.356, allocations: 0.6924 MB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.788e-05/0.3561, allocations: 4.141 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.3561, allocations: 23.42 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of SimCode: time 8.02e-07/0.3561, allocations: 0 / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.3775, allocations: 2.618 MB / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.134, allocations: 3.375 kB / 1.219 GB, free: 13.24 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches