Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_latest_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.00119/0.00119, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.683/2.683, allocations: 409.4 MB / 0.684 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003594, allocations: 8 kB / 0.8378 GB, free: 6.535 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8296/0.83, allocations: 146.8 MB / 0.9811 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.001035/0.8311, allocations: 0.5834 MB / 0.9817 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002712/0.8338, allocations: 2.363 MB / 0.984 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.009e-05/0.8339, allocations: 7.938 kB / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/0.8339, allocations: 3.938 kB / 0.984 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.8342, allocations: 43.69 kB / 0.9841 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007821/0.835, allocations: 406.8 kB / 0.9845 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.8352, allocations: 271.1 kB / 0.9847 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 6.601e-05/0.8353, allocations: 17.67 kB / 0.9847 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.8355, allocations: 127.7 kB / 0.9849 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.8357, allocations: 143.5 kB / 0.985 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.8358, allocations: 12 kB / 0.985 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004913/0.8363, allocations: 283.8 kB / 0.9853 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.335e-05/0.8364, allocations: 55.8 kB / 0.9853 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.094e-05/0.8364, allocations: 65.62 kB / 0.9854 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.8369, allocations: 409.2 kB / 0.9858 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.8369, allocations: 0 / 0.9858 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.254e-06/0.8369, allocations: 0 / 0.9858 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.8369, allocations: 0 / 0.9858 GB, free: 1.484 MB / 0.7325 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.001221/0.8382, allocations: 0.6292 MB / 0.9864 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.8382, allocations: 12.03 kB / 0.9864 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.9e-05/0.8383, allocations: 46.55 kB / 0.9865 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.8384, allocations: 27.78 kB / 0.9865 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.8385, allocations: 187.5 kB / 0.9867 GB, free: 496 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.8387, allocations: 126.8 kB / 0.9868 GB, free: 344 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.8387, allocations: 24 kB / 0.9868 GB, free: 320 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003395/0.8391, allocations: 247.6 kB / 0.987 GB, free: 28 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.8391, allocations: 3.938 kB / 0.987 GB, free: 24 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.8391, allocations: 4 kB / 0.9871 GB, free: 20 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.8391, allocations: 4 kB / 0.9871 GB, free: 16 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.8394, allocations: 123.8 kB / 0.9872 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004272/0.8398, allocations: 395 kB / 0.9876 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.8411, allocations: 495.3 kB / 0.988 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.8413, allocations: 162.3 kB / 0.9882 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.8414, allocations: 15.98 kB / 0.9882 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.8418, allocations: 315.5 kB / 0.9885 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.8418, allocations: 4 kB / 0.9885 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.0007817/0.8426, allocations: 405.6 kB / 0.9889 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/0.8428, allocations: 350.1 kB / 0.9892 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.843, allocations: 164 kB / 0.9894 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.843, allocations: 42.2 kB / 0.9894 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 5.614e-05/0.8431, allocations: 101.1 kB / 0.9895 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.8432, allocations: 110.5 kB / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.201e-05/0.8432, allocations: 8 kB / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8433, allocations: 334.8 kB / 0.9899 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.8436, allocations: 113 kB / 0.9901 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.8439, allocations: 165 kB / 0.9902 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.8441, allocations: 127.1 kB / 0.9903 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.8442, allocations: 0 / 0.9903 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006917/0.8448, allocations: 374.8 kB / 0.9907 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.8449, allocations: 7.953 kB / 0.9907 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.8449, allocations: 4 kB / 0.9907 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.8449, allocations: 0 / 0.9907 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.8453, allocations: 79.81 kB / 0.9908 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.8453, allocations: 8 kB / 0.9908 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.8456, allocations: 55.66 kB / 0.9908 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.8456, allocations: 20.98 kB / 0.9909 GB, free: 11.72 MB / 0.7481 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 ($whenCondition8,$whenCondition7,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,$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.0001569/0.8458, allocations: 153.8 kB / 0.991 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.8458, allocations: 23.72 kB / 0.991 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006378/0.8465, allocations: 370 kB / 0.9914 GB, free: 11.17 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.8465, allocations: 12 kB / 0.9914 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.8465, allocations: 7.938 kB / 0.9914 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.8465, allocations: 7.984 kB / 0.9914 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.8469, allocations: 349.1 kB / 0.9917 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.847, allocations: 0 / 0.9917 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.8472, allocations: 79.83 kB / 0.9918 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.8473, allocations: 4 kB / 0.9918 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.8473, allocations: 12 kB / 0.9918 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.8473, allocations: 15.94 kB / 0.9918 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8473, allocations: 0 / 0.9918 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.848, allocations: 0.4902 MB / 0.9923 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.8482, allocations: 156.5 kB / 0.9925 GB, free: 9.922 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.8482, allocations: 12 kB / 0.9925 GB, free: 9.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.8485, allocations: 39.97 kB / 0.9925 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.8486, allocations: 55.83 kB / 0.9926 GB, free: 9.816 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.8486, allocations: 24.23 kB / 0.9926 GB, free: 9.793 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.931e-05/0.8487, allocations: 127.8 kB / 0.9927 GB, free: 9.668 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8487, allocations: 0 / 0.9927 GB, free: 9.668 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006094/0.8493, allocations: 219.7 kB / 0.9929 GB, free: 9.453 MB / 0.7481 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 (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.00136/0.8507, allocations: 1.244 MB / 0.9941 GB, free: 8.148 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006362/0.8513, allocations: 327.6 kB / 0.9945 GB, free: 7.828 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.8514, allocations: 0 / 0.9945 GB, free: 7.828 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.8517, allocations: 183.7 kB / 0.9946 GB, free: 7.648 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.852, allocations: 36.11 kB / 0.9947 GB, free: 7.613 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.8544, allocations: 1.542 MB / 0.9962 GB, free: 5.984 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.8547, allocations: 0.7575 MB / 0.9969 GB, free: 5.199 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002286/0.855, allocations: 63.23 kB / 0.997 GB, free: 5.141 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.8551, allocations: 91.39 kB / 0.9971 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of SimCode: time 1.153e-06/0.8552, allocations: 0 / 0.9971 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02005/0.8752, allocations: 7.333 MB / 1.004 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.8755, allocations: 199.3 kB / 1.004 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/2.891, allocations: 0 / 1.004 GB, free: 13.65 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat does not exist to compare? outputFormat=mat