Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable",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.008091/0.008091, allocations: 101.3 kB / 15.73 MB, free: 6.066 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.002/0.002, allocations: 196.6 kB / 16.68 MB, free: 5.973 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.545/2.545, allocations: 469.4 MB / 0.7422 GB, free: 3.512 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7246/0.7259, allocations: 159.1 MB / 1.22 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001598/0.7276, allocations: 0.6844 MB / 1.22 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.7292, allocations: 1.353 MB / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.234e-05/0.7293, allocations: 0 / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000455/0.7297, allocations: 195.5 kB / 1.222 GB, free: 60 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.7299, allocations: 103.7 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007274/0.7306, allocations: 222.5 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005504/0.7312, allocations: 0.4918 MB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.856e-05/0.7312, allocations: 7.984 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.7315, allocations: 199.7 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.7318, allocations: 207.6 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.987e-05/0.7319, allocations: 20 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.7321, allocations: 83.94 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003442/0.7325, allocations: 260.4 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.7327, allocations: 147.3 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.7332, allocations: 474.2 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.7332, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.995e-06/0.7332, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.7332, allocations: 3.938 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009863/0.7342, allocations: 0.6539 MB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.7342, allocations: 12.62 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.7343, allocations: 38.73 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.7344, allocations: 28.8 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.735, allocations: 384.3 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.735, allocations: 16.38 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.371e-05/0.7351, allocations: 20.38 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.7354, allocations: 196.6 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.7354, allocations: 3.938 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.7355, allocations: 4 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.7355, allocations: 0 / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.7356, allocations: 107.9 kB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004023/0.7361, allocations: 383.1 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.7365, allocations: 315.6 kB / 1.226 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.7367, allocations: 134.4 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-06/0.7367, allocations: 0 / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.7371, allocations: 289.6 kB / 1.227 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 1.714e-06/0.7371, allocations: 0 / 1.227 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18): time 0.0007913/0.7379, allocations: 0.4895 MB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.738, allocations: 118.8 kB / 1.227 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.7384, allocations: 396.5 kB / 1.228 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.7385, allocations: 37.7 kB / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.7386, allocations: 156.8 kB / 1.228 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.7387, allocations: 47.62 kB / 1.228 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.7388, allocations: 117.5 kB / 1.228 GB, free: 9.695 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7389, allocations: 342.8 kB / 1.228 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.7391, allocations: 87.95 kB / 1.228 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004879/0.7396, allocations: 470.9 kB / 1.229 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.7399, allocations: 257.5 kB / 1.229 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.7399, allocations: 0 / 1.229 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004906/0.7404, allocations: 325.1 kB / 1.229 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.7404, allocations: 17.48 kB / 1.229 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.7404, allocations: 4 kB / 1.229 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.7404, allocations: 4 kB / 1.229 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.7406, allocations: 36.27 kB / 1.229 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.7406, allocations: 8 kB / 1.229 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008034/0.7414, allocations: 68.84 kB / 1.229 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.7414, allocations: 12 kB / 1.229 GB, free: 7.91 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 26 (tabOneRow.idx,$PRE.tabOneRow.idx,tabOneRow.y[1],$PRE.tabOneRow.y[1],$whenCondition10,intTimTab1.idx,$PRE.intTimTab1.idx,intTimTab1.y[2],$PRE.intTimTab1.y[2],intTimTab1.y[1],$PRE.intTimTab1.y[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab.idx,$PRE.intTimTab.idx,intTimTab.y[2],$PRE.intTimTab.y[2],intTimTab.y[1],$PRE.intTimTab.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001873/0.7416, allocations: 196.5 kB / 1.23 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.461e-05/0.7417, allocations: 35.75 kB / 1.23 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.822e-05/0.7417, allocations: 33.89 kB / 1.23 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.7417, allocations: 7.984 kB / 1.23 GB, free: 7.637 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7418, allocations: 0 / 1.23 GB, free: 7.637 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.7418, allocations: 3.938 kB / 1.23 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.742, allocations: 285.5 kB / 1.23 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.742, allocations: 0 / 1.23 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.775e-05/0.742, allocations: 7.938 kB / 1.23 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.742, allocations: 3.938 kB / 1.23 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.7421, allocations: 4 kB / 1.23 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.7421, allocations: 15.92 kB / 1.23 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7421, allocations: 4 kB / 1.23 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005314/0.7426, allocations: 430.4 kB / 1.23 GB, free: 6.824 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.452e-05/0.7427, allocations: 108.9 kB / 1.23 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.7428, allocations: 3.984 kB / 1.231 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.7429, allocations: 8 kB / 1.231 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.7429, allocations: 23.92 kB / 1.231 GB, free: 6.664 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.7429, allocations: 8 kB / 1.231 GB, free: 6.656 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002969/0.7432, allocations: 291 kB / 1.231 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7432, allocations: 0 / 1.231 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003772/0.7436, allocations: 79.86 kB / 1.231 GB, free: 6.297 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition10,tabOneRow.y[1],tabOneRow.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab1.y[1],intTimTab1.y[2],intTimTab1.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intTimTab.y[1],intTimTab.y[2],intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0008538/0.7445, allocations: 1.008 MB / 1.232 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004038/0.7449, allocations: 255.7 kB / 1.232 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7449, allocations: 0.8125 kB / 1.232 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.7451, allocations: 139.9 kB / 1.232 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.7454, allocations: 28.64 kB / 1.232 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.7488, allocations: 3.252 MB / 1.235 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.7491, allocations: 0.7675 MB / 1.236 GB, free: 0.6133 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001221/0.7493, allocations: 50.11 kB / 1.236 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.7494, allocations: 83.41 kB / 1.236 GB, free: 492 kB / 0.9512 GB Notification: Performance of SimCode: time 2.545e-06/0.7494, allocations: 0 / 1.236 GB, free: 492 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.773, allocations: 7.614 MB / 1.244 GB, free: 9.102 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.511, allocations: 9.094 kB / 1.244 GB, free: 9.098 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches