Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.172/4.172, allocations: 433.2 MB / 440.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.932e-05/2.95e-05, allocations: 4.344 kB / 0.5325 GB, free: 12.73 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.256, allocations: 98.72 MB / 0.6289 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2577/0.5138, allocations: 125.6 MB / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.5141, allocations: 71.95 kB / 0.7516 GB, free: 11.31 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Controls/OBC/CDL/Utilities/SunRiseSet.mo:57:7-57:32:writable] Warning: timDif was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.05618/0.5703, allocations: 10.24 MB / 0.7616 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5704, allocations: 0 / 0.7616 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.272e-05/0.5704, allocations: 4 kB / 0.7616 GB, free: 1.043 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.002054/0.5725, allocations: 0.6109 MB / 0.7622 GB, free: 396 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.5726, allocations: 12.03 kB / 0.7622 GB, free: 384 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.5727, allocations: 31.61 kB / 0.7622 GB, free: 352 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/0.5729, allocations: 186.8 kB / 0.7624 GB, free: 124 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.573, allocations: 4 kB / 0.7624 GB, free: 120 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.62e-05/0.5731, allocations: 19.98 kB / 0.7624 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003696/0.5734, allocations: 91.97 kB / 0.7625 GB, free: 8 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.574, allocations: 239.5 kB / 0.7628 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.574, allocations: 3.938 kB / 0.7628 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.5741, allocations: 4 kB / 0.7628 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.5741, allocations: 7.984 kB / 0.7628 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.5755, allocations: 0.9088 MB / 0.7637 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002604/0.5781, allocations: 467.6 kB / 0.7641 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.5785, allocations: 138.5 kB / 0.7642 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.336e-05/0.5786, allocations: 11.94 kB / 0.7642 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000689/0.5793, allocations: 291.7 kB / 0.7645 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 4.469e-06/0.5793, allocations: 0 / 0.7645 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.00391/0.5833, allocations: 496.7 kB / 0.765 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002236/0.5835, allocations: 358.2 kB / 0.7653 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.5838, allocations: 158.1 kB / 0.7655 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.602e-05/0.5839, allocations: 29.7 kB / 0.7655 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.584, allocations: 101.3 kB / 0.7656 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.5841, allocations: 110.5 kB / 0.7657 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.5842, allocations: 0 / 0.7657 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.5844, allocations: 330.8 kB / 0.766 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.5847, allocations: 97.11 kB / 0.7661 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.5851, allocations: 151.3 kB / 0.7663 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004928/0.59, allocations: 443.5 kB / 0.7667 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.5901, allocations: 0 / 0.7667 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.005591/0.5957, allocations: 0.6528 MB / 0.7673 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.5957, allocations: 7.938 kB / 0.7673 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.5958, allocations: 4 kB / 0.7673 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.5958, allocations: 4 kB / 0.7673 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/0.5964, allocations: 68.2 kB / 0.7674 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.5964, allocations: 11.94 kB / 0.7674 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.5971, allocations: 55.91 kB / 0.7675 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.5971, allocations: 23.98 kB / 0.7675 GB, free: 10.45 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition2,$whenCondition1,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition8,$whenCondition7,$PRE.sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 4 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002113/0.5974, allocations: 127.9 kB / 0.7676 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003747/0.6011, allocations: 0.489 MB / 0.7681 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.754e-05/0.6013, allocations: 24.17 kB / 0.7681 GB, free: 9.793 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.6024, allocations: 334.6 kB / 0.7684 GB, free: 9.457 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.6024, allocations: 12 kB / 0.7685 GB, free: 9.445 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.6024, allocations: 4 kB / 0.7685 GB, free: 9.441 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.6024, allocations: 0 / 0.7685 GB, free: 9.441 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005616/0.603, allocations: 298.2 kB / 0.7687 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.603, allocations: 7.984 kB / 0.7688 GB, free: 9.105 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006334/0.6037, allocations: 71.91 kB / 0.7688 GB, free: 9.035 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.587e-05/0.6037, allocations: 8 kB / 0.7688 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.6038, allocations: 15.98 kB / 0.7688 GB, free: 9.012 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-05/0.6038, allocations: 11.94 kB / 0.7689 GB, free: 9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.6038, allocations: 7.953 kB / 0.7689 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003976/0.6078, allocations: 0.7696 MB / 0.7696 GB, free: 8.102 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/0.6081, allocations: 144.8 kB / 0.7698 GB, free: 7.941 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.6082, allocations: 11.98 kB / 0.7698 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004794/0.6087, allocations: 35.97 kB / 0.7698 GB, free: 7.895 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.6089, allocations: 55.81 kB / 0.7698 GB, free: 7.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.609, allocations: 20 kB / 0.7699 GB, free: 7.82 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000165/0.6092, allocations: 127.2 kB / 0.77 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.81e-07/0.6092, allocations: 0 / 0.77 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001006/0.6102, allocations: 195.7 kB / 0.7702 GB, free: 7.504 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition8,$whenCondition7,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,$whenCondition6,$whenCondition5,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition4,$whenCondition3,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition2,$whenCondition1,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp) * Number of discrete states: 8 (sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005635/0.6159, allocations: 2.285 MB / 0.7724 GB, free: 5.117 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002797/0.6187, allocations: 2.962 MB / 0.7753 GB, free: 2.062 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.6188, allocations: 4.219 kB / 0.7753 GB, free: 2.059 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000578/0.6194, allocations: 164.3 kB / 0.7755 GB, free: 1.898 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.6197, allocations: 20.08 kB / 0.7755 GB, free: 1.879 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.6217, allocations: 0.5254 MB / 0.776 GB, free: 1.285 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.6222, allocations: 0.7728 MB / 0.7767 GB, free: 496 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004091/0.6226, allocations: 48.75 kB / 0.7768 GB, free: 448 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.6229, allocations: 91.39 kB / 0.7769 GB, free: 356 kB / 0.6511 GB Notification: Performance of SimCode: time 1.272e-06/0.6229, allocations: 3.938 kB / 0.7769 GB, free: 352 kB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6379/1.261, allocations: 6.759 MB / 0.7835 GB, free: 142 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002541/1.261, allocations: 167 kB / 0.7836 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.642/3.904, allocations: 0 / 0.7836 GB, free: 141.8 MB / 0.6511 GB