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"}) [: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.856/1.856, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001043/0.001044, allocations: 177.3 kB / 490.8 MB, free: 1.965 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.185/1.185, allocations: 221.3 MB / 0.7863 GB, free: 13.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.0008209/0.0008209, allocations: 95.33 kB / 0.9264 GB, free: 14.34 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4133/0.4142, allocations: 149.1 MB / 1.072 GB, free: 164.6 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.6207, allocations: 143 MB / 1.212 GB, free: 21.83 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5621/1.183, allocations: 150.3 MB / 1.358 GB, free: 2.664 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001644/1.183, allocations: 68.7 kB / 1.358 GB, free: 2.629 MB / 0.8073 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.03248/1.215, allocations: 10.8 MB / 1.369 GB, free: 9.512 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/1.216, allocations: 8 kB / 1.369 GB, free: 9.504 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.061e-05/1.216, allocations: 23.81 kB / 1.369 GB, free: 9.48 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/1.216, allocations: 188.9 kB / 1.369 GB, free: 9.254 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/1.216, allocations: 4 kB / 1.369 GB, free: 9.25 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/1.216, allocations: 19.98 kB / 1.369 GB, free: 9.23 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002496/1.216, allocations: 96.23 kB / 1.369 GB, free: 9.16 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/1.216, allocations: 217.9 kB / 1.37 GB, free: 8.934 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/1.216, allocations: 7.938 kB / 1.37 GB, free: 8.926 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/1.216, allocations: 3.5 kB / 1.37 GB, free: 8.926 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/1.216, allocations: 4 kB / 1.37 GB, free: 8.922 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/1.217, allocations: 352.8 kB / 1.37 GB, free: 8.555 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/1.218, allocations: 474.8 kB / 1.37 GB, free: 8.031 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/1.218, allocations: 149.2 kB / 1.371 GB, free: 7.875 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/1.218, allocations: 15.92 kB / 1.371 GB, free: 7.859 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/1.219, allocations: 268.3 kB / 1.371 GB, free: 7.59 MB / 0.823 GB Notification: Performance of pre-optimization done (n=40): time 1.663e-06/1.219, allocations: 0 / 1.371 GB, free: 7.59 MB / 0.823 GB Notification: Performance of matching and sorting (n=40): time 0.0006697/1.219, allocations: 296.8 kB / 1.371 GB, free: 7.34 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/1.219, allocations: 358.1 kB / 1.371 GB, free: 6.914 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/1.22, allocations: 152 kB / 1.372 GB, free: 6.773 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/1.22, allocations: 32.58 kB / 1.372 GB, free: 6.738 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.119e-05/1.22, allocations: 96.66 kB / 1.372 GB, free: 6.645 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.654e-05/1.22, allocations: 98.38 kB / 1.372 GB, free: 6.562 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.886e-05/1.22, allocations: 0 / 1.372 GB, free: 6.562 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.919e-05/1.22, allocations: 336.3 kB / 1.372 GB, free: 6.234 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/1.22, allocations: 101.5 kB / 1.372 GB, free: 6.172 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/1.22, allocations: 138.8 kB / 1.372 GB, free: 6.066 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/1.221, allocations: 155.7 kB / 1.372 GB, free: 5.945 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.221, allocations: 0 / 1.372 GB, free: 5.945 MB / 0.823 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007502/1.221, allocations: 387.9 kB / 1.373 GB, free: 5.633 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.789e-06/1.221, allocations: 4 kB / 1.373 GB, free: 5.629 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/1.221, allocations: 0 / 1.373 GB, free: 5.629 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/1.221, allocations: 11.91 kB / 1.373 GB, free: 5.617 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000319/1.222, allocations: 63.83 kB / 1.373 GB, free: 5.559 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/1.222, allocations: 7.938 kB / 1.373 GB, free: 5.551 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/1.222, allocations: 55.66 kB / 1.373 GB, free: 5.496 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/1.222, allocations: 19.17 kB / 1.373 GB, free: 5.48 MB / 0.823 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.0001071/1.222, allocations: 127.7 kB / 1.373 GB, free: 5.355 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/1.222, allocations: 23.72 kB / 1.373 GB, free: 5.332 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006568/1.223, allocations: 334.6 kB / 1.373 GB, free: 5.07 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/1.223, allocations: 12 kB / 1.373 GB, free: 5.059 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/1.223, allocations: 0 / 1.373 GB, free: 5.059 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/1.223, allocations: 4 kB / 1.373 GB, free: 5.055 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002957/1.223, allocations: 297.8 kB / 1.374 GB, free: 4.766 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.223, allocations: 11.98 kB / 1.374 GB, free: 4.754 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/1.224, allocations: 67.78 kB / 1.374 GB, free: 4.691 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/1.224, allocations: 11.94 kB / 1.374 GB, free: 4.68 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/1.224, allocations: 11.48 kB / 1.374 GB, free: 4.672 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/1.224, allocations: 8 kB / 1.374 GB, free: 4.664 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.224, allocations: 3.906 kB / 1.374 GB, free: 4.66 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007347/1.224, allocations: 0.5771 MB / 1.374 GB, free: 4.043 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008272/1.225, allocations: 0.9644 MB / 1.375 GB, free: 3.047 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/1.225, allocations: 143.5 kB / 1.376 GB, free: 2.898 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/1.225, allocations: 11.98 kB / 1.376 GB, free: 2.887 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/1.226, allocations: 30.67 kB / 1.376 GB, free: 2.859 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.082e-05/1.226, allocations: 47.16 kB / 1.376 GB, free: 2.82 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/1.226, allocations: 27.8 kB / 1.376 GB, free: 2.797 MB / 0.823 GB Notification: Performance of sort global known variables: time 6.728e-05/1.226, allocations: 121.5 kB / 1.376 GB, free: 2.691 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001068/1.227, allocations: 221.9 kB / 1.376 GB, free: 2.488 MB / 0.823 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.0004981/1.228, allocations: 323.3 kB / 1.376 GB, free: 2.172 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001719/1.229, allocations: 2.986 MB / 1.379 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.229, allocations: 0 / 1.379 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/1.23, allocations: 166.4 kB / 1.379 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/1.23, allocations: 20.08 kB / 1.379 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008467/1.231, allocations: 420.9 kB / 1.38 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005031/1.231, allocations: 0.8028 MB / 1.381 GB, free: 13.81 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.231, allocations: 3.938 kB / 1.381 GB, free: 13.81 MB / 0.8386 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