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.007508/0.007508, allocations: 103.1 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.001847/0.001847, allocations: 189.1 kB / 16.67 MB, free: 5.984 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.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.817/2.817, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 64.09 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3334, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002129/0.3356, allocations: 0.7592 MB / 1.208 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.3373, allocations: 1.163 MB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.899e-05/0.3374, allocations: 0 / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.889e-05/0.3374, allocations: 3.938 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.669e-05/0.3375, allocations: 11.88 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.3382, allocations: 130.5 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.3384, allocations: 131.8 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3385, allocations: 28.17 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.3387, allocations: 51.83 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.3388, allocations: 43.88 kB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/0.3389, allocations: 12 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.612e-05/0.339, allocations: 27.98 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.781e-05/0.339, allocations: 15.94 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.691e-05/0.3391, allocations: 47.83 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.3393, allocations: 123.5 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3393, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3393, allocations: 0 / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.3393, allocations: 0 / 1.21 GB, free: 7.605 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.0007328/0.3401, allocations: 426.2 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3401, allocations: 8.625 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.3402, allocations: 38.75 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.065e-05/0.3403, allocations: 8.844 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.3404, allocations: 176.2 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.3404, allocations: 4.375 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.3405, allocations: 12.38 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.3407, allocations: 81.89 kB / 1.21 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3408, allocations: 4 kB / 1.21 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.3408, allocations: 7.938 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.3408, allocations: 4 kB / 1.21 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.341, allocations: 47.95 kB / 1.211 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/0.3416, allocations: 344.5 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.3418, allocations: 62.55 kB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.686e-05/0.3419, allocations: 36.95 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.3419, allocations: 4 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.3422, allocations: 87.39 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.3422, allocations: 4 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004827/0.3427, allocations: 145.5 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.3428, allocations: 51.41 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.3429, allocations: 121.8 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3429, allocations: 25.7 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.343, allocations: 100 kB / 1.211 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.343, allocations: 27.73 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.35e-05/0.3431, allocations: 37.64 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3432, allocations: 326.8 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3434, allocations: 47.97 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.3435, allocations: 93.05 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.3438, allocations: 146.8 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3438, allocations: 0 / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004406/0.3443, allocations: 219.1 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.3443, allocations: 33.7 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.3443, allocations: 4 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3444, allocations: 0 / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3445, allocations: 15.98 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3445, allocations: 3.938 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.3447, allocations: 40.11 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.3447, allocations: 11.94 kB / 1.212 GB, free: 4.562 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.0001045/0.3448, allocations: 120.4 kB / 1.213 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.3449, allocations: 11.89 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002996/0.3452, allocations: 130.2 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3452, allocations: 4 kB / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3452, allocations: 0 / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3452, allocations: 0 / 1.213 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000456/0.3457, allocations: 378.4 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3457, allocations: 0 / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.336e-05/0.3457, allocations: 15.98 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3458, allocations: 0 / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3458, allocations: 4 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.3458, allocations: 7.875 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3458, allocations: 3.938 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003203/0.3461, allocations: 219.4 kB / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.3462, allocations: 81.02 kB / 1.213 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3462, allocations: 0 / 1.213 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.492e-05/0.3463, allocations: 15.92 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.3463, allocations: 7.984 kB / 1.213 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.3464, allocations: 11.94 kB / 1.213 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.091e-05/0.3464, allocations: 91.81 kB / 1.213 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3464, allocations: 0 / 1.213 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002735/0.3467, allocations: 20 kB / 1.214 GB, free: 3.355 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.0006704/0.3474, allocations: 0.7553 MB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003934/0.3478, allocations: 175.3 kB / 1.214 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3478, allocations: 0 / 1.214 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.3479, allocations: 44.22 kB / 1.214 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.3482, allocations: 21.48 kB / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.3503, allocations: 1.716 MB / 1.216 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.3506, allocations: 0.6924 MB / 1.217 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.051e-05/0.3506, allocations: 4 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.3507, allocations: 23.42 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of SimCode: time 1.894e-06/0.3507, allocations: 0 / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.3702, allocations: 2.56 MB / 1.219 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.232, allocations: 11.33 kB / 1.219 GB, free: 13.33 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