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"}) [: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.826/1.826, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0009202/0.0009202, allocations: 170.7 kB / 490.8 MB, free: 1.918 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.14/1.14, allocations: 221.3 MB / 0.7863 GB, free: 13.65 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.0008197/0.0008197, allocations: 91.36 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4297/0.4306, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.6168, allocations: 143 MB / 1.212 GB, free: 39.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/1.129, allocations: 150 MB / 1.358 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/1.129, allocations: 69.33 kB / 1.358 GB, free: 17.27 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.03244/1.161, allocations: 10.79 MB / 1.369 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/1.161, allocations: 8.312 kB / 1.369 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.692e-05/1.161, allocations: 20.3 kB / 1.369 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/1.162, allocations: 193.3 kB / 1.369 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/1.162, allocations: 13.09 kB / 1.369 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/1.162, allocations: 18.61 kB / 1.369 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002251/1.162, allocations: 89.52 kB / 1.369 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/1.162, allocations: 223.3 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/1.162, allocations: 0.9688 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/1.162, allocations: 2.359 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/1.162, allocations: 5.094 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/1.163, allocations: 357.2 kB / 1.37 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/1.164, allocations: 475.5 kB / 1.37 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/1.164, allocations: 146.7 kB / 1.37 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/1.164, allocations: 7.625 kB / 1.37 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/1.164, allocations: 279.6 kB / 1.371 GB, free: 31 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 2.394e-06/1.164, allocations: 0 / 1.371 GB, free: 31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0007889/1.165, allocations: 296.8 kB / 1.371 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/1.165, allocations: 351 kB / 1.371 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/1.165, allocations: 159.1 kB / 1.371 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/1.165, allocations: 35.5 kB / 1.371 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/1.165, allocations: 93.27 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/1.166, allocations: 99.78 kB / 1.372 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/1.166, allocations: 5.312 kB / 1.372 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.166, allocations: 334.1 kB / 1.372 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/1.166, allocations: 96.59 kB / 1.372 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/1.166, allocations: 145.3 kB / 1.372 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004975/1.167, allocations: 157.4 kB / 1.372 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.167, allocations: 1.5 kB / 1.372 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007929/1.167, allocations: 382.5 kB / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/1.167, allocations: 5.781 kB / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/1.167, allocations: 0 / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/1.167, allocations: 7.375 kB / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/1.168, allocations: 69.25 kB / 1.373 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/1.168, allocations: 3.812 kB / 1.373 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/1.168, allocations: 52.22 kB / 1.373 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/1.168, allocations: 20.58 kB / 1.373 GB, free: 29.8 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 0.0001302/1.168, allocations: 128.1 kB / 1.373 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.671e-05/1.168, allocations: 28.97 kB / 1.373 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006813/1.169, allocations: 326.5 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/1.169, allocations: 9.375 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.169, allocations: 3.781 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/1.169, allocations: 6.359 kB / 1.373 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/1.169, allocations: 301.6 kB / 1.373 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.169, allocations: 1.188 kB / 1.373 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/1.17, allocations: 75.41 kB / 1.374 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/1.17, allocations: 9.766 kB / 1.374 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/1.17, allocations: 17.36 kB / 1.374 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/1.17, allocations: 6.25 kB / 1.374 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/1.17, allocations: 12.78 kB / 1.374 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007347/1.171, allocations: 0.5693 MB / 1.374 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008371/1.171, allocations: 0.9579 MB / 1.375 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/1.172, allocations: 145.2 kB / 1.375 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.79e-05/1.172, allocations: 10.12 kB / 1.375 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/1.172, allocations: 33.31 kB / 1.375 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.953e-05/1.172, allocations: 53.55 kB / 1.375 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/1.172, allocations: 22.06 kB / 1.375 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.871e-05/1.172, allocations: 121.2 kB / 1.375 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001249/1.173, allocations: 217.8 kB / 1.376 GB, free: 28.04 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.0006267/1.174, allocations: 327.4 kB / 1.376 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001703/1.176, allocations: 2.988 MB / 1.379 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.176, allocations: 0.9688 kB / 1.379 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002556/1.176, allocations: 171.7 kB / 1.379 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001767/1.176, allocations: 8.562 kB / 1.379 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007825/1.177, allocations: 421.6 kB / 1.379 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/1.177, allocations: 0.8114 MB / 1.38 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of SimCode: time 3e-07/1.177, allocations: 0 / 1.38 GB, free: 24.22 MB / 0.8386 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