Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.0101/0.0101, allocations: 101.2 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.002141/0.002141, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.821/2.821, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 67.89 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3597, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00225/0.362, allocations: 0.745 MB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001405/0.3634, allocations: 1.081 MB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.094e-05/0.3635, allocations: 3.938 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.399e-05/0.3636, allocations: 3.938 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.43e-05/0.3637, allocations: 7.875 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.3641, allocations: 55.81 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.3643, allocations: 67.84 kB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.3644, allocations: 20.17 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3645, allocations: 31.84 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.672e-05/0.3646, allocations: 31.91 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.3646, allocations: 4 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.3647, allocations: 19.98 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.698e-05/0.3647, allocations: 15.94 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.612e-05/0.3648, allocations: 31.84 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.365, allocations: 87.67 kB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.365, allocations: 3.938 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.412e-06/0.365, allocations: 0 / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.365, allocations: 0 / 1.209 GB, free: 7.906 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.0005543/0.3656, allocations: 379.5 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3656, allocations: 12.03 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.3657, allocations: 34.75 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.3657, allocations: 8.844 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3658, allocations: 176.2 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3659, allocations: 4.375 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.3659, allocations: 8.375 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.3661, allocations: 78.41 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3661, allocations: 4 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.3661, allocations: 0 / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.3661, allocations: 0 / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.3663, allocations: 43.95 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006141/0.3669, allocations: 324.6 kB / 1.21 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.3671, allocations: 54.55 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.3672, allocations: 36.95 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.3673, allocations: 0 / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3675, allocations: 83.39 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3675, allocations: 4 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004164/0.368, allocations: 125.5 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.368, allocations: 55.39 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.092e-05/0.3681, allocations: 117.8 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3681, allocations: 25.7 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.3682, allocations: 96.12 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.3682, allocations: 19.75 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-05/0.3683, allocations: 29.7 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3684, allocations: 318.8 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.3685, allocations: 27.97 kB / 1.211 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.3686, allocations: 85.84 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3689, allocations: 109.9 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3689, allocations: 0 / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003096/0.3692, allocations: 133.4 kB / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3693, allocations: 5.562 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3693, allocations: 4 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3693, allocations: 8.156 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3694, allocations: 23.97 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3694, allocations: 0 / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.551e-05/0.3695, allocations: 11.91 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-05/0.3696, allocations: 11.98 kB / 1.212 GB, free: 5.223 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.956e-05/0.3697, allocations: 121.7 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.3697, allocations: 4 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.855e-05/0.3698, allocations: 8.375 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3698, allocations: 4 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3698, allocations: 0 / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3698, allocations: 4 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.3703, allocations: 374.3 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3703, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.3703, allocations: 11.98 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3703, allocations: 0 / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.3704, allocations: 0 / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3704, allocations: 7.938 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3704, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.3707, allocations: 207.3 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.3707, allocations: 77.11 kB / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.3707, allocations: 8 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.284e-05/0.3708, allocations: 11.92 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.3709, allocations: 8 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.3709, allocations: 7.984 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.91e-05/0.3709, allocations: 91.88 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.371, allocations: 0 / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002637/0.3712, allocations: 23.91 kB / 1.213 GB, free: 4.168 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.0005802/0.3718, allocations: 0.7367 MB / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002832/0.3721, allocations: 83.81 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3721, allocations: 0 / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.3722, allocations: 32.48 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.3725, allocations: 30.06 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.3742, allocations: 1.514 MB / 1.215 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.3745, allocations: 0.6988 MB / 1.216 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.474e-05/0.3745, allocations: 11.88 kB / 1.216 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.931e-05/0.3746, allocations: 23.42 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of SimCode: time 2.01e-07/0.3746, allocations: 0 / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.396, allocations: 2.153 MB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/8.007, allocations: 4.375 kB / 1.218 GB, free: 14.91 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches