Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) 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.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.0009006/0.0009007, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005054/0.005054, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.399/2.399, allocations: 462.7 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.000443, allocations: 11.97 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2235, allocations: 159.6 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.0006628/0.2242, allocations: 407.1 kB / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2252, allocations: 1.046 MB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.273e-05/0.2252, allocations: 3.938 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.2252, allocations: 0 / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.682e-05/0.2253, allocations: 7.938 kB / 1.06 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.2254, allocations: 31.91 kB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.998e-05/0.2255, allocations: 47.91 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.407e-05/0.2256, allocations: 12 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.896e-05/0.2257, allocations: 15.92 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.239e-05/0.2257, allocations: 23.91 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.2257, allocations: 0 / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.936e-05/0.2258, allocations: 19.92 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.2258, allocations: 7.984 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.2258, allocations: 41.58 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.955e-05/0.2259, allocations: 55.83 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2259, allocations: 7.938 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.193e-06/0.226, allocations: 0 / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.916e-06/0.226, allocations: 0 / 1.06 GB, free: 3.164 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004376/0.2264, allocations: 363.7 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.2264, allocations: 11.97 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.226e-05/0.2265, allocations: 34.75 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.255e-05/0.2265, allocations: 4.938 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.598e-05/0.2266, allocations: 172.2 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.2266, allocations: 8.375 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.2266, allocations: 8.375 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.2268, allocations: 70.16 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.2268, allocations: 3.938 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.914e-06/0.2268, allocations: 4 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2268, allocations: 4 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.227, allocations: 47.95 kB / 1.061 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003416/0.2274, allocations: 276.8 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.2275, allocations: 66.48 kB / 1.061 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.239e-05/0.2276, allocations: 36.95 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.2276, allocations: 4 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.2278, allocations: 83.31 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.2278, allocations: 0 / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003568/0.2282, allocations: 133.5 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.2282, allocations: 59.33 kB / 1.062 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.284e-05/0.2283, allocations: 101.9 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.2283, allocations: 29.7 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/0.2283, allocations: 88.12 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.2284, allocations: 15.81 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.2284, allocations: 13.72 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.2285, allocations: 322.8 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.2286, allocations: 27.98 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.2287, allocations: 55.41 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.2289, allocations: 95.33 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2289, allocations: 0 / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000235/0.2291, allocations: 113.7 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.2292, allocations: 8 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2292, allocations: 4 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.343e-06/0.2292, allocations: 0 / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.689e-05/0.2293, allocations: 19.92 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.2293, allocations: 4 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.113e-05/0.2294, allocations: 11.84 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.2294, allocations: 4 kB / 1.063 GB, free: 0.6445 MB / 0.8106 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 6.541e-05/0.2294, allocations: 125.8 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.2295, allocations: 7.938 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.2297, allocations: 114 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2297, allocations: 0 / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2297, allocations: 4 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2297, allocations: 0.5625 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.2301, allocations: 362.6 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2301, allocations: 4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.712e-05/0.2302, allocations: 19.98 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2302, allocations: 0 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2302, allocations: 4 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2302, allocations: 3.938 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2302, allocations: 0 / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.2305, allocations: 211.4 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.2305, allocations: 81.05 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.2305, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.896e-05/0.2306, allocations: 11.98 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.125e-05/0.2307, allocations: 7.938 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.2307, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.541e-05/0.2307, allocations: 95.27 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2307, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002089/0.231, allocations: 8 kB / 1.064 GB, free: 15.5 MB / 0.8262 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.0005103/0.2315, allocations: 0.7475 MB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002168/0.2317, allocations: 71.88 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2317, allocations: 4.188 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.2318, allocations: 35.98 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.232, allocations: 14.17 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.2333, allocations: 1.41 MB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.2335, allocations: 0.6809 MB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.504e-05/0.2335, allocations: 12.42 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.2336, allocations: 15.44 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2336, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.501/4.734, allocations: 1.473 MB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005061/4.735, allocations: 214.2 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.078/7.813, allocations: 3.656 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches