Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.0016/0.0016, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003014/0.003014, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.432/1.432, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.589/2.589, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.001341, allocations: 59.91 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7906/0.792, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002455/0.7945, allocations: 0.8574 MB / 1.018 GB, free: 1.602 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.7967, allocations: 1.459 MB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.7969, allocations: 7.938 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0005561/0.7975, allocations: 203.5 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.7976, allocations: 111.6 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.7988, allocations: 346.3 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00109/0.7999, allocations: 0.8464 MB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.8002, allocations: 112.2 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007252/0.8009, allocations: 335.5 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007446/0.8016, allocations: 275.2 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0003732/0.802, allocations: 47.98 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005217/0.8026, allocations: 99.95 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0006422/0.8032, allocations: 347.3 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000583/0.8038, allocations: 274.8 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.8051, allocations: 0.9021 MB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.8052, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.304e-06/0.8052, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.97e-05/0.8052, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.002824/0.808, allocations: 0.8956 MB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.909e-05/0.8081, allocations: 8.031 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.8083, allocations: 46.73 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.8088, allocations: 52.47 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.8104, allocations: 0.537 MB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-05/0.8105, allocations: 28.59 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.8107, allocations: 36.38 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007577/0.8115, allocations: 307.1 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.8116, allocations: 3.938 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.8116, allocations: 4 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.8116, allocations: 8 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005348/0.8122, allocations: 223.8 kB / 1.026 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.8156, allocations: 1.187 MB / 1.027 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.8166, allocations: 471.7 kB / 1.027 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/0.8169, allocations: 174.6 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.8169, allocations: 4 kB / 1.027 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.8174, allocations: 328.3 kB / 1.028 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=24): time 2.053e-06/0.8174, allocations: 4 kB / 1.028 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24): time 0.00107/0.8185, allocations: 0.6295 MB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.625e-05/0.8186, allocations: 122.7 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007497/0.8193, allocations: 0.5916 MB / 1.029 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.8195, allocations: 45.7 kB / 1.029 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.8197, allocations: 222.5 kB / 1.029 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.851e-05/0.8198, allocations: 51.44 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/0.8201, allocations: 181.5 kB / 1.029 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.8202, allocations: 366.8 kB / 1.03 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.8204, allocations: 123.9 kB / 1.03 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007898/0.8212, allocations: 0.711 MB / 1.031 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.8216, allocations: 308.5 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.8216, allocations: 0 / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006592/0.8222, allocations: 420.8 kB / 1.031 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.8223, allocations: 11.98 kB / 1.031 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.8223, allocations: 7.938 kB / 1.031 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.8223, allocations: 4 kB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.8225, allocations: 35.92 kB / 1.031 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.8225, allocations: 4 kB / 1.031 GB, free: 3.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.8238, allocations: 136.1 kB / 1.031 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.8238, allocations: 12 kB / 1.032 GB, free: 3.523 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.intTimTab.idx,$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[1],booTimTab.y[2],booTimTab.y[1],$whenCondition5,booTimTabOneRow.intTimTab.idx,$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.y[2],booTimTabOneRow.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.intTimTab.idx,$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.y[2],booTimTabTwi.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0002877/0.8241, allocations: 261.6 kB / 1.032 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.8242, allocations: 43.44 kB / 1.032 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.093e-05/0.8243, allocations: 59.3 kB / 1.032 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.8243, allocations: 0 / 1.032 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.8243, allocations: 4 kB / 1.032 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8243, allocations: 0 / 1.032 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.8247, allocations: 409.2 kB / 1.032 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.8247, allocations: 0.75 kB / 1.032 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-05/0.8248, allocations: 4 kB / 1.032 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.8248, allocations: 4 kB / 1.032 GB, free: 2.699 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.8248, allocations: 19.92 kB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.8248, allocations: 0 / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.8248, allocations: 3.938 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006583/0.8255, allocations: 0.5137 MB / 1.033 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.8256, allocations: 124.6 kB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/0.8257, allocations: 7.938 kB / 1.033 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.8258, allocations: 19.98 kB / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.925e-05/0.8259, allocations: 27.97 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.2e-05/0.826, allocations: 19.92 kB / 1.033 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005001/0.8265, allocations: 435.1 kB / 1.033 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8265, allocations: 0 / 1.033 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005152/0.827, allocations: 111.9 kB / 1.033 GB, free: 1.391 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[2],booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001097/0.8281, allocations: 1.106 MB / 1.035 GB, free: 256 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006332/0.8288, allocations: 372.5 kB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8288, allocations: 4.062 kB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.829, allocations: 183.9 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.8293, allocations: 47.64 kB / 1.035 GB, free: 15.66 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007515/0.8369, allocations: 4.444 MB / 1.039 GB, free: 11.03 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.8375, allocations: 0.8311 MB / 1.04 GB, free: 10.18 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004713/0.838, allocations: 98.86 kB / 1.04 GB, free: 10.07 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.8383, allocations: 127.4 kB / 1.041 GB, free: 9.949 MB / 0.795 GB Notification: Performance of SimCode: time 1.082e-06/0.8383, allocations: 0 / 1.041 GB, free: 9.949 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.8719, allocations: 11.47 MB / 1.052 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/9.03, allocations: 1.031 kB / 1.052 GB, free: 14.73 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches