Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 110.6 kB / 16.4 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.001891/0.001891, allocations: 191.7 kB / 19.36 MB, free: 3.75 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.43/1.43, allocations: 222.9 MB / 245.1 MB, free: 15 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.782/2.782, allocations: 469.8 MB / 0.7491 GB, free: 3.016 MB / 0.6075 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.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00282/0.00282, allocations: 68.03 kB / 1.073 GB, free: 132 kB / 0.8731 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8822/0.8851, allocations: 159.1 MB / 1.229 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002378/0.8875, allocations: 0.7416 MB / 1.229 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.8893, allocations: 1.17 MB / 1.231 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.803e-05/0.8893, allocations: 4 kB / 1.231 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.629e-05/0.8894, allocations: 7.922 kB / 1.231 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.005e-05/0.8895, allocations: 7.875 kB / 1.231 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000545/0.89, allocations: 138.2 kB / 1.231 GB, free: 2.863 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.8903, allocations: 131.8 kB / 1.231 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.8904, allocations: 16.19 kB / 1.231 GB, free: 2.715 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.8905, allocations: 47.84 kB / 1.231 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.8906, allocations: 59.8 kB / 1.231 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.8907, allocations: 12 kB / 1.231 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.289e-05/0.8908, allocations: 23.98 kB / 1.231 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.8908, allocations: 15.92 kB / 1.231 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.708e-05/0.8909, allocations: 47.83 kB / 1.231 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.8911, allocations: 117.4 kB / 1.231 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.8911, allocations: 0 / 1.231 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8911, allocations: 0 / 1.231 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.8911, allocations: 0 / 1.231 GB, free: 2.398 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006774/0.8918, allocations: 436.8 kB / 1.232 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.8919, allocations: 12.03 kB / 1.232 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.8919, allocations: 30.75 kB / 1.232 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.978e-05/0.892, allocations: 8.891 kB / 1.232 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.8921, allocations: 176.2 kB / 1.232 GB, free: 1.648 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.8922, allocations: 8.375 kB / 1.232 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.8922, allocations: 8.375 kB / 1.232 GB, free: 1.633 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.8924, allocations: 77.97 kB / 1.232 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.8924, allocations: 0 / 1.232 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.8925, allocations: 4 kB / 1.232 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.8925, allocations: 0 / 1.232 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.8927, allocations: 55.88 kB / 1.232 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.8932, allocations: 340.7 kB / 1.232 GB, free: 1.109 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.8934, allocations: 62.58 kB / 1.232 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.8936, allocations: 36.97 kB / 1.232 GB, free: 1 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.8936, allocations: 3.984 kB / 1.232 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.8939, allocations: 87.31 kB / 1.232 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.8939, allocations: 0 / 1.232 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0004929/0.8944, allocations: 157.5 kB / 1.233 GB, free: 0.7383 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.8944, allocations: 55.34 kB / 1.233 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.8946, allocations: 121.8 kB / 1.233 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.762e-05/0.8946, allocations: 33.7 kB / 1.233 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.848e-05/0.8947, allocations: 104 kB / 1.233 GB, free: 408 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.8947, allocations: 15.89 kB / 1.233 GB, free: 392 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.8948, allocations: 41.69 kB / 1.233 GB, free: 344 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.895, allocations: 326.8 kB / 1.233 GB, free: 8 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.8952, allocations: 52.03 kB / 1.233 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.8954, allocations: 93.05 kB / 1.233 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.8957, allocations: 154.7 kB / 1.233 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8957, allocations: 0 / 1.233 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004801/0.8962, allocations: 215.1 kB / 1.234 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.8963, allocations: 35.56 kB / 1.234 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.8963, allocations: 4 kB / 1.234 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.8963, allocations: 0 / 1.234 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.8964, allocations: 19.98 kB / 1.234 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.8964, allocations: 4 kB / 1.234 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.8967, allocations: 36.08 kB / 1.234 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.8967, allocations: 11.92 kB / 1.234 GB, free: 15.33 MB / 0.9512 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.000119/0.8968, allocations: 129.7 kB / 1.234 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.8969, allocations: 4 kB / 1.234 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003367/0.8972, allocations: 126.3 kB / 1.234 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.8972, allocations: 0 / 1.234 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.8972, allocations: 4 kB / 1.234 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.8972, allocations: 0 / 1.234 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005048/0.8977, allocations: 378.3 kB / 1.234 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.8978, allocations: 3.984 kB / 1.234 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.137e-05/0.8978, allocations: 12 kB / 1.234 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.8978, allocations: 0 / 1.234 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.8978, allocations: 3.984 kB / 1.234 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.8979, allocations: 7.938 kB / 1.234 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8979, allocations: 4 kB / 1.234 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003394/0.8982, allocations: 216.5 kB / 1.235 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.8983, allocations: 81.06 kB / 1.235 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.8983, allocations: 4 kB / 1.235 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.749e-05/0.8984, allocations: 11.92 kB / 1.235 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.8985, allocations: 4 kB / 1.235 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.8985, allocations: 11.98 kB / 1.235 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.776e-05/0.8985, allocations: 87.28 kB / 1.235 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.954e-06/0.8986, allocations: 0 / 1.235 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002835/0.8988, allocations: 31.88 kB / 1.235 GB, free: 14.12 MB / 0.9512 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.0007627/0.8996, allocations: 0.7558 MB / 1.236 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004238/0.9, allocations: 175.3 kB / 1.236 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.9001, allocations: 0 / 1.236 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.9002, allocations: 39.97 kB / 1.236 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.9005, allocations: 24.23 kB / 1.236 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.9029, allocations: 1.704 MB / 1.238 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.9033, allocations: 0.6885 MB / 1.238 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.726e-05/0.9034, allocations: 8 kB / 1.238 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.9034, allocations: 23.42 kB / 1.238 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of SimCode: time 6.02e-07/0.9034, allocations: 0 / 1.238 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.9291, allocations: 2.571 MB / 1.241 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.163/9.092, allocations: 0 / 1.241 GB, free: 8.094 MB / 0.9512 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.06330486596562]