Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.738/2.738, allocations: 476.7 MB / 0.7611 GB, free: 11.32 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.88 kB / 1.104 GB, free: 9.234 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.95/0.9519, allocations: 168.7 MB / 1.269 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002549/0.9545, allocations: 0.7534 MB / 1.269 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.9561, allocations: 1.074 MB / 1.271 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.9561, allocations: 0 / 1.271 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.055e-05/0.9562, allocations: 15.86 kB / 1.271 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.596e-05/0.9563, allocations: 11.88 kB / 1.271 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.9566, allocations: 51.83 kB / 1.271 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.9567, allocations: 75.7 kB / 1.271 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.9568, allocations: 8.188 kB / 1.271 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.245e-05/0.9569, allocations: 31.91 kB / 1.271 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.059e-05/0.957, allocations: 35.84 kB / 1.271 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.957, allocations: 8 kB / 1.271 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.765e-05/0.9571, allocations: 15.98 kB / 1.271 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.9571, allocations: 27.91 kB / 1.271 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.775e-05/0.9572, allocations: 27.86 kB / 1.271 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.9573, allocations: 77.52 kB / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9574, allocations: 0 / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.854e-06/0.9574, allocations: 0 / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.877e-06/0.9574, allocations: 0 / 1.271 GB, free: 2.953 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.0006192/0.958, allocations: 387.1 kB / 1.271 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.958, allocations: 8.031 kB / 1.271 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.405e-05/0.9581, allocations: 38.69 kB / 1.271 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.9581, allocations: 16.89 kB / 1.271 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.9583, allocations: 180.2 kB / 1.272 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.9583, allocations: 4.375 kB / 1.272 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.9583, allocations: 4.375 kB / 1.272 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.9585, allocations: 65.98 kB / 1.272 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.9585, allocations: 0 / 1.272 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.9585, allocations: 3.938 kB / 1.272 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.9585, allocations: 7.984 kB / 1.272 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.9587, allocations: 43.97 kB / 1.272 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006919/0.9594, allocations: 316.8 kB / 1.272 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.9596, allocations: 54.58 kB / 1.272 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.9597, allocations: 28.97 kB / 1.272 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.9597, allocations: 3.984 kB / 1.272 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.96, allocations: 79.33 kB / 1.272 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 3.566e-06/0.96, allocations: 3.984 kB / 1.272 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004277/0.9604, allocations: 129.6 kB / 1.272 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.9604, allocations: 55.41 kB / 1.272 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.9606, allocations: 133.7 kB / 1.272 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.9606, allocations: 25.7 kB / 1.272 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.9607, allocations: 92.08 kB / 1.273 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.9607, allocations: 23.81 kB / 1.273 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.9607, allocations: 29.72 kB / 1.273 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.9609, allocations: 322.8 kB / 1.273 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.961, allocations: 35.97 kB / 1.273 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.9611, allocations: 73.92 kB / 1.273 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.9614, allocations: 113.8 kB / 1.273 GB, free: 460 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.9614, allocations: 0 / 1.273 GB, free: 460 kB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003211/0.9617, allocations: 133.5 kB / 1.273 GB, free: 320 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.9617, allocations: 4 kB / 1.273 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.9617, allocations: 4 kB / 1.273 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.9617, allocations: 0 / 1.273 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.9619, allocations: 19.92 kB / 1.273 GB, free: 292 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.9619, allocations: 7.984 kB / 1.273 GB, free: 284 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.499e-05/0.962, allocations: 8.172 kB / 1.273 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.962, allocations: 8 kB / 1.273 GB, free: 268 kB / 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 0.0001221/0.9621, allocations: 138.1 kB / 1.273 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.9621, allocations: 7.953 kB / 1.273 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.9622, allocations: 4.375 kB / 1.273 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.9622, allocations: 0 / 1.273 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9622, allocations: 0 / 1.273 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.9622, allocations: 0 / 1.273 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.9627, allocations: 382.4 kB / 1.274 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.9627, allocations: 0 / 1.274 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.414e-05/0.9628, allocations: 7.984 kB / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.9628, allocations: 4 kB / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.9628, allocations: 0 / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.9628, allocations: 11.88 kB / 1.274 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.9628, allocations: 0 / 1.274 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.9631, allocations: 199.5 kB / 1.274 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.292e-05/0.9632, allocations: 85.06 kB / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.9632, allocations: 0 / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.655e-05/0.9633, allocations: 11.92 kB / 1.274 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.9633, allocations: 8 kB / 1.274 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.9633, allocations: 0 / 1.274 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.674e-05/0.9634, allocations: 95.92 kB / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.9634, allocations: 0 / 1.274 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002574/0.9637, allocations: 20 kB / 1.274 GB, free: 15.2 MB / 0.9825 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.0007107/0.9644, allocations: 0.7435 MB / 1.275 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000297/0.9647, allocations: 79.88 kB / 1.275 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9647, allocations: 0 / 1.275 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.9648, allocations: 44.39 kB / 1.275 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.9651, allocations: 8.266 kB / 1.275 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.967, allocations: 1.531 MB / 1.277 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.9674, allocations: 0.6924 MB / 1.277 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.69e-05/0.9674, allocations: 4 kB / 1.277 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.9675, allocations: 27.42 kB / 1.277 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.9675, allocations: 0 / 1.277 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.993, allocations: 2.127 MB / 1.279 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/9.196, allocations: 13.67 kB / 1.279 GB, free: 9.957 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.25316195981577]