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.547/2.547, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001204/0.001204, allocations: 183.5 kB / 0.4901 GB, free: 2.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001052/0.001051, allocations: 102.6 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005216/0.000523, allocations: 10.16 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2739, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.4753, allocations: 150.8 MB / 1.377 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.4756, allocations: 63.95 kB / 1.377 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03619/0.5119, allocations: 10.59 MB / 1.387 GB, free: 3.707 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.856e-06/0.5119, allocations: 0 / 1.387 GB, free: 3.707 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.5119, allocations: 4 kB / 1.387 GB, free: 3.703 MB / 0.8855 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.001448/0.5134, allocations: 0.637 MB / 1.388 GB, free: 3.016 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.5135, allocations: 12.03 kB / 1.388 GB, free: 3.004 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.658e-05/0.5135, allocations: 46.55 kB / 1.388 GB, free: 2.949 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.5136, allocations: 19.81 kB / 1.388 GB, free: 2.93 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.5138, allocations: 195.4 kB / 1.388 GB, free: 2.695 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.514, allocations: 126.8 kB / 1.388 GB, free: 2.547 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.514, allocations: 20 kB / 1.388 GB, free: 2.527 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.5144, allocations: 244.5 kB / 1.388 GB, free: 2.246 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.5144, allocations: 4 kB / 1.388 GB, free: 2.242 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.5144, allocations: 8 kB / 1.388 GB, free: 2.234 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.5145, allocations: 4 kB / 1.388 GB, free: 2.23 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.5147, allocations: 111.7 kB / 1.388 GB, free: 2.121 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.5152, allocations: 391.2 kB / 1.389 GB, free: 1.656 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.5167, allocations: 499.6 kB / 1.389 GB, free: 1.059 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.5167, allocations: 8 kB / 1.389 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005185/0.5173, allocations: 319.5 kB / 1.39 GB, free: 0.6875 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 2.355e-06/0.5173, allocations: 0 / 1.39 GB, free: 0.6875 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.0008684/0.5181, allocations: 413.8 kB / 1.39 GB, free: 284 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002539/0.5184, allocations: 354.6 kB / 1.39 GB, free: 15.85 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.5186, allocations: 153.2 kB / 1.39 GB, free: 15.7 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.901e-05/0.5186, allocations: 45.64 kB / 1.39 GB, free: 15.64 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 9.313e-05/0.5187, allocations: 93.12 kB / 1.391 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.5189, allocations: 118.4 kB / 1.391 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.5189, allocations: 8 kB / 1.391 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5191, allocations: 338.8 kB / 1.391 GB, free: 15.09 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.5193, allocations: 113.1 kB / 1.391 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.5196, allocations: 165 kB / 1.391 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.5199, allocations: 114.5 kB / 1.391 GB, free: 14.69 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.52, allocations: 4 kB / 1.391 GB, free: 14.69 MB / 0.9011 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007413/0.5207, allocations: 372.9 kB / 1.392 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.5207, allocations: 8 kB / 1.392 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.5207, allocations: 0 / 1.392 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.5208, allocations: 8 kB / 1.392 GB, free: 14.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.5212, allocations: 75.88 kB / 1.392 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.5212, allocations: 4 kB / 1.392 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.5215, allocations: 55.59 kB / 1.392 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.874e-05/0.5216, allocations: 27.92 kB / 1.392 GB, free: 14.14 MB / 0.9011 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.0001687/0.5217, allocations: 157.7 kB / 1.392 GB, free: 13.98 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.5218, allocations: 23.72 kB / 1.392 GB, free: 13.96 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006957/0.5225, allocations: 366.6 kB / 1.392 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.5225, allocations: 8 kB / 1.392 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5225, allocations: 4 kB / 1.392 GB, free: 13.58 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.5226, allocations: 11.98 kB / 1.392 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.523, allocations: 345.1 kB / 1.393 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.523, allocations: 4 kB / 1.393 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.5233, allocations: 71.89 kB / 1.393 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.5234, allocations: 8 kB / 1.393 GB, free: 13.1 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.5234, allocations: 16 kB / 1.393 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.075e-05/0.5234, allocations: 12.23 kB / 1.393 GB, free: 13.07 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5234, allocations: 4 kB / 1.393 GB, free: 13.07 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007961/0.5242, allocations: 0.6139 MB / 1.393 GB, free: 12.34 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.5244, allocations: 148.5 kB / 1.394 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.5245, allocations: 16 kB / 1.394 GB, free: 12.16 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.5247, allocations: 39.97 kB / 1.394 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5248, allocations: 51.88 kB / 1.394 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.5249, allocations: 27.94 kB / 1.394 GB, free: 12.04 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 8.984e-05/0.525, allocations: 127.2 kB / 1.394 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.1e-07/0.525, allocations: 0 / 1.394 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007154/0.5257, allocations: 223.7 kB / 1.394 GB, free: 11.7 MB / 0.9011 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.001893/0.5276, allocations: 2.136 MB / 1.396 GB, free: 9.453 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006424/0.5283, allocations: 330.2 kB / 1.396 GB, free: 9.137 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5283, allocations: 0 / 1.396 GB, free: 9.137 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002806/0.5286, allocations: 180.6 kB / 1.397 GB, free: 8.961 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.5288, allocations: 24.17 kB / 1.397 GB, free: 8.934 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.5304, allocations: 1.457 MB / 1.398 GB, free: 7.383 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.5308, allocations: 0.7613 MB / 1.399 GB, free: 6.594 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002339/0.5311, allocations: 63.19 kB / 1.399 GB, free: 6.531 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.5313, allocations: 95.38 kB / 1.399 GB, free: 6.438 MB / 0.9011 GB Notification: Performance of SimCode: time 3.41e-07/0.5313, allocations: 0 / 1.399 GB, free: 6.438 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5179/1.049, allocations: 6.942 MB / 1.406 GB, free: 170.2 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/1.049, allocations: 215.9 kB / 1.406 GB, free: 169.9 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/3.151, allocations: 0 / 1.406 GB, free: 169.9 MB / 0.9011 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