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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.006304/0.006304, allocations: 101.8 kB / 15.73 MB, free: 5.555 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.001172/0.001172, allocations: 193.4 kB / 16.68 MB, free: 5.484 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.64/2.64, allocations: 482.6 MB / 0.755 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 71.89 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2849, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001615/0.2866, allocations: 0.6839 MB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.2882, allocations: 1.353 MB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-05/0.2883, allocations: 0 / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004105/0.2887, allocations: 183.5 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.2888, allocations: 103.7 kB / 1.244 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.2894, allocations: 234.7 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.29, allocations: 495.7 kB / 1.245 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.29, allocations: 7.984 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.2903, allocations: 207.6 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.2906, allocations: 199.6 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.924e-05/0.2906, allocations: 20 kB / 1.245 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.2908, allocations: 87.94 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003389/0.2912, allocations: 259.5 kB / 1.246 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.2914, allocations: 151.3 kB / 1.246 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000496/0.2919, allocations: 482.5 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2919, allocations: 0 / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2919, allocations: 0 / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2919, allocations: 0 / 1.246 GB, free: 5.355 MB / 0.9981 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.0009271/0.2928, allocations: 0.6499 MB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2929, allocations: 16.03 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.2929, allocations: 30.75 kB / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.293, allocations: 40.73 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.2935, allocations: 380.3 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2936, allocations: 16.38 kB / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.774e-05/0.2936, allocations: 20.38 kB / 1.247 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.2939, allocations: 192.6 kB / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2939, allocations: 3.938 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.2939, allocations: 4 kB / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.294, allocations: 0 / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.2941, allocations: 111.9 kB / 1.248 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004018/0.2945, allocations: 391.1 kB / 1.248 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.295, allocations: 311.6 kB / 1.248 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.2951, allocations: 126.6 kB / 1.248 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.2952, allocations: 0 / 1.248 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.2956, allocations: 281.6 kB / 1.249 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 1.182e-06/0.2956, allocations: 0 / 1.249 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18): time 0.0007892/0.2964, allocations: 0.4977 MB / 1.249 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/0.2964, allocations: 110.8 kB / 1.249 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.2969, allocations: 400.5 kB / 1.25 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.2969, allocations: 45.69 kB / 1.25 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.2971, allocations: 148.8 kB / 1.25 GB, free: 1.355 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.589e-05/0.2971, allocations: 55.55 kB / 1.25 GB, free: 1.301 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.2973, allocations: 117.6 kB / 1.25 GB, free: 1.18 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2974, allocations: 342.8 kB / 1.25 GB, free: 0.8359 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.2976, allocations: 87.95 kB / 1.25 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/0.2981, allocations: 459 kB / 1.251 GB, free: 180 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4942/0.7923, allocations: 254.5 kB / 1.251 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.7923, allocations: 0.5312 kB / 1.251 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005576/0.7929, allocations: 328.5 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.7929, allocations: 9.344 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.7929, allocations: 7.391 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.7929, allocations: 6 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.7931, allocations: 29.77 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.7931, allocations: 11.41 kB / 1.251 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006835/0.7938, allocations: 64.17 kB / 1.252 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.7938, allocations: 13.17 kB / 1.252 GB, free: 14.22 MB / 0.9981 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.0001923/0.794, allocations: 198.7 kB / 1.252 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.744e-05/0.7941, allocations: 28.58 kB / 1.252 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.7941, allocations: 32.67 kB / 1.252 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.7941, allocations: 3.375 kB / 1.252 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.7941, allocations: 2.094 kB / 1.252 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.7942, allocations: 2.656 kB / 1.252 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.7944, allocations: 293.3 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.7944, allocations: 1.359 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.412e-05/0.7944, allocations: 10.69 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.7944, allocations: 5.828 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.7944, allocations: 5.781 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.7944, allocations: 5.094 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7944, allocations: 4.781 kB / 1.252 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004809/0.7949, allocations: 436.8 kB / 1.252 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.795, allocations: 104.9 kB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.795, allocations: 3.719 kB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.133e-05/0.7951, allocations: 5.703 kB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.7951, allocations: 16.25 kB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.7952, allocations: 19.7 kB / 1.253 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002573/0.7954, allocations: 286 kB / 1.253 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7954, allocations: 3.344 kB / 1.253 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003333/0.7958, allocations: 78.78 kB / 1.253 GB, free: 13.62 MB / 0.9981 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.0006806/0.7965, allocations: 1.009 MB / 1.254 GB, free: 13 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00037/0.7968, allocations: 255.9 kB / 1.254 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7968, allocations: 0 / 1.254 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.797, allocations: 143.6 kB / 1.254 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.7973, allocations: 34.11 kB / 1.254 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.8002, allocations: 3.263 MB / 1.258 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.8003, allocations: 0.7712 MB / 1.258 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.8005, allocations: 45.8 kB / 1.258 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.8006, allocations: 80.88 kB / 1.258 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.8006, allocations: 4 kB / 1.258 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5351/1.336, allocations: 7.604 MB / 1.266 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.689/11.02, allocations: 8.328 kB / 1.266 GB, free: 9.672 MB / 0.9981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=400 --tolerance=1e-06 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.mat","/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