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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001038/0.001038, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001265/0.001265, allocations: 172.7 kB / 15.95 MB, free: 208 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.586/1.586, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.587/2.587, allocations: 390.4 MB / 0.6655 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.000474, allocations: 8 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7645/0.765, allocations: 142.3 MB / 0.9539 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.0009638/0.766, allocations: 0.584 MB / 0.9544 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002754/0.7688, allocations: 2.362 MB / 0.9567 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.224e-05/0.7689, allocations: 3.938 kB / 0.9567 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.441e-05/0.7689, allocations: 7.938 kB / 0.9567 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.7691, allocations: 46.73 kB / 0.9568 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007351/0.7699, allocations: 405.5 kB / 0.9572 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.7701, allocations: 276.4 kB / 0.9574 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.247e-05/0.7702, allocations: 13.48 kB / 0.9575 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.7703, allocations: 128.9 kB / 0.9576 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.7705, allocations: 151.6 kB / 0.9577 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.7706, allocations: 12.81 kB / 0.9577 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004611/0.771, allocations: 275.9 kB / 0.958 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.506e-05/0.7711, allocations: 63.48 kB / 0.9581 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.397e-05/0.7712, allocations: 58.7 kB / 0.9581 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.7716, allocations: 407.5 kB / 0.9585 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.7716, allocations: 0 / 0.9585 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7716, allocations: 1.375 kB / 0.9585 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.7716, allocations: 0 / 0.9585 GB, free: 4.75 MB / 0.7169 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.001068/0.7727, allocations: 0.6342 MB / 0.9591 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.7727, allocations: 8.875 kB / 0.9591 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.648e-05/0.7728, allocations: 51.14 kB / 0.9592 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/0.7728, allocations: 23.17 kB / 0.9592 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.102e-05/0.7729, allocations: 190.3 kB / 0.9594 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.773, allocations: 128.5 kB / 0.9595 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.7731, allocations: 16.59 kB / 0.9595 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.7734, allocations: 241.2 kB / 0.9598 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.7734, allocations: 5.531 kB / 0.9598 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.7734, allocations: 10.48 kB / 0.9598 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.7734, allocations: 8.203 kB / 0.9598 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.7736, allocations: 109.5 kB / 0.9599 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003458/0.774, allocations: 400.5 kB / 0.9603 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.7752, allocations: 0.4917 MB / 0.9607 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.7754, allocations: 164.1 kB / 0.9609 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.7755, allocations: 12.08 kB / 0.9609 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003963/0.7759, allocations: 308.9 kB / 0.9612 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=40): time 2.204e-06/0.7759, allocations: 0 / 0.9612 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40): time 0.0007494/0.7766, allocations: 413.7 kB / 0.9616 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.7767, allocations: 353.8 kB / 0.9619 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.7769, allocations: 173.5 kB / 0.9621 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.7769, allocations: 39.73 kB / 0.9621 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.7769, allocations: 101.5 kB / 0.9622 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.38e-05/0.777, allocations: 116.5 kB / 0.9623 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.081e-05/0.777, allocations: 10.56 kB / 0.9624 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.361e-05/0.7771, allocations: 327.6 kB / 0.9627 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.7773, allocations: 116.5 kB / 0.9628 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.7776, allocations: 162.1 kB / 0.9629 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.7779, allocations: 126.3 kB / 0.9631 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7779, allocations: 0 / 0.9631 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006541/0.7785, allocations: 380.3 kB / 0.9634 GB, free: 464 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.7786, allocations: 6.062 kB / 0.9634 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.7786, allocations: 1.031 kB / 0.9634 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.7786, allocations: 2.5 kB / 0.9634 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.779, allocations: 78.59 kB / 0.9635 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.779, allocations: 6.484 kB / 0.9635 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.7793, allocations: 58.03 kB / 0.9636 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.7793, allocations: 19.36 kB / 0.9636 GB, free: 396 kB / 0.7169 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.0001223/0.7794, allocations: 157.1 kB / 0.9637 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.7795, allocations: 28.27 kB / 0.9638 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006305/0.7801, allocations: 356.8 kB / 0.9641 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.7801, allocations: 9.75 kB / 0.9641 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7802, allocations: 7.438 kB / 0.9641 GB, free: 4 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.7802, allocations: 7.188 kB / 0.9641 GB, free: 0 / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004356/0.7806, allocations: 354.2 kB / 0.9645 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.7806, allocations: 2.219 kB / 0.9645 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.7809, allocations: 75.16 kB / 0.9645 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.7809, allocations: 5.375 kB / 0.9645 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.781, allocations: 20.2 kB / 0.9646 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.781, allocations: 4.625 kB / 0.9646 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.781, allocations: 7.219 kB / 0.9646 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.7817, allocations: 0.4901 MB / 0.965 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.7819, allocations: 149.1 kB / 0.9652 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.782, allocations: 19.05 kB / 0.9652 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.7822, allocations: 34.23 kB / 0.9652 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.7823, allocations: 61.19 kB / 0.9653 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.7824, allocations: 20.25 kB / 0.9653 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.389e-05/0.7825, allocations: 124.1 kB / 0.9654 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7825, allocations: 0 / 0.9654 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000684/0.7832, allocations: 216.2 kB / 0.9656 GB, free: 14.91 MB / 0.7325 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.001376/0.7846, allocations: 1.241 MB / 0.9669 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000673/0.7852, allocations: 328.2 kB / 0.9672 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.7853, allocations: 0.9688 kB / 0.9672 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.7856, allocations: 185.2 kB / 0.9673 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.7859, allocations: 31.36 kB / 0.9674 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.7884, allocations: 1.55 MB / 0.9689 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.7888, allocations: 0.7617 MB / 0.9696 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000239/0.789, allocations: 58.88 kB / 0.9697 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.7892, allocations: 92.36 kB / 0.9698 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of SimCode: time 5.31e-07/0.7892, allocations: 0 / 0.9698 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.8101, allocations: 7.331 MB / 0.9769 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.8103, allocations: 198.6 kB / 0.9771 GB, free: 7.508 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.72, allocations: 0 / 0.9771 GB, free: 7.508 MB / 0.7325 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat does not exist to compare? outputFormat=mat