Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001261/0.001261, allocations: 108 kB / 15.61 MB, free: 152 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.001502/0.001502, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.543/2.543, allocations: 390.3 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6785/0.6799, allocations: 140.4 MB / 0.9497 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00186/0.6818, allocations: 0.853 MB / 0.9506 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.6834, allocations: 1.451 MB / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.313e-05/0.6835, allocations: 2.719 kB / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004401/0.6839, allocations: 201.8 kB / 0.9522 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.6841, allocations: 110.6 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008226/0.6849, allocations: 357.1 kB / 0.9526 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007363/0.6856, allocations: 0.8669 MB / 0.9535 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.6858, allocations: 93.98 kB / 0.9536 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000323/0.6862, allocations: 342.9 kB / 0.9539 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.6865, allocations: 264 kB / 0.9542 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.6867, allocations: 44.72 kB / 0.9542 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.6869, allocations: 113.9 kB / 0.9543 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000383/0.6873, allocations: 338.1 kB / 0.9546 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003305/0.6877, allocations: 273.4 kB / 0.9549 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008157/0.6885, allocations: 0.914 MB / 0.9558 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.6885, allocations: 5.688 kB / 0.9558 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6885, allocations: 0 / 0.9558 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.6885, allocations: 0 / 0.9558 GB, free: 5.074 MB / 0.7169 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.001465/0.69, allocations: 0.8853 MB / 0.9566 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.6901, allocations: 9.625 kB / 0.9567 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.6901, allocations: 48.23 kB / 0.9567 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.6903, allocations: 53.33 kB / 0.9568 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.691, allocations: 0.5456 MB / 0.9573 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.233e-05/0.6911, allocations: 19.45 kB / 0.9573 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.6912, allocations: 36.72 kB / 0.9573 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.6917, allocations: 318.4 kB / 0.9576 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.6918, allocations: 0.8438 kB / 0.9576 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.6918, allocations: 9.453 kB / 0.9577 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.6918, allocations: 3.219 kB / 0.9577 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.6922, allocations: 222.2 kB / 0.9579 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.694, allocations: 1.182 MB / 0.959 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005515/0.6946, allocations: 459 kB / 0.9595 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.6948, allocations: 186.7 kB / 0.9596 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.6948, allocations: 1.062 kB / 0.9596 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003957/0.6952, allocations: 338.8 kB / 0.96 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.6952, allocations: 0 / 0.96 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24): time 0.001003/0.6962, allocations: 0.6315 MB / 0.9606 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.6963, allocations: 113.9 kB / 0.9607 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007595/0.6971, allocations: 0.595 MB / 0.9613 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.843e-05/0.6972, allocations: 43.2 kB / 0.9613 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.6974, allocations: 218.5 kB / 0.9615 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.862e-05/0.6975, allocations: 60.72 kB / 0.9616 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/0.6977, allocations: 184.7 kB / 0.9618 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.545e-05/0.6978, allocations: 354.1 kB / 0.9621 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.698, allocations: 132.1 kB / 0.9622 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000877/0.6989, allocations: 0.7273 MB / 0.9629 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.6993, allocations: 296.5 kB / 0.9632 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.6993, allocations: 6.219 kB / 0.9632 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008013/0.7001, allocations: 423.9 kB / 0.9636 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.7002, allocations: 6.625 kB / 0.9636 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.7002, allocations: 3.188 kB / 0.9636 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.7002, allocations: 5.125 kB / 0.9636 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.7004, allocations: 34.12 kB / 0.9637 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.7004, allocations: 13.44 kB / 0.9637 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.7018, allocations: 131.8 kB / 0.9638 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.7019, allocations: 11.09 kB / 0.9638 GB, free: 15.35 MB / 0.7325 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.0003787/0.7022, allocations: 262.4 kB / 0.9641 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.7023, allocations: 45.56 kB / 0.9641 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.7024, allocations: 50.16 kB / 0.9642 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.7025, allocations: 6.484 kB / 0.9642 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.7025, allocations: 1.344 kB / 0.9642 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.7025, allocations: 0.9688 kB / 0.9642 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.7029, allocations: 403.1 kB / 0.9646 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7029, allocations: 4 kB / 0.9646 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.708e-05/0.703, allocations: 15.98 kB / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.703, allocations: 1.438 kB / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.703, allocations: 11.97 kB / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.703, allocations: 2.625 kB / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.703, allocations: 0 / 0.9646 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007067/0.7037, allocations: 0.5163 MB / 0.9651 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.7038, allocations: 122.8 kB / 0.9652 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.7039, allocations: 10.55 kB / 0.9652 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.7041, allocations: 13.8 kB / 0.9652 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.7042, allocations: 33 kB / 0.9653 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.7042, allocations: 18.64 kB / 0.9653 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000553/0.7048, allocations: 432.5 kB / 0.9657 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7048, allocations: 1.406 kB / 0.9657 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000563/0.7053, allocations: 105.7 kB / 0.9658 GB, free: 14.05 MB / 0.7325 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.00115/0.7065, allocations: 1.115 MB / 0.9669 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006073/0.7071, allocations: 368.5 kB / 0.9672 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.7071, allocations: 0 / 0.9672 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.7074, allocations: 184.5 kB / 0.9674 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.7077, allocations: 34.48 kB / 0.9674 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006029/0.7138, allocations: 4.447 MB / 0.9718 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.7142, allocations: 0.8321 MB / 0.9726 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000288/0.7145, allocations: 98.39 kB / 0.9727 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.7147, allocations: 131.4 kB / 0.9728 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of SimCode: time 9.61e-07/0.7147, allocations: 1.5 kB / 0.9728 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.747, allocations: 11.47 MB / 0.984 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.668, allocations: 9.141 kB / 0.984 GB, free: 14.12 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.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_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches