Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001287/0.001287, allocations: 112.4 kB / 16.45 MB, free: 6.496 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.001279/0.001279, allocations: 195.7 kB / 19.41 MB, free: 3.68 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.428/1.428, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.811/2.811, allocations: 476.7 MB / 0.7611 GB, free: 11.31 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.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002733/0.002733, allocations: 67.89 kB / 1.104 GB, free: 9.289 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8277/0.8305, allocations: 168.7 MB / 1.269 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002151/0.8326, allocations: 0.6788 MB / 1.269 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.8341, allocations: 1.046 MB / 1.27 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.192e-05/0.8342, allocations: 0 / 1.27 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.897e-05/0.8342, allocations: 3.938 kB / 1.27 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.218e-05/0.8343, allocations: 11.88 kB / 1.27 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.8346, allocations: 43.83 kB / 1.27 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.8347, allocations: 51.84 kB / 1.271 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.8348, allocations: 8 kB / 1.271 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.305e-05/0.8349, allocations: 19.92 kB / 1.271 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.447e-05/0.835, allocations: 27.89 kB / 1.271 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.835, allocations: 4 kB / 1.271 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.08e-05/0.835, allocations: 16 kB / 1.271 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.342e-05/0.8351, allocations: 7.984 kB / 1.271 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.088e-05/0.8351, allocations: 19.86 kB / 1.271 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.8353, allocations: 65.55 kB / 1.271 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.8353, allocations: 0 / 1.271 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8353, allocations: 0 / 1.271 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.8353, allocations: 4 kB / 1.271 GB, free: 3.184 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000649/0.8359, allocations: 363.3 kB / 1.271 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.836, allocations: 12.03 kB / 1.271 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.066e-05/0.836, allocations: 34.73 kB / 1.271 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.836, allocations: 4.938 kB / 1.271 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.8362, allocations: 168.3 kB / 1.271 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.8362, allocations: 384 / 1.271 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.8362, allocations: 12.38 kB / 1.271 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.8364, allocations: 62.16 kB / 1.271 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.8364, allocations: 7.938 kB / 1.271 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.8365, allocations: 4 kB / 1.271 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.8365, allocations: 0 / 1.271 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.8366, allocations: 43.94 kB / 1.271 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.8371, allocations: 272.8 kB / 1.272 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/0.8373, allocations: 50.55 kB / 1.272 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.716e-05/0.8374, allocations: 34.44 kB / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.8374, allocations: 7.938 kB / 1.272 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.8376, allocations: 79.38 kB / 1.272 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.8376, allocations: 0 / 1.272 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004341/0.8381, allocations: 121.6 kB / 1.272 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.8381, allocations: 55.41 kB / 1.272 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.883e-05/0.8382, allocations: 109.8 kB / 1.272 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.8382, allocations: 25.7 kB / 1.272 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.8383, allocations: 88.14 kB / 1.272 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.8383, allocations: 15.84 kB / 1.272 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.8384, allocations: 21.7 kB / 1.272 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.8385, allocations: 322.8 kB / 1.273 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.801e-05/0.8386, allocations: 23.97 kB / 1.273 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.8387, allocations: 43.42 kB / 1.273 GB, free: 1 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.8389, allocations: 91.27 kB / 1.273 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8389, allocations: 0 / 1.273 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002575/0.8392, allocations: 105.6 kB / 1.273 GB, free: 0.7891 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.8392, allocations: 10.34 kB / 1.273 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.8392, allocations: 0 / 1.273 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.8392, allocations: 0 / 1.273 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.8394, allocations: 19.92 kB / 1.273 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.8394, allocations: 160 / 1.273 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.652e-05/0.8394, allocations: 7.984 kB / 1.273 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.8394, allocations: 4 kB / 1.273 GB, free: 0.75 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001081/0.8395, allocations: 125.9 kB / 1.273 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.8396, allocations: 7.953 kB / 1.273 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.8398, allocations: 102 kB / 1.273 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.8398, allocations: 0 / 1.273 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.8398, allocations: 4 kB / 1.273 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.8399, allocations: 0 / 1.273 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004717/0.8403, allocations: 354.6 kB / 1.273 GB, free: 92 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.8403, allocations: 0.625 kB / 1.273 GB, free: 92 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-05/0.8404, allocations: 11.98 kB / 1.273 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.8404, allocations: 0 / 1.273 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.8404, allocations: 4 kB / 1.273 GB, free: 76 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.8404, allocations: 11.92 kB / 1.273 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8404, allocations: 0 / 1.273 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.8407, allocations: 203.3 kB / 1.274 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.8408, allocations: 81.11 kB / 1.274 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.8408, allocations: 0 / 1.274 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.848e-05/0.8409, allocations: 11.98 kB / 1.274 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.8409, allocations: 7.922 kB / 1.274 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.8409, allocations: 4 kB / 1.274 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.747e-05/0.841, allocations: 83.28 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.841, allocations: 0 / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002371/0.8412, allocations: 12 kB / 1.274 GB, free: 15.63 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0006634/0.8419, allocations: 0.7402 MB / 1.275 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.8422, allocations: 63.89 kB / 1.275 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8422, allocations: 0 / 1.275 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.8423, allocations: 23.98 kB / 1.275 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.8425, allocations: 22.61 kB / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.8441, allocations: 1.388 MB / 1.276 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.8445, allocations: 0.6807 MB / 1.277 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.175e-05/0.8445, allocations: 8 kB / 1.277 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.775e-05/0.8445, allocations: 15.44 kB / 1.277 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.8445, allocations: 0 / 1.277 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.8697, allocations: 1.759 MB / 1.278 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/9.154, allocations: 15.91 kB / 1.278 GB, free: 10.88 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.146841713692993]