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/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.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/Buildings 10.0.0-master/package.mo): time 2.423/2.423, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001289/0.001289, allocations: 179.4 kB / 0.4901 GB, free: 2.254 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.614/1.614, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.0009741/0.0009743, allocations: 102.8 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003999, allocations: 10.12 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3214, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1966/0.518, allocations: 150.8 MB / 1.377 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5184, allocations: 71.95 kB / 1.377 GB, free: 2.543 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03546/0.5538, allocations: 10.58 MB / 1.387 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.216e-06/0.5539, allocations: 0 / 1.387 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.5539, allocations: 7.938 kB / 1.387 GB, free: 7.938 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.001602/0.5555, allocations: 0.6421 MB / 1.388 GB, free: 7.246 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.5556, allocations: 8.562 kB / 1.388 GB, free: 7.238 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.5557, allocations: 46.55 kB / 1.388 GB, free: 7.184 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.5558, allocations: 19.81 kB / 1.388 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.556, allocations: 188.9 kB / 1.388 GB, free: 6.938 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.5562, allocations: 126.8 kB / 1.388 GB, free: 6.789 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.5563, allocations: 23.98 kB / 1.388 GB, free: 6.766 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/0.5567, allocations: 236.6 kB / 1.388 GB, free: 6.492 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5567, allocations: 0 / 1.388 GB, free: 6.492 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.5568, allocations: 19.97 kB / 1.388 GB, free: 6.473 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.5568, allocations: 4 kB / 1.388 GB, free: 6.469 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.557, allocations: 115.7 kB / 1.388 GB, free: 6.355 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.5576, allocations: 395.2 kB / 1.389 GB, free: 5.887 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.559, allocations: 491.5 kB / 1.389 GB, free: 5.297 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.5591, allocations: 15.98 kB / 1.389 GB, free: 5.281 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004984/0.5596, allocations: 311.5 kB / 1.39 GB, free: 4.926 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 2.985e-06/0.5596, allocations: 0 / 1.39 GB, free: 4.926 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.0008707/0.5605, allocations: 405.8 kB / 1.39 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/0.5607, allocations: 354.5 kB / 1.39 GB, free: 4.098 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.5609, allocations: 164.7 kB / 1.39 GB, free: 3.93 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.561, allocations: 41.7 kB / 1.39 GB, free: 3.883 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.5611, allocations: 97.12 kB / 1.391 GB, free: 3.785 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.5612, allocations: 106.6 kB / 1.391 GB, free: 3.68 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.5612, allocations: 8 kB / 1.391 GB, free: 3.672 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5614, allocations: 334.7 kB / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.5617, allocations: 117 kB / 1.391 GB, free: 3.223 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.562, allocations: 168.9 kB / 1.391 GB, free: 3.043 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.5623, allocations: 123.5 kB / 1.391 GB, free: 2.926 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.5623, allocations: 0 / 1.391 GB, free: 2.926 MB / 0.8855 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007495/0.563, allocations: 371.7 kB / 1.392 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.5631, allocations: 4 kB / 1.392 GB, free: 2.555 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.5631, allocations: 4.812 kB / 1.392 GB, free: 2.551 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.5631, allocations: 8 kB / 1.392 GB, free: 2.543 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.5635, allocations: 83.81 kB / 1.392 GB, free: 2.461 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5636, allocations: 0 / 1.392 GB, free: 2.461 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.5639, allocations: 59.66 kB / 1.392 GB, free: 2.402 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.564, allocations: 15.98 kB / 1.392 GB, free: 2.387 MB / 0.8855 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.0002047/0.5642, allocations: 161.7 kB / 1.392 GB, free: 2.219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.5642, allocations: 27.7 kB / 1.392 GB, free: 2.191 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008028/0.5651, allocations: 361.8 kB / 1.392 GB, free: 1.832 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.5651, allocations: 8.188 kB / 1.392 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.5651, allocations: 4 kB / 1.392 GB, free: 1.82 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.5651, allocations: 7.984 kB / 1.392 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000523/0.5656, allocations: 353.1 kB / 1.393 GB, free: 1.418 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.5657, allocations: 4 kB / 1.393 GB, free: 1.414 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.566, allocations: 75.84 kB / 1.393 GB, free: 1.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.566, allocations: 4 kB / 1.393 GB, free: 1.336 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.5661, allocations: 19.98 kB / 1.393 GB, free: 1.316 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/0.5661, allocations: 4 kB / 1.393 GB, free: 1.312 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.5661, allocations: 4 kB / 1.393 GB, free: 1.309 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.567, allocations: 0.6219 MB / 1.393 GB, free: 0.5664 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.5673, allocations: 144.6 kB / 1.394 GB, free: 416 kB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.288e-05/0.5674, allocations: 15.98 kB / 1.394 GB, free: 400 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.5676, allocations: 35.98 kB / 1.394 GB, free: 364 kB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.5678, allocations: 59.8 kB / 1.394 GB, free: 304 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.5678, allocations: 23.95 kB / 1.394 GB, free: 280 kB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001043/0.5679, allocations: 135.2 kB / 1.394 GB, free: 144 kB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5679, allocations: 0 / 1.394 GB, free: 144 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007913/0.5687, allocations: 219.7 kB / 1.394 GB, free: 15.93 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.002406/0.5711, allocations: 2.128 MB / 1.396 GB, free: 13.69 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007066/0.5719, allocations: 323.6 kB / 1.396 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5719, allocations: 0 / 1.396 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.5722, allocations: 188.3 kB / 1.397 GB, free: 13.2 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.5724, allocations: 22.08 kB / 1.397 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.5744, allocations: 1.462 MB / 1.398 GB, free: 11.62 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.5748, allocations: 0.7613 MB / 1.399 GB, free: 10.83 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002572/0.575, allocations: 59.3 kB / 1.399 GB, free: 10.77 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.5752, allocations: 91.39 kB / 1.399 GB, free: 10.68 MB / 0.9011 GB Notification: Performance of SimCode: time 3.11e-07/0.5753, allocations: 0 / 1.399 GB, free: 10.68 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.5972, allocations: 6.953 MB / 1.406 GB, free: 3.891 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.5974, allocations: 189.3 kB / 1.406 GB, free: 3.648 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.723, allocations: 3.938 kB / 1.406 GB, free: 3.645 MB / 0.9011 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat does not exist to compare? outputFormat=mat