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.SunRiseSet.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.SunRiseSet,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.15/4.15, allocations: 433.2 MB / 440.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.033e-05, allocations: 4.266 kB / 0.5325 GB, free: 12.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2255, allocations: 98.74 MB / 0.6289 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2244/0.4499, allocations: 125.5 MB / 0.7515 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.4503, allocations: 75.95 kB / 0.7516 GB, free: 11.3 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.05402/0.5043, allocations: 10.24 MB / 0.7616 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5044, allocations: 0 / 0.7616 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.303e-05/0.5044, allocations: 4 kB / 0.7616 GB, free: 1.035 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.001869/0.5063, allocations: 0.607 MB / 0.7622 GB, free: 392 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.5063, allocations: 12.03 kB / 0.7622 GB, free: 380 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.5065, allocations: 31.61 kB / 0.7622 GB, free: 348 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.5067, allocations: 187.6 kB / 0.7624 GB, free: 120 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.5067, allocations: 7.984 kB / 0.7624 GB, free: 112 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.5068, allocations: 12 kB / 0.7624 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003629/0.5072, allocations: 95.97 kB / 0.7625 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.5077, allocations: 231.5 kB / 0.7627 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.5077, allocations: 7.938 kB / 0.7627 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.5077, allocations: 8 kB / 0.7628 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.5078, allocations: 7.938 kB / 0.7628 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.509, allocations: 0.9088 MB / 0.7637 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.5116, allocations: 463.4 kB / 0.7641 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.5119, allocations: 142.6 kB / 0.7642 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.417e-05/0.512, allocations: 11.98 kB / 0.7642 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006536/0.5126, allocations: 299.7 kB / 0.7645 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=40): time 3.717e-06/0.5126, allocations: 0 / 0.7645 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of matching and sorting (n=40): time 0.0038/0.5164, allocations: 496.9 kB / 0.765 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002251/0.5167, allocations: 354.2 kB / 0.7653 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.5169, allocations: 159.3 kB / 0.7655 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.517, allocations: 37.69 kB / 0.7655 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.498e-05/0.5171, allocations: 97.36 kB / 0.7656 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.5173, allocations: 110.5 kB / 0.7657 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.5173, allocations: 0 / 0.7657 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.5175, allocations: 326.8 kB / 0.766 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002935/0.5178, allocations: 93.11 kB / 0.7661 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.5182, allocations: 163.3 kB / 0.7663 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004741/0.5229, allocations: 435.4 kB / 0.7667 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.523, allocations: 3.938 kB / 0.7667 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.005383/0.5284, allocations: 0.645 MB / 0.7673 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.5284, allocations: 11.94 kB / 0.7673 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.5285, allocations: 4 kB / 0.7673 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.5285, allocations: 4 kB / 0.7673 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006032/0.5291, allocations: 67.83 kB / 0.7674 GB, free: 10.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.5291, allocations: 7.953 kB / 0.7674 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.5297, allocations: 51.66 kB / 0.7675 GB, free: 10.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.325e-05/0.5298, 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.0001869/0.53, allocations: 128 kB / 0.7676 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003552/0.5336, allocations: 0.4895 MB / 0.7681 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.269e-05/0.5337, allocations: 23.88 kB / 0.7681 GB, free: 9.793 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.5347, allocations: 330.8 kB / 0.7684 GB, free: 9.461 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.5347, allocations: 12 kB / 0.7684 GB, free: 9.449 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.5348, allocations: 4 kB / 0.7684 GB, free: 9.445 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.5348, allocations: 4.172 kB / 0.7685 GB, free: 9.441 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005383/0.5353, allocations: 301.7 kB / 0.7687 GB, free: 9.109 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5354, allocations: 4 kB / 0.7687 GB, free: 9.105 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005896/0.536, allocations: 76.27 kB / 0.7688 GB, free: 9.031 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/0.536, allocations: 4 kB / 0.7688 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.5361, allocations: 11.98 kB / 0.7688 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.646e-06/0.5361, allocations: 7.938 kB / 0.7688 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.717e-06/0.5361, allocations: 15.89 kB / 0.7689 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.5399, allocations: 0.7737 MB / 0.7696 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.5402, allocations: 148.6 kB / 0.7698 GB, free: 7.934 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.406e-05/0.5403, allocations: 12 kB / 0.7698 GB, free: 7.922 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004527/0.5407, allocations: 31.97 kB / 0.7698 GB, free: 7.891 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.5409, allocations: 51.83 kB / 0.7698 GB, free: 7.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.541, allocations: 23.98 kB / 0.7699 GB, free: 7.816 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001491/0.5411, allocations: 123.3 kB / 0.77 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.71e-07/0.5412, allocations: 0 / 0.77 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000926/0.5421, allocations: 199.7 kB / 0.7702 GB, free: 7.5 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.005095/0.5472, allocations: 2.288 MB / 0.7724 GB, free: 5.109 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002543/0.5498, allocations: 2.962 MB / 0.7753 GB, free: 2.055 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.5498, allocations: 224 / 0.7753 GB, free: 2.055 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.5503, allocations: 171.7 kB / 0.7755 GB, free: 1.887 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.5507, allocations: 20.75 kB / 0.7755 GB, free: 1.867 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.5525, allocations: 0.5211 MB / 0.776 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.5529, allocations: 0.7689 MB / 0.7767 GB, free: 492 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000377/0.5533, allocations: 55.98 kB / 0.7768 GB, free: 436 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.5536, allocations: 91.39 kB / 0.7769 GB, free: 344 kB / 0.6511 GB Notification: Performance of SimCode: time 7.52e-07/0.5536, allocations: 3.938 kB / 0.7769 GB, free: 340 kB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6034/1.157, allocations: 6.743 MB / 0.7835 GB, free: 142 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002976/1.157, allocations: 149.6 kB / 0.7836 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.703/3.861, allocations: 1.406 kB / 0.7836 GB, free: 141.8 MB / 0.6511 GB