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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.215/2.215, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001173/0.001173, allocations: 189 kB / 498.1 MB, free: 5.727 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.573/1.573, allocations: 223.2 MB / 0.7948 GB, free: 18.81 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.000914/0.000914, allocations: 99.83 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004616/0.0004615, allocations: 13.25 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2763, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1995/0.4759, allocations: 150 MB / 1.369 GB, free: 3.273 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4762, allocations: 75.95 kB / 1.37 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03672/0.5129, allocations: 10.58 MB / 1.38 GB, free: 8.602 MB / 0.8855 GB Notification: Performance of FrontEnd: time 8.296e-06/0.513, allocations: 0 / 1.38 GB, free: 8.602 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.513, allocations: 7.938 kB / 1.38 GB, free: 8.594 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.001649/0.5147, allocations: 0.6388 MB / 1.38 GB, free: 7.91 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.5148, allocations: 12.03 kB / 1.38 GB, free: 7.898 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.461e-05/0.5149, allocations: 46.55 kB / 1.381 GB, free: 7.844 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.515, allocations: 19.81 kB / 1.381 GB, free: 7.824 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.5151, allocations: 194.2 kB / 1.381 GB, free: 7.594 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.5153, allocations: 130.8 kB / 1.381 GB, free: 7.441 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.5154, allocations: 16 kB / 1.381 GB, free: 7.426 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.5158, allocations: 239.7 kB / 1.381 GB, free: 7.148 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.5158, allocations: 0 / 1.381 GB, free: 7.148 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.5158, allocations: 4 kB / 1.381 GB, free: 7.145 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5159, allocations: 4 kB / 1.381 GB, free: 7.141 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.5161, allocations: 115.7 kB / 1.381 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000523/0.5166, allocations: 403.1 kB / 1.382 GB, free: 6.551 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.5182, allocations: 495.5 kB / 1.382 GB, free: 5.957 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.5182, allocations: 12 kB / 1.382 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004967/0.5187, allocations: 305.1 kB / 1.382 GB, free: 5.598 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=40): time 3.026e-06/0.5188, allocations: 0 / 1.382 GB, free: 5.598 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40): time 0.0008654/0.5196, allocations: 413.3 kB / 1.383 GB, free: 5.188 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001946/0.5198, allocations: 358 kB / 1.383 GB, free: 4.758 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.52, allocations: 158.3 kB / 1.383 GB, free: 4.59 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.5201, allocations: 37.7 kB / 1.383 GB, free: 4.547 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.482e-05/0.5202, allocations: 93.64 kB / 1.383 GB, free: 4.453 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.5203, allocations: 118.4 kB / 1.383 GB, free: 4.336 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.5203, allocations: 8 kB / 1.384 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5205, allocations: 330.8 kB / 1.384 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.5208, allocations: 117 kB / 1.384 GB, free: 3.883 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.5211, allocations: 168.9 kB / 1.384 GB, free: 3.707 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.5214, allocations: 123.5 kB / 1.384 GB, free: 3.59 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5214, allocations: 3.938 kB / 1.384 GB, free: 3.586 MB / 0.8855 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007656/0.5222, allocations: 365.3 kB / 1.385 GB, free: 3.223 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.5222, allocations: 4 kB / 1.385 GB, free: 3.219 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.5222, allocations: 0 / 1.385 GB, free: 3.219 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.5222, allocations: 4 kB / 1.385 GB, free: 3.215 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004199/0.5227, allocations: 83.81 kB / 1.385 GB, free: 3.133 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.5227, allocations: 0 / 1.385 GB, free: 3.133 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.523, allocations: 67.56 kB / 1.385 GB, free: 3.066 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/0.5231, allocations: 19.98 kB / 1.385 GB, free: 3.047 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.0001714/0.5233, allocations: 149.7 kB / 1.385 GB, free: 2.891 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.762e-05/0.5234, allocations: 28.8 kB / 1.385 GB, free: 2.863 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007118/0.5241, allocations: 366.3 kB / 1.385 GB, free: 2.496 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5241, allocations: 8 kB / 1.385 GB, free: 2.488 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.5241, allocations: 4 kB / 1.385 GB, free: 2.484 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.5241, allocations: 7.984 kB / 1.385 GB, free: 2.477 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004285/0.5246, allocations: 349.1 kB / 1.386 GB, free: 2.086 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.5246, allocations: 4 kB / 1.386 GB, free: 2.082 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.5249, allocations: 75.84 kB / 1.386 GB, free: 2.008 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.5249, allocations: 8 kB / 1.386 GB, free: 2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.525, allocations: 19.98 kB / 1.386 GB, free: 1.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.525, allocations: 7.984 kB / 1.386 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.525, allocations: 4 kB / 1.386 GB, free: 1.969 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008914/0.5259, allocations: 0.6176 MB / 1.386 GB, free: 1.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.5261, allocations: 148.6 kB / 1.386 GB, free: 1.066 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.055e-05/0.5262, allocations: 15.98 kB / 1.386 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.5265, allocations: 39.97 kB / 1.387 GB, free: 1.012 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.5266, allocations: 51.88 kB / 1.387 GB, free: 0.9609 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.5267, allocations: 23.95 kB / 1.387 GB, free: 0.9375 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001049/0.5268, allocations: 135.2 kB / 1.387 GB, free: 0.8047 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5268, allocations: 0 / 1.387 GB, free: 0.8047 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007787/0.5276, allocations: 215.7 kB / 1.387 GB, free: 0.5938 MB / 0.8855 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.002219/0.5298, allocations: 2.156 MB / 1.389 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007283/0.5305, allocations: 329.7 kB / 1.389 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5305, allocations: 0 / 1.389 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003146/0.5309, allocations: 187.7 kB / 1.39 GB, free: 13.83 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.5311, allocations: 20.17 kB / 1.39 GB, free: 13.8 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.5331, allocations: 1.445 MB / 1.391 GB, free: 12.26 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.5335, allocations: 0.7652 MB / 1.392 GB, free: 11.47 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002556/0.5338, allocations: 55.31 kB / 1.392 GB, free: 11.42 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.534, allocations: 99.38 kB / 1.392 GB, free: 11.32 MB / 0.9011 GB Notification: Performance of SimCode: time 3.51e-07/0.534, allocations: 0 / 1.392 GB, free: 11.32 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.5559, allocations: 6.924 MB / 1.399 GB, free: 4.535 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.5561, allocations: 185.7 kB / 1.399 GB, free: 4.297 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.473, allocations: 4 kB / 1.399 GB, free: 4.293 MB / 0.9011 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