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 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.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.001099/0.001099, allocations: 108 kB / 15.6 MB, free: 132 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.001206/0.001206, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.294/1.294, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.631/2.631, allocations: 461.9 MB / 0.7347 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 61.44 kB / 0.8992 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2769, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.00204/0.279, allocations: 0.9058 MB / 1.054 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002949/0.282, allocations: 2.482 MB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2821, allocations: 0 / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.788e-05/0.2822, allocations: 11.81 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.2824, allocations: 59.56 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.2835, allocations: 494.7 kB / 1.057 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.2838, allocations: 323 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.758e-05/0.2839, allocations: 21.61 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.2841, allocations: 143.6 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.2843, allocations: 155.5 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.2844, allocations: 24 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005553/0.285, allocations: 307.8 kB / 1.058 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.301e-05/0.285, allocations: 75.77 kB / 1.058 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.2852, allocations: 111.5 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007033/0.2859, allocations: 0.5455 MB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2859, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2859, allocations: 4 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.2859, allocations: 0 / 1.058 GB, free: 2.594 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.001353/0.2873, allocations: 0.6618 MB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2873, allocations: 8.625 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.985e-05/0.2874, allocations: 46.73 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.2875, allocations: 24.66 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.2876, allocations: 193.5 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.2878, allocations: 135.4 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.84e-05/0.2878, allocations: 16.38 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.2882, allocations: 239.7 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2882, allocations: 7.938 kB / 1.06 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.2882, allocations: 4 kB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2882, allocations: 7.938 kB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.2884, allocations: 107.8 kB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000416/0.2889, allocations: 399.6 kB / 1.06 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.2903, allocations: 495.3 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2905, allocations: 158.2 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.2906, allocations: 15.92 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004552/0.291, allocations: 323.5 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.2911, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.0008018/0.2919, allocations: 413.8 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.292, allocations: 354.6 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.2922, allocations: 179.2 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/0.2923, allocations: 37.7 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.987e-05/0.2923, allocations: 97.12 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2924, allocations: 114.5 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.2926, allocations: 94.22 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.2927, allocations: 326.8 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.293, allocations: 121 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.2933, allocations: 169 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.2939, allocations: 262.8 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2939, allocations: 4 kB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008043/0.2947, allocations: 380 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2947, allocations: 12 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.2947, allocations: 0 / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2947, allocations: 7.938 kB / 1.064 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.2951, allocations: 75.88 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2951, allocations: 4 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.2954, allocations: 51.66 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.2955, allocations: 19.98 kB / 1.064 GB, free: 12.55 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.000172/0.2956, allocations: 153.7 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.665e-05/0.2957, allocations: 27.66 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006578/0.2964, allocations: 354.9 kB / 1.064 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.2964, allocations: 12 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.2964, allocations: 3.984 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2964, allocations: 4.188 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/0.2968, allocations: 361.3 kB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2968, allocations: 0 / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.2971, allocations: 79.83 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.2971, allocations: 4 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.2972, allocations: 19.98 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2972, allocations: 4 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2972, allocations: 7.938 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006478/0.2978, allocations: 0.4901 MB / 1.065 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.298, allocations: 152.5 kB / 1.065 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.298, allocations: 16 kB / 1.065 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002473/0.2983, allocations: 27.97 kB / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.405e-05/0.2984, allocations: 55.88 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.2984, allocations: 23.98 kB / 1.065 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.984e-05/0.2985, allocations: 127.8 kB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2985, allocations: 3.938 kB / 1.066 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005295/0.2991, 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.001315/0.3004, allocations: 1.236 MB / 1.067 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006446/0.301, allocations: 353.8 kB / 1.067 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3011, allocations: 0 / 1.067 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.3013, allocations: 191.7 kB / 1.068 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.3016, allocations: 29.19 kB / 1.068 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003646/0.3053, allocations: 2.755 MB / 1.07 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3056, allocations: 0.7611 MB / 1.071 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002132/0.3058, allocations: 66.8 kB / 1.071 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.306, allocations: 91.39 kB / 1.071 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.306, allocations: 0 / 1.071 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.3302, allocations: 7.77 MB / 1.079 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.524/7.854, allocations: 10.77 kB / 1.079 GB, free: 12.9 MB / 0.8419 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/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)