Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime",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/BuildSysPro 3.5.0/package.mo): time 0.675/0.675, allocations: 127.3 MB / 134.6 MB, free: 4.066 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001082, allocations: 189.3 kB / 164.4 MB, free: 6.867 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009618/0.000962, allocations: 89.58 kB / 476.3 MB, free: 8.824 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3341/0.3351, allocations: 82.87 MB / 0.546 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.5227, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5594/1.082, allocations: 103.7 MB / 0.7223 GB, free: 8.59 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/1.083, allocations: 75.95 kB / 0.7223 GB, free: 8.516 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.01567/1.098, allocations: 4.872 MB / 0.7271 GB, free: 3.578 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.828e-05/1.098, allocations: 8 kB / 0.7271 GB, free: 3.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/1.098, allocations: 27.72 kB / 0.7271 GB, free: 3.543 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/1.099, allocations: 191.9 kB / 0.7273 GB, free: 3.312 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/1.099, allocations: 0 / 0.7273 GB, free: 3.312 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-05/1.099, allocations: 19.98 kB / 0.7273 GB, free: 3.293 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001619/1.099, allocations: 35.98 kB / 0.7274 GB, free: 3.258 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/1.099, allocations: 137.5 kB / 0.7275 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/1.099, allocations: 0 / 0.7275 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/1.099, allocations: 4 kB / 0.7275 GB, free: 3.113 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/1.099, allocations: 7.984 kB / 0.7275 GB, free: 3.105 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/1.1, allocations: 269.9 kB / 0.7278 GB, free: 2.805 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/1.1, allocations: 114.7 kB / 0.7279 GB, free: 2.684 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.863e-05/1.1, allocations: 52.86 kB / 0.7279 GB, free: 2.629 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.242e-05/1.1, allocations: 384 / 0.7279 GB, free: 2.629 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/1.101, allocations: 167.1 kB / 0.7281 GB, free: 2.453 MB / 490.7 MB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/1.101, allocations: 0 / 0.7281 GB, free: 2.453 MB / 490.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004116/1.101, allocations: 163.4 kB / 0.7282 GB, free: 2.289 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/1.101, allocations: 60.06 kB / 0.7283 GB, free: 2.219 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/1.101, allocations: 191 kB / 0.7285 GB, free: 2.027 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/1.101, allocations: 37.69 kB / 0.7285 GB, free: 1.984 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.916e-05/1.102, allocations: 92.86 kB / 0.7286 GB, free: 1.891 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/1.102, allocations: 51.44 kB / 0.7287 GB, free: 1.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/1.102, allocations: 0 / 0.7287 GB, free: 1.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/1.102, allocations: 322.8 kB / 0.729 GB, free: 1.516 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/1.102, allocations: 84.2 kB / 0.729 GB, free: 1.434 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/1.102, allocations: 138.1 kB / 0.7292 GB, free: 1.277 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/1.102, allocations: 79.62 kB / 0.7293 GB, free: 1.199 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.102, allocations: 0 / 0.7293 GB, free: 1.199 MB / 490.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005139/1.103, allocations: 267.7 kB / 0.7295 GB, free: 0.9336 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/1.103, allocations: 8 kB / 0.7295 GB, free: 0.9258 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/1.103, allocations: 8.172 kB / 0.7295 GB, free: 0.918 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/1.103, allocations: 4 kB / 0.7295 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/1.103, allocations: 23.92 kB / 0.7296 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/1.103, allocations: 4 kB / 0.7296 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/1.104, allocations: 47.81 kB / 0.7296 GB, free: 0.8398 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/1.104, allocations: 43.98 kB / 0.7296 GB, free: 0.7969 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0001372/1.104, allocations: 127.9 kB / 0.7298 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/1.104, allocations: 19.81 kB / 0.7298 GB, free: 0.6445 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.955e-05/1.104, allocations: 21.58 kB / 0.7298 GB, free: 0.6211 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/1.104, allocations: 4 kB / 0.7298 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.104, allocations: 3.906 kB / 0.7298 GB, free: 0.6133 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/1.104, allocations: 4 kB / 0.7298 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006961/1.105, allocations: 466.7 kB / 0.7303 GB, free: 112 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/1.105, allocations: 0 / 0.7303 GB, free: 112 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.362e-05/1.105, allocations: 11.92 kB / 0.7303 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/1.105, allocations: 0 / 0.7303 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/1.105, allocations: 15.98 kB / 0.7303 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/1.105, allocations: 0 / 0.7303 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.105, allocations: 0 / 0.7303 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003731/1.105, allocations: 265.4 kB / 0.7305 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004688/1.106, allocations: 0.6245 MB / 0.7312 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/1.106, allocations: 132.8 kB / 0.7313 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/1.106, allocations: 11.98 kB / 0.7313 GB, free: 15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/1.106, allocations: 8 kB / 0.7313 GB, free: 15 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/1.106, allocations: 23.88 kB / 0.7313 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.232e-05/1.106, allocations: 23.98 kB / 0.7313 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0001417/1.106, allocations: 157.9 kB / 0.7315 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009283/1.107, allocations: 44 kB / 0.7315 GB, free: 14.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0001928/1.107, allocations: 113 kB / 0.7316 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004793/1.108, allocations: 259.7 kB / 0.7319 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.108, allocations: 384 / 0.7319 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/1.108, allocations: 67.92 kB / 0.732 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/1.108, allocations: 16.56 kB / 0.732 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005798/1.109, allocations: 224.3 kB / 0.7322 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/1.109, allocations: 0.7847 MB / 0.733 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of SimCode: time 2.8e-07/1.109, allocations: 0 / 0.733 GB, free: 13.24 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1)