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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.269/2.269, allocations: 390.3 MB / 402.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.001229, allocations: 180.9 kB / 496.1 MB, free: 12.9 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.575/1.575, allocations: 221.3 MB / 0.7915 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009219/0.0009219, allocations: 91.95 kB / 0.9317 GB, free: 5.738 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.608e-05/4.629e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.892/1.144, allocations: 150.8 MB / 1.366 GB, free: 2.977 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/1.144, allocations: 67.14 kB / 1.366 GB, free: 2.941 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03444/1.179, allocations: 10.53 MB / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.563e-06/1.179, allocations: 7.938 kB / 1.376 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.899e-06/1.179, allocations: 4 kB / 1.376 GB, free: 10.01 MB / 0.8386 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.001277/1.18, allocations: 0.6232 MB / 1.377 GB, free: 9.352 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/1.18, allocations: 8.031 kB / 1.377 GB, free: 9.344 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.368e-05/1.18, allocations: 49.67 kB / 1.377 GB, free: 9.293 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/1.18, allocations: 19.81 kB / 1.377 GB, free: 9.273 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/1.181, allocations: 194.6 kB / 1.377 GB, free: 9.043 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/1.181, allocations: 130.2 kB / 1.377 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/1.181, allocations: 19.3 kB / 1.377 GB, free: 8.883 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/1.181, allocations: 243.9 kB / 1.378 GB, free: 8.641 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/1.181, allocations: 0 / 1.378 GB, free: 8.641 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/1.181, allocations: 7.75 kB / 1.378 GB, free: 8.637 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/1.181, allocations: 4 kB / 1.378 GB, free: 8.633 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/1.181, allocations: 110.4 kB / 1.378 GB, free: 8.547 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003971/1.182, allocations: 390.8 kB / 1.378 GB, free: 8.145 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/1.183, allocations: 0.4894 MB / 1.379 GB, free: 7.598 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/1.183, allocations: 158.3 kB / 1.379 GB, free: 7.438 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/1.183, allocations: 7.984 kB / 1.379 GB, free: 7.43 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/1.184, allocations: 320 kB / 1.379 GB, free: 7.113 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/1.184, allocations: 0 / 1.379 GB, free: 7.113 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0006276/1.185, allocations: 314.5 kB / 1.379 GB, free: 6.859 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002288/1.185, allocations: 357.8 kB / 1.38 GB, free: 6.434 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/1.185, allocations: 153.6 kB / 1.38 GB, free: 6.289 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/1.185, allocations: 40.45 kB / 1.38 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/1.185, allocations: 96 kB / 1.38 GB, free: 6.164 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/1.185, allocations: 107.2 kB / 1.38 GB, free: 6.074 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.021e-05/1.185, allocations: 10.56 kB / 1.38 GB, free: 6.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.185, allocations: 336.5 kB / 1.38 GB, free: 5.742 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/1.186, allocations: 108.2 kB / 1.381 GB, free: 5.672 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/1.186, allocations: 158.3 kB / 1.381 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/1.186, allocations: 111.1 kB / 1.381 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.186, allocations: 0 / 1.381 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005541/1.187, allocations: 351.7 kB / 1.381 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/1.187, allocations: 4 kB / 1.381 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/1.187, allocations: 0 / 1.381 GB, free: 5.195 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/1.187, allocations: 4 kB / 1.381 GB, free: 5.191 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003891/1.187, allocations: 83.75 kB / 1.381 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/1.187, allocations: 5.172 kB / 1.381 GB, free: 5.109 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/1.187, allocations: 59.41 kB / 1.381 GB, free: 5.059 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/1.187, allocations: 18.55 kB / 1.381 GB, free: 5.043 MB / 0.8386 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 () * 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.0001226/1.187, allocations: 138.9 kB / 1.381 GB, free: 4.914 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/1.188, allocations: 35.16 kB / 1.381 GB, free: 4.883 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006473/1.188, allocations: 367.3 kB / 1.382 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/1.188, allocations: 8 kB / 1.382 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/1.188, allocations: 4 kB / 1.382 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/1.188, allocations: 7.984 kB / 1.382 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003289/1.189, allocations: 343.8 kB / 1.382 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.189, allocations: 8 kB / 1.382 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/1.189, allocations: 79.14 kB / 1.382 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/1.189, allocations: 4 kB / 1.382 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/1.189, allocations: 14.38 kB / 1.382 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/1.189, allocations: 7.984 kB / 1.382 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.189, allocations: 4 kB / 1.382 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/1.19, allocations: 0.6013 MB / 1.383 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/1.19, allocations: 155.1 kB / 1.383 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/1.19, allocations: 19.25 kB / 1.383 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/1.19, allocations: 38.84 kB / 1.383 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1.19, allocations: 53.69 kB / 1.383 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/1.19, allocations: 27.42 kB / 1.383 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.29e-05/1.19, allocations: 121.2 kB / 1.383 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.19, allocations: 0 / 1.383 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006932/1.191, allocations: 229.6 kB / 1.384 GB, free: 2.934 MB / 0.8386 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) * 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.001692/1.193, allocations: 2.126 MB / 1.386 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000518/1.193, allocations: 315.1 kB / 1.386 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.193, allocations: 0 / 1.386 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002692/1.194, allocations: 180.8 kB / 1.386 GB, free: 460 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/1.194, allocations: 17 kB / 1.386 GB, free: 448 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/1.195, allocations: 0.5814 MB / 1.387 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/1.195, allocations: 0.765 MB / 1.387 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002226/1.195, allocations: 59.23 kB / 1.387 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/1.196, allocations: 97.95 kB / 1.388 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of SimCode: time 2.004e-06/1.196, allocations: 0 / 1.388 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/1.217, allocations: 7.145 MB / 1.395 GB, free: 8.02 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/1.217, allocations: 185.7 kB / 1.395 GB, free: 7.797 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.126/3.343, allocations: 0 / 1.395 GB, free: 7.797 MB / 0.8542 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetPositiveStartTime_res.mat does not exist to compare? outputFormat=mat