Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime",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.001161/0.001161, 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.001503/0.001503, allocations: 196.6 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.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.673/2.673, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 61.14 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2733, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime): time 0.002226/0.2755, allocations: 0.8977 MB / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003342/0.2789, allocations: 2.486 MB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.2791, allocations: 4 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.718e-05/0.2791, allocations: 15.75 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.2794, allocations: 51.56 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.2808, allocations: 0.4947 MB / 1.057 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.2812, allocations: 311.2 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.336e-05/0.2812, allocations: 25.59 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.2815, allocations: 135.6 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.2817, allocations: 155.5 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.2818, allocations: 24 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006093/0.2824, allocations: 307.8 kB / 1.058 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.677e-05/0.2825, allocations: 75.78 kB / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.2826, allocations: 115.5 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007706/0.2834, allocations: 0.5416 MB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2834, allocations: 0 / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2834, allocations: 0 / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.2834, allocations: 0 / 1.058 GB, free: 2.609 MB / 0.8106 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.001532/0.285, allocations: 0.6646 MB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.285, allocations: 8.625 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.2851, allocations: 50.67 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.973e-05/0.2852, allocations: 28.64 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2853, allocations: 189.5 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.2855, allocations: 131.4 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.2856, allocations: 16.38 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.2859, allocations: 251.6 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.286, allocations: 0 / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.286, allocations: 8 kB / 1.06 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.286, allocations: 4 kB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.2862, allocations: 123.7 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.2867, allocations: 387.6 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.2882, allocations: 495.3 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.2884, allocations: 158.3 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.2885, allocations: 27.84 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004712/0.289, allocations: 307.6 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=40): time 2.455e-06/0.289, allocations: 0 / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.0008186/0.2898, allocations: 410.2 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.29, allocations: 354.1 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.2901, allocations: 175.2 kB / 1.062 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.2902, allocations: 41.7 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.2902, allocations: 97.12 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.2904, allocations: 114.4 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.2905, allocations: 94.22 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2906, allocations: 338.8 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002857/0.2909, allocations: 113.1 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.2912, allocations: 172.9 kB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.2918, allocations: 261.8 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2918, allocations: 4.125 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007565/0.2926, allocations: 388.5 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2926, allocations: 5.094 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2926, allocations: 0 / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2926, allocations: 4 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003908/0.293, allocations: 79.88 kB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.293, allocations: 0 / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.2933, allocations: 55.66 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.2934, allocations: 19.98 kB / 1.064 GB, free: 12.56 MB / 0.8262 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.0001686/0.2936, allocations: 155.8 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.2936, allocations: 32.39 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006789/0.2943, allocations: 362.1 kB / 1.064 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.2943, allocations: 8 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.2944, allocations: 4 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.2944, allocations: 4 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.2948, allocations: 356.9 kB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2948, allocations: 4 kB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.2951, allocations: 63.91 kB / 1.065 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-05/0.2951, allocations: 12 kB / 1.065 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.2951, allocations: 15.98 kB / 1.065 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.2951, allocations: 11.94 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.2951, allocations: 4.25 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006938/0.2958, allocations: 0.4939 MB / 1.065 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.296, allocations: 148.5 kB / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.824e-05/0.2961, allocations: 15.98 kB / 1.065 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.2963, allocations: 35.92 kB / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.2964, allocations: 55.81 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-05/0.2965, allocations: 23.98 kB / 1.065 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.651e-05/0.2966, allocations: 123.2 kB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2966, allocations: 0 / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005877/0.2972, allocations: 219.7 kB / 1.066 GB, free: 10.3 MB / 0.8262 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.001435/0.2986, allocations: 1.24 MB / 1.067 GB, free: 9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006935/0.2993, allocations: 351.5 kB / 1.067 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.2994, allocations: 0 / 1.067 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.2997, allocations: 192.9 kB / 1.068 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.2999, allocations: 35.92 kB / 1.068 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.3038, allocations: 2.755 MB / 1.07 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.3041, allocations: 0.7572 MB / 1.071 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002223/0.3044, allocations: 49.81 kB / 1.071 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.3045, allocations: 99.39 kB / 1.071 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/0.3045, allocations: 0 / 1.071 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03095/0.3355, allocations: 7.81 MB / 1.079 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.328/7.663, allocations: 4.438 kB / 1.079 GB, free: 12.92 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime_fmu --startTime=43200 --stopTime=345600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime.pipe 2>&1)