Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) 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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.001203/0.001203, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001303/0.001303, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.403/2.403, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.31 kB / 0.8985 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2265, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001804/0.2283, allocations: 0.8166 MB / 1.053 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2296, allocations: 1.174 MB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.2296, allocations: 4 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.176e-05/0.2297, allocations: 7.922 kB / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.702e-05/0.2298, allocations: 11.86 kB / 1.054 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.2301, allocations: 122.7 kB / 1.054 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.2302, allocations: 115.8 kB / 1.054 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.2303, allocations: 20.17 kB / 1.054 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.665e-05/0.2304, allocations: 47.89 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.021e-05/0.2305, allocations: 35.83 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.2305, allocations: 8 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.953e-05/0.2306, allocations: 19.98 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.2306, allocations: 11.98 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.2307, allocations: 51.72 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.2308, allocations: 115.7 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2308, allocations: 0 / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.91e-07/0.2308, allocations: 4 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.016e-06/0.2308, allocations: 0 / 1.055 GB, free: 5.66 MB / 0.8106 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.0004913/0.2313, allocations: 417.2 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2314, allocations: 11.97 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.971e-05/0.2314, allocations: 38.73 kB / 1.055 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.2315, allocations: 8.844 kB / 1.055 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.906e-05/0.2316, allocations: 168.3 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.2316, allocations: 8.375 kB / 1.055 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.2316, allocations: 12.38 kB / 1.055 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.2318, allocations: 81.89 kB / 1.055 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.2318, allocations: 4 kB / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.2318, allocations: 0 / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.2318, allocations: 0 / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.232, allocations: 47.95 kB / 1.055 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.2324, allocations: 348.6 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.2326, allocations: 58.55 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.203e-05/0.2327, allocations: 32.95 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.2327, allocations: 0 / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002031/0.2329, allocations: 95.39 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.233, allocations: 0 / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004031/0.2334, allocations: 145.5 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.2334, allocations: 55.39 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.435e-05/0.2335, allocations: 121.8 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.2335, allocations: 33.64 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.2336, allocations: 108 kB / 1.056 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.2336, allocations: 15.75 kB / 1.056 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.768e-05/0.2337, allocations: 37.7 kB / 1.056 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.355e-05/0.2338, allocations: 326.8 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.2339, allocations: 47.97 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2341, allocations: 93.05 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.2343, allocations: 150.7 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2343, allocations: 4 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004009/0.2348, allocations: 211.1 kB / 1.057 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.2348, allocations: 34.64 kB / 1.057 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2348, allocations: 8.203 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.2348, allocations: 3.984 kB / 1.057 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.935e-05/0.2349, allocations: 15.98 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2349, allocations: 3.938 kB / 1.057 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.2351, allocations: 39.86 kB / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.2352, allocations: 12.23 kB / 1.057 GB, free: 2.625 MB / 0.8106 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 7.782e-05/0.2353, allocations: 125.8 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.2353, allocations: 7.906 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.2355, allocations: 129.9 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2356, allocations: 0 / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2356, allocations: 0 / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2356, allocations: 0 / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003687/0.2359, allocations: 382.4 kB / 1.058 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.236, allocations: 0 / 1.058 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.753e-05/0.236, allocations: 11.98 kB / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.236, allocations: 0 / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.236, allocations: 0 / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.236, allocations: 7.938 kB / 1.058 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2361, allocations: 3.938 kB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.2363, allocations: 223.4 kB / 1.058 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.2364, allocations: 77.11 kB / 1.058 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.2364, allocations: 7.938 kB / 1.058 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.2365, allocations: 15.92 kB / 1.058 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.2365, allocations: 0 / 1.058 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.2365, allocations: 7.984 kB / 1.058 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.515e-05/0.2366, allocations: 91.77 kB / 1.058 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2366, allocations: 0 / 1.058 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000247/0.2368, allocations: 28 kB / 1.058 GB, free: 1.422 MB / 0.8106 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.0005185/0.2374, allocations: 0.7513 MB / 1.059 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.2377, allocations: 179.3 kB / 1.059 GB, free: 468 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2377, allocations: 0 / 1.059 GB, free: 468 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.2378, allocations: 47.89 kB / 1.059 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.2381, allocations: 19.92 kB / 1.059 GB, free: 400 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.2399, allocations: 1.706 MB / 1.061 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.2401, allocations: 0.6887 MB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.35e-05/0.2402, allocations: 8 kB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.194e-05/0.2402, allocations: 23.42 kB / 1.062 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of SimCode: time 1.603e-06/0.2402, allocations: 0 / 1.062 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1906/0.4309, allocations: 2.301 MB / 1.064 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002945/0.4312, allocations: 230.5 kB / 1.064 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/2.212, allocations: 0 / 1.064 GB, free: 11.41 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches