Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.468/1.468, allocations: 287.4 MB / 302.5 MB, free: 8.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008591/0.000859, allocations: 181.4 kB / 371.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.4 MB / 0.6298 GB, free: 10.54 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006643/0.0006644, allocations: 88.67 kB / 0.7431 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003509, allocations: 10.09 kB / 0.8662 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1687, allocations: 115.3 MB / 0.9787 GB, free: 28.08 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.0009115/0.1697, allocations: 0.591 MB / 0.9793 GB, free: 27.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1718, allocations: 2.322 MB / 0.9816 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1719, allocations: 4 kB / 0.9816 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.823e-05/0.172, allocations: 7.875 kB / 0.9816 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.1722, allocations: 39.69 kB / 0.9816 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008413/0.1731, allocations: 367.7 kB / 0.982 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.1734, allocations: 259.2 kB / 0.9822 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.841e-05/0.1734, allocations: 25.55 kB / 0.9823 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.1736, allocations: 123.6 kB / 0.9824 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1738, allocations: 135.6 kB / 0.9825 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.1739, allocations: 12 kB / 0.9825 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.1743, allocations: 275.7 kB / 0.9828 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.1744, allocations: 51.86 kB / 0.9828 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.1745, allocations: 61.58 kB / 0.9829 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.1749, allocations: 383.1 kB / 0.9833 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1749, allocations: 0 / 0.9833 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.894e-06/0.1749, allocations: 0 / 0.9833 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.1749, allocations: 0 / 0.9833 GB, free: 23.43 MB / 0.6198 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.001135/0.1761, allocations: 0.6226 MB / 0.9839 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1761, allocations: 8.031 kB / 0.9839 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.1762, allocations: 46.73 kB / 0.9839 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.945e-05/0.1763, allocations: 20.75 kB / 0.9839 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.1764, allocations: 192 kB / 0.9841 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1765, allocations: 127.4 kB / 0.9842 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.1765, allocations: 28.36 kB / 0.9843 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.1768, allocations: 255.4 kB / 0.9845 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1768, allocations: 3.938 kB / 0.9845 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1769, allocations: 8 kB / 0.9845 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1769, allocations: 8 kB / 0.9845 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.1771, allocations: 119.8 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006524/0.1777, allocations: 0.9511 MB / 0.9856 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.1789, allocations: 495.3 kB / 0.986 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.179, allocations: 162.3 kB / 0.9862 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.1791, allocations: 4 kB / 0.9862 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.1794, allocations: 311.7 kB / 0.9865 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=40): time 2.444e-06/0.1794, allocations: 4 kB / 0.9865 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=40): time 0.0006248/0.18, allocations: 396.9 kB / 0.9869 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.927e-05/0.1801, allocations: 354.1 kB / 0.9872 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1803, allocations: 176.8 kB / 0.9874 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.1803, allocations: 42.19 kB / 0.9874 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.1803, allocations: 108.9 kB / 0.9875 GB, free: 18.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.1804, allocations: 114.5 kB / 0.9876 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.832e-05/0.1804, allocations: 8 kB / 0.9876 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.259e-05/0.1805, allocations: 330.8 kB / 0.988 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1807, allocations: 105 kB / 0.9881 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.1809, allocations: 180.4 kB / 0.9882 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.1813, allocations: 283.3 kB / 0.9885 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1813, allocations: 0 / 0.9885 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005654/0.1819, allocations: 365 kB / 0.9889 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1819, allocations: 10.66 kB / 0.9889 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.182, allocations: 0 / 0.9889 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.182, allocations: 4 kB / 0.9889 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.1823, allocations: 83.81 kB / 0.9889 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1823, allocations: 4 kB / 0.989 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.1826, allocations: 63.97 kB / 0.989 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.1826, allocations: 24.98 kB / 0.989 GB, free: 16.89 MB / 0.6198 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * 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.0001011/0.1827, allocations: 155 kB / 0.9892 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.1828, allocations: 31.72 kB / 0.9892 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000529/0.1833, allocations: 366.3 kB / 0.9896 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1833, allocations: 8 kB / 0.9896 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1833, allocations: 4 kB / 0.9896 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1834, allocations: 11.92 kB / 0.9896 GB, free: 16.31 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.1836, allocations: 353 kB / 0.9899 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1836, allocations: 0 / 0.9899 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.1839, allocations: 75.83 kB / 0.99 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1839, allocations: 4 kB / 0.99 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.1839, allocations: 20 kB / 0.99 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.1839, allocations: 7.984 kB / 0.99 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.184, allocations: 7.938 kB / 0.99 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.1844, allocations: 485.6 kB / 0.9905 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1846, allocations: 152.5 kB / 0.9906 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.1846, allocations: 16 kB / 0.9907 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.1848, allocations: 43.97 kB / 0.9907 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.56e-05/0.1849, allocations: 47.88 kB / 0.9907 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.185, allocations: 24.23 kB / 0.9908 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.497e-05/0.185, allocations: 127.2 kB / 0.9909 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.61e-07/0.185, allocations: 4 kB / 0.9909 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004714/0.1855, allocations: 203.8 kB / 0.9911 GB, free: 14.65 MB / 0.6198 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) * Number of clocked states: 0 () * 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.0009279/0.1865, allocations: 1.24 MB / 0.9923 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004696/0.1869, allocations: 315.5 kB / 0.9926 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1869, allocations: 4 kB / 0.9926 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.1872, allocations: 180.1 kB / 0.9928 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.1874, allocations: 34.2 kB / 0.9928 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.1893, allocations: 1.528 MB / 0.9943 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.1894, allocations: 0.7614 MB / 0.995 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002301/0.1897, allocations: 54.89 kB / 0.9951 GB, free: 10.36 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.1898, allocations: 95.38 kB / 0.9952 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of SimCode: time 8.31e-07/0.1898, allocations: 0 / 0.9952 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01599/0.2058, allocations: 7.187 MB / 1.002 GB, free: 3.227 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001305/0.206, allocations: 199.2 kB / 1.002 GB, free: 2.988 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.115, allocations: 3.938 kB / 1.002 GB, free: 2.984 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)