Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.00763/0.00763, allocations: 102.4 kB / 15.73 MB, free: 6.043 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.00193/0.00193, allocations: 199.2 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.564/2.564, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.91 kB / 1.054 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9473/0.9488, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001877/0.9507, allocations: 0.749 MB / 1.208 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.9521, allocations: 1.069 MB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/0.9522, allocations: 0 / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.398e-05/0.9522, allocations: 7.875 kB / 1.209 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.773e-05/0.9524, allocations: 11.92 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.9527, allocations: 58.81 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.9528, allocations: 67.78 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.9529, allocations: 24.17 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.663e-05/0.953, allocations: 31.86 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.295e-05/0.9531, allocations: 35.83 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.9531, allocations: 8 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.623e-05/0.9532, allocations: 15.98 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.409e-05/0.9532, allocations: 15.94 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.608e-05/0.9532, allocations: 31.84 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.9534, allocations: 79.73 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.9534, allocations: 0 / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9534, allocations: 4 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.9534, allocations: 0 / 1.209 GB, free: 11.31 MB / 0.9356 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.0005655/0.954, allocations: 377.5 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.954, allocations: 8.031 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.63e-05/0.9541, allocations: 34.75 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.173e-05/0.9541, allocations: 12.83 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.9543, allocations: 184 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.9543, allocations: 4.375 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.9543, allocations: 8.375 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.9545, allocations: 73.91 kB / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.9546, allocations: 0 / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.9546, allocations: 4 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.9546, allocations: 0 / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.9548, allocations: 51.89 kB / 1.21 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006592/0.9554, allocations: 320.7 kB / 1.21 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.9556, allocations: 58.58 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.9557, allocations: 28.95 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.9558, allocations: 4 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.956, allocations: 83.28 kB / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.956, allocations: 0 / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004186/0.9564, allocations: 125.6 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.9565, allocations: 59.39 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.9566, allocations: 117.8 kB / 1.211 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.9566, allocations: 33.7 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.9566, allocations: 92.12 kB / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.9567, allocations: 15.81 kB / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.9567, allocations: 29.7 kB / 1.211 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.9568, allocations: 322.8 kB / 1.211 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.957, allocations: 31.97 kB / 1.211 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.9572, allocations: 77.92 kB / 1.212 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.9575, allocations: 109.8 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9575, allocations: 0 / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004028/0.9579, allocations: 129.6 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.958, allocations: 8.031 kB / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.958, allocations: 0 / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.958, allocations: 7.984 kB / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.9581, allocations: 19.92 kB / 1.212 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.9582, allocations: 4.312 kB / 1.212 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.9583, allocations: 15.92 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.9583, allocations: 4 kB / 1.212 GB, free: 8.633 MB / 0.9356 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 0.0001146/0.9584, allocations: 127.6 kB / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.9585, allocations: 7.906 kB / 1.212 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.9585, allocations: 12.38 kB / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.9585, allocations: 0 / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007114/0.9593, allocations: 382.3 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.9593, allocations: 0 / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.944e-05/0.9593, allocations: 11.98 kB / 1.212 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.9594, allocations: 3.938 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.9594, allocations: 4 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.9594, allocations: 3.938 kB / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.9594, allocations: 0 / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.9598, allocations: 207.3 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.9599, allocations: 81.11 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.9599, allocations: 4 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.96, allocations: 15.92 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.9601, allocations: 4 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.9601, allocations: 7.984 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.211e-05/0.9602, allocations: 87.28 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.9602, allocations: 0 / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000385/0.9606, allocations: 19.98 kB / 1.213 GB, free: 7.57 MB / 0.9356 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.0007628/0.9613, allocations: 0.7435 MB / 1.213 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.9616, allocations: 80.25 kB / 1.214 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.9616, allocations: 4.062 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.9618, allocations: 35.92 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.962, allocations: 15.92 kB / 1.214 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.9637, allocations: 1.517 MB / 1.215 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.964, allocations: 0.6885 MB / 1.216 GB, free: 4.316 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.51e-05/0.964, allocations: 7.938 kB / 1.216 GB, free: 4.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.825e-05/0.9641, allocations: 26.09 kB / 1.216 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.9641, allocations: 0 / 1.216 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.9833, allocations: 2.143 MB / 1.218 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.613/8.597, allocations: 20.81 kB / 1.218 GB, free: 2.309 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches