Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.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: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.687/1.687, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.0009109/0.000911, allocations: 185.2 kB / 490.8 MB, free: 1.953 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.053/1.053, allocations: 221.4 MB / 0.7863 GB, free: 13.74 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.0007893/0.0007893, allocations: 88.67 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.75e-06/5.841e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1615, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.434/0.5956, allocations: 150 MB / 1.358 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001591/0.5958, allocations: 71.52 kB / 1.358 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02846/0.6243, allocations: 10.16 MB / 1.368 GB, free: 16.61 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.6243, allocations: 3.75 kB / 1.368 GB, free: 16.61 MB / 0.823 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.0009881/0.6253, allocations: 0.6313 MB / 1.369 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.6253, allocations: 9.469 kB / 1.369 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.6254, allocations: 19.62 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.352e-05/0.6255, allocations: 186.6 kB / 1.369 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.6255, allocations: 13.48 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.6255, allocations: 14 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002029/0.6257, allocations: 88.66 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.626, allocations: 226.2 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.626, allocations: 1.125 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.626, allocations: 2.297 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.626, allocations: 4.406 kB / 1.369 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.6264, allocations: 362.5 kB / 1.37 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.6275, allocations: 471.7 kB / 1.37 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.6277, allocations: 145.8 kB / 1.37 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.6277, allocations: 16.73 kB / 1.37 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.628, allocations: 273.6 kB / 1.37 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 1.603e-06/0.628, allocations: 0 / 1.37 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0006331/0.6286, allocations: 293.7 kB / 1.371 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.6287, allocations: 356 kB / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.6288, allocations: 154.8 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.6289, allocations: 30.91 kB / 1.371 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.6289, allocations: 94.61 kB / 1.371 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.821e-05/0.629, allocations: 99.41 kB / 1.371 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.887e-05/0.629, allocations: 3.938 kB / 1.371 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.6291, allocations: 331.8 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.6293, allocations: 103.8 kB / 1.372 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.6295, allocations: 142.8 kB / 1.372 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.6299, allocations: 159.1 kB / 1.372 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.6299, allocations: 5.219 kB / 1.372 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007141/0.6306, allocations: 383.4 kB / 1.372 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.897e-06/0.6306, allocations: 4.781 kB / 1.372 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6307, allocations: 1.344 kB / 1.372 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.6307, allocations: 11.28 kB / 1.373 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.631, allocations: 67.75 kB / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.631, allocations: 5.391 kB / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.6313, allocations: 52.19 kB / 1.373 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.6313, allocations: 19.81 kB / 1.373 GB, free: 29.71 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): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 4 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.528e-05/0.6314, allocations: 121.9 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.6315, allocations: 33.58 kB / 1.373 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005942/0.6321, allocations: 328.4 kB / 1.373 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.6321, allocations: 9.125 kB / 1.373 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.6321, allocations: 3.812 kB / 1.373 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.6321, allocations: 5.844 kB / 1.373 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.6324, allocations: 295.5 kB / 1.373 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.6324, allocations: 6.594 kB / 1.373 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.6327, allocations: 76.09 kB / 1.373 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.6327, allocations: 5.844 kB / 1.373 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.6327, allocations: 13.06 kB / 1.374 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.922e-06/0.6327, allocations: 10.5 kB / 1.374 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.6327, allocations: 7.344 kB / 1.374 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006399/0.6334, allocations: 0.5785 MB / 1.374 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.6335, allocations: 144.4 kB / 1.374 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.472e-05/0.6336, allocations: 14.31 kB / 1.374 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.6338, allocations: 29.22 kB / 1.374 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.6339, allocations: 48.23 kB / 1.374 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.201e-05/0.634, allocations: 22.12 kB / 1.374 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.903e-05/0.6341, allocations: 121.1 kB / 1.374 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004563/0.6345, allocations: 211.2 kB / 1.375 GB, free: 28.69 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.0004541/0.635, allocations: 322 kB / 1.375 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001491/0.6365, allocations: 2.992 MB / 1.378 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.6365, allocations: 1.125 kB / 1.378 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.6367, allocations: 170.2 kB / 1.378 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.6369, allocations: 13.78 kB / 1.378 GB, free: 25.79 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.6376, allocations: 417.2 kB / 1.378 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.638, allocations: 0.8096 MB / 1.379 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/0.638, allocations: 0 / 1.379 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.008407/0.6464, allocations: 5.187 MB / 1.384 GB, free: 24.18 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSetNegativeStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSetNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches