Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_10_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001118, 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.001312/0.001312, allocations: 192.7 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.627/2.627, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 67.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7751/0.7767, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.002568/0.7793, allocations: 0.8938 MB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00361/0.783, allocations: 2.478 MB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.7832, allocations: 3.938 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 5.596e-05/0.7833, allocations: 11.81 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.7836, allocations: 47.62 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.785, allocations: 0.5043 MB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004786/0.7855, allocations: 319 kB / 1.022 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.19e-05/0.7856, allocations: 17.66 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003285/0.786, allocations: 139.6 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.7862, allocations: 151.5 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.938e-05/0.7863, allocations: 24 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007788/0.7871, allocations: 315.8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.684e-05/0.7872, allocations: 67.78 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.7874, allocations: 119.5 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00096/0.7883, allocations: 0.5416 MB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.7883, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7883, allocations: 0 / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.7884, allocations: 0 / 1.023 GB, free: 12.86 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001526/0.7899, allocations: 0.6645 MB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.79, allocations: 8.031 kB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.79, allocations: 46.73 kB / 1.024 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.7901, allocations: 24.73 kB / 1.024 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.7903, allocations: 192.7 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.7905, allocations: 131.4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.7905, allocations: 16.38 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.7909, allocations: 247.6 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.7909, allocations: 0 / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.791, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.791, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.7912, allocations: 119.7 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.7917, allocations: 406.9 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.7931, allocations: 499.3 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.7934, allocations: 150.2 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.7934, allocations: 27.91 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004459/0.7939, allocations: 303.6 kB / 1.026 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=40): time 1.904e-06/0.7939, allocations: 0 / 1.026 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of matching and sorting (n=40): time 0.0007992/0.7947, allocations: 414.3 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.7948, allocations: 354.1 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.795, allocations: 169.6 kB / 1.027 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.795, allocations: 37.7 kB / 1.027 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.7951, allocations: 97.12 kB / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.234e-05/0.7952, allocations: 118.6 kB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.7953, allocations: 94.22 kB / 1.027 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.7954, allocations: 334.8 kB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.7957, allocations: 121.2 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.796, allocations: 169 kB / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/0.7966, allocations: 271.1 kB / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.7966, allocations: 0 / 1.028 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007555/0.7973, allocations: 378.4 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.7974, allocations: 4 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.7974, allocations: 0 / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.7974, allocations: 4 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000392/0.7978, allocations: 79.81 kB / 1.028 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.7978, allocations: 4 kB / 1.028 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.7981, allocations: 55.66 kB / 1.028 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.7982, allocations: 19.98 kB / 1.028 GB, free: 6.805 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 (sunRiseSetSyd.sunUp,sunRiseSetSyd.nextSunSet,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunRise,$whenCondition7,$whenCondition8,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.nextSunSet,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunRise,$whenCondition5,$whenCondition6,sunRiseSetSf.sunUp,sunRiseSetSf.nextSunSet,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunRise,$whenCondition3,$whenCondition4,sunRiseSetArctic.sunUp,sunRiseSetArctic.nextSunSet,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunRise,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.7984, allocations: 141.8 kB / 1.028 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.539e-05/0.7984, allocations: 35.64 kB / 1.028 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.7991, allocations: 354.7 kB / 1.029 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-06/0.7992, allocations: 12 kB / 1.029 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.7992, allocations: 4 kB / 1.029 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.7992, allocations: 0 / 1.029 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.7997, allocations: 353.1 kB / 1.029 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.7997, allocations: 0 / 1.029 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.8, allocations: 71.91 kB / 1.029 GB, free: 5.789 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.8, allocations: 12.12 kB / 1.029 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.8001, allocations: 20.23 kB / 1.029 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/0.8001, allocations: 12 kB / 1.029 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.8001, allocations: 0 / 1.029 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008099/0.8009, allocations: 0.5017 MB / 1.03 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.8011, allocations: 144.5 kB / 1.03 GB, free: 5.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.8012, allocations: 19.98 kB / 1.03 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.8014, allocations: 35.92 kB / 1.03 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.8016, allocations: 55.81 kB / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.8016, allocations: 23.98 kB / 1.03 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001182/0.8017, allocations: 127.2 kB / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8017, allocations: 0 / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006878/0.8024, allocations: 211.7 kB / 1.03 GB, free: 4.562 MB / 0.7794 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,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 8 (sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.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 (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.001488/0.8039, allocations: 1.248 MB / 1.032 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006761/0.8046, allocations: 356.5 kB / 1.032 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.8046, allocations: 0 / 1.032 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.805, allocations: 196.5 kB / 1.032 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.8053, allocations: 37.3 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.8092, allocations: 2.748 MB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.8096, allocations: 0.7611 MB / 1.035 GB, free: 14.98 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002312/0.8098, allocations: 59.23 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.81, allocations: 99.39 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of SimCode: time 4.81e-07/0.81, allocations: 0 / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.8397, allocations: 7.773 MB / 1.043 GB, free: 7.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/11, allocations: 12.02 kB / 1.043 GB, free: 7.133 MB / 0.795 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)