Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,fileNamePrefix="Buildings_9_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.009087/0.009087, allocations: 100.9 kB / 15.73 MB, free: 5.586 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.001772/0.001772, allocations: 189.4 kB / 16.67 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.471/2.471, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.783/3.783, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002116/0.002116, allocations: 67.89 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522/1.524, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.003108/1.527, allocations: 0.9002 MB / 1.088 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004015/1.531, allocations: 2.473 MB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/1.532, allocations: 4 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.895e-05/1.532, allocations: 14.06 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003407/1.532, allocations: 46.12 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001873/1.534, allocations: 0.4915 MB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005043/1.534, allocations: 321.6 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.44e-05/1.535, allocations: 11.88 kB / 1.092 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/1.535, allocations: 137.9 kB / 1.092 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/1.535, allocations: 151.6 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.669e-05/1.535, allocations: 23.38 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/1.536, allocations: 374.9 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/1.537, allocations: 66.77 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002163/1.537, allocations: 119.3 kB / 1.092 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001561/1.538, allocations: 0.5467 MB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/1.538, allocations: 4.75 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.507e-06/1.538, allocations: 0 / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.078e-05/1.538, allocations: 3.938 kB / 1.093 GB, free: 2.008 MB / 0.8575 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.002512/1.541, allocations: 0.6526 MB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.276e-05/1.541, allocations: 10.06 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.846e-05/1.541, allocations: 46.77 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/1.541, allocations: 29.06 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/1.541, allocations: 198.3 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/1.542, allocations: 133.8 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.136e-05/1.542, allocations: 18.64 kB / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006222/1.542, allocations: 256.5 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/1.542, allocations: 1.562 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/1.543, allocations: 6.969 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/1.543, allocations: 5.266 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/1.543, allocations: 112.1 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007881/1.544, allocations: 403.7 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/1.546, allocations: 490.3 kB / 1.095 GB, free: 128 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/1.546, allocations: 157.4 kB / 1.095 GB, free: 16 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.254e-05/1.546, allocations: 17.97 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007027/1.547, allocations: 326.5 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=40): time 2.695e-06/1.547, allocations: 0.75 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.001215/1.548, allocations: 408.4 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002185/1.548, allocations: 358.5 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/1.549, allocations: 164.1 kB / 1.097 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/1.549, allocations: 40.44 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/1.549, allocations: 93.78 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/1.549, allocations: 114.2 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/1.549, allocations: 96.12 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001585/1.549, allocations: 330.7 kB / 1.097 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/1.55, allocations: 119.7 kB / 1.097 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/1.55, allocations: 171.3 kB / 1.098 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000723/1.551, allocations: 262.2 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.551, allocations: 0 / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001001/1.552, allocations: 382.6 kB / 1.098 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/1.552, allocations: 10.38 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/1.552, allocations: 0.5625 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/1.552, allocations: 3.688 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/1.552, allocations: 76.45 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/1.552, allocations: 8.359 kB / 1.098 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/1.553, allocations: 49.22 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-05/1.553, allocations: 24.25 kB / 1.098 GB, free: 14.03 MB / 0.8731 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.0002308/1.553, allocations: 149.9 kB / 1.098 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.42e-05/1.553, allocations: 33.09 kB / 1.098 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008422/1.554, allocations: 350.2 kB / 1.099 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/1.554, allocations: 9.703 kB / 1.099 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/1.554, allocations: 3.25 kB / 1.099 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.465e-05/1.554, allocations: 10.33 kB / 1.099 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005572/1.555, allocations: 355.9 kB / 1.099 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.555, allocations: 3.281 kB / 1.099 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/1.555, allocations: 71.58 kB / 1.099 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/1.555, allocations: 5.188 kB / 1.099 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.548e-05/1.555, allocations: 18.48 kB / 1.099 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.83e-05/1.555, allocations: 10.16 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/1.555, allocations: 3.156 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009622/1.556, allocations: 0.4997 MB / 1.1 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/1.557, allocations: 150.7 kB / 1.1 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/1.557, allocations: 16.91 kB / 1.1 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/1.557, allocations: 26.34 kB / 1.1 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/1.557, allocations: 56.36 kB / 1.1 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/1.557, allocations: 22.89 kB / 1.1 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001423/1.557, allocations: 127 kB / 1.1 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.71e-07/1.557, allocations: 3.938 kB / 1.1 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001233/1.559, allocations: 215.9 kB / 1.1 GB, free: 12.79 MB / 0.8731 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.002534/1.561, allocations: 1.248 MB / 1.102 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001194/1.562, allocations: 341.8 kB / 1.102 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/1.562, allocations: 0.5 kB / 1.102 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004441/1.563, allocations: 190.5 kB / 1.102 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/1.563, allocations: 36.88 kB / 1.102 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006871/1.57, allocations: 2.754 MB / 1.105 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/1.571, allocations: 0.7611 MB / 1.106 GB, free: 9.051 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003583/1.571, allocations: 61 kB / 1.106 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/1.571, allocations: 93.14 kB / 1.106 GB, free: 8.977 MB / 0.8731 GB Notification: Performance of SimCode: time 9.82e-07/1.571, allocations: 1.125 kB / 1.106 GB, free: 8.977 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/1.619, allocations: 7.855 MB / 1.113 GB, free: 8.074 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/14.27, allocations: 6.344 kB / 1.113 GB, free: 8.07 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)