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.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.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.0011/0.0011, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00119/0.00119, allocations: 198.6 kB / 16.25 MB, free: 6.621 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.259/1.259, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.409/2.409, allocations: 461.9 MB / 0.7344 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 60.45 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2129, allocations: 157.4 MB / 1.052 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001543/0.2144, allocations: 0.8204 MB / 1.053 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.2155, allocations: 1.167 MB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.2156, allocations: 7.938 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.2156, allocations: 0 / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.693e-05/0.2157, allocations: 11.92 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.2161, allocations: 122.8 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.2162, allocations: 135.8 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.566e-05/0.2163, allocations: 20.17 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.2164, allocations: 55.83 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.2164, allocations: 39.83 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.2165, allocations: 12 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.689e-05/0.2165, allocations: 23.98 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.2166, allocations: 15.98 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.645e-05/0.2166, allocations: 55.77 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.2167, allocations: 111.7 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.2168, allocations: 0 / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2168, allocations: 0 / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.2168, allocations: 4 kB / 1.055 GB, free: 6.027 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.0004478/0.2172, allocations: 421.1 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2173, allocations: 12.62 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.602e-05/0.2173, allocations: 34.75 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.2173, allocations: 16.84 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.007e-05/0.2174, allocations: 168.3 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.2174, allocations: 8.312 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.2175, allocations: 12.38 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.2176, allocations: 73.97 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.2177, allocations: 0 / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.2177, allocations: 0 / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.2177, allocations: 0 / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.2178, allocations: 55.89 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.2182, allocations: 348.5 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.2184, allocations: 62.53 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.584e-05/0.2185, allocations: 36.97 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.2185, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.2187, allocations: 95.38 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.2187, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003739/0.2191, allocations: 149.5 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.2191, allocations: 59.41 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.585e-05/0.2192, allocations: 113.8 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.2192, allocations: 29.7 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.714e-05/0.2193, allocations: 100 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.2193, allocations: 23.69 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.2194, allocations: 37.69 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.2194, allocations: 326.8 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.2196, allocations: 51.95 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.2197, allocations: 93.05 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.22, allocations: 150.8 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.22, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003692/0.2204, allocations: 211.2 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.2204, allocations: 41.69 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2204, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.2204, allocations: 4 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.565e-05/0.2205, allocations: 15.92 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2205, allocations: 4 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.2207, allocations: 35.86 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.2207, allocations: 16.03 kB / 1.058 GB, free: 2.984 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.383e-05/0.2208, allocations: 119.4 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.2208, allocations: 7.906 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.2211, allocations: 125.9 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2211, allocations: 0 / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2211, allocations: 0 / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2211, allocations: 4 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003442/0.2215, allocations: 382.4 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2215, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.361e-05/0.2215, allocations: 11.94 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2215, allocations: 0 / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.2216, allocations: 3.984 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2216, allocations: 11.94 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2216, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.2218, allocations: 215.4 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.623e-05/0.2219, allocations: 85.05 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.2219, allocations: 4 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.222, allocations: 11.92 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.222, allocations: 7.984 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.222, allocations: 4 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.94e-05/0.2221, allocations: 91.27 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2221, allocations: 3.938 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000236/0.2223, allocations: 28 kB / 1.059 GB, free: 1.785 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.0004571/0.2228, allocations: 0.7514 MB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000319/0.2231, allocations: 183.9 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2231, allocations: 0 / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.2232, allocations: 43.91 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.2235, allocations: 16.23 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.2251, allocations: 1.713 MB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.2253, allocations: 0.6963 MB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.785e-05/0.2253, allocations: 3.984 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.2253, allocations: 19.44 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2253, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.391/1.616, allocations: 2.408 MB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/1.617, allocations: 215.1 kB / 1.065 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/3.233, allocations: 0 / 1.065 GB, free: 11.71 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