Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6825/0.6825, allocations: 141.8 MB / 149.1 MB, free: 13.32 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 187 kB / 181.9 MB, free: 9.996 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.205/1.205, allocations: 221.3 MB / 436 MB, free: 2.441 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009854/0.0009857, allocations: 94.86 kB / 0.507 GB, free: 17.86 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001728/0.001728, allocations: 268 kB / 0.5884 GB, free: 3.957 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3488/0.3506, allocations: 89.64 MB / 0.676 GB, free: 136.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.4882, allocations: 82.77 MB / 0.7568 GB, free: 83.47 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.6011, allocations: 109.7 MB / 0.8639 GB, free: 5.594 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.6013, allocations: 68.64 kB / 0.864 GB, free: 5.527 MB / 0.5419 GB 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.01443/0.6158, allocations: 4.73 MB / 0.8686 GB, free: 0.7188 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.6158, allocations: 12 kB / 0.8686 GB, free: 0.707 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.616, allocations: 31.62 kB / 0.8687 GB, free: 0.6758 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.6163, allocations: 259.2 kB / 0.8689 GB, free: 392 kB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.6164, allocations: 3.938 kB / 0.8689 GB, free: 388 kB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.659e-05/0.6165, allocations: 20 kB / 0.8689 GB, free: 368 kB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001187/0.6166, allocations: 35.98 kB / 0.869 GB, free: 332 kB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.6168, allocations: 145.5 kB / 0.8691 GB, free: 180 kB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.6168, allocations: 4 kB / 0.8691 GB, free: 176 kB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.6169, allocations: 0 / 0.8691 GB, free: 176 kB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.6169, allocations: 0 / 0.8691 GB, free: 176 kB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.6173, allocations: 297.9 kB / 0.8694 GB, free: 15.84 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.6175, allocations: 114.7 kB / 0.8695 GB, free: 15.72 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.819e-05/0.6176, allocations: 56.83 kB / 0.8696 GB, free: 15.66 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.6177, allocations: 8 kB / 0.8696 GB, free: 15.66 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003313/0.618, allocations: 176.9 kB / 0.8697 GB, free: 15.47 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.618, allocations: 0 / 0.8697 GB, free: 15.47 MB / 0.5575 GB Notification: Performance of matching and sorting (n=18): time 0.0003695/0.6184, allocations: 169.2 kB / 0.8699 GB, free: 15.3 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.6185, allocations: 59.41 kB / 0.87 GB, free: 15.23 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.6187, allocations: 243.3 kB / 0.8702 GB, free: 14.98 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.6188, allocations: 41.69 kB / 0.8702 GB, free: 14.94 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.6189, allocations: 89.08 kB / 0.8703 GB, free: 14.85 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.6189, allocations: 43.44 kB / 0.8704 GB, free: 14.8 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.619, allocations: 4 kB / 0.8704 GB, free: 14.8 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.6191, allocations: 330.8 kB / 0.8707 GB, free: 14.47 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.6193, allocations: 84.2 kB / 0.8708 GB, free: 14.38 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.6195, allocations: 134.2 kB / 0.8709 GB, free: 14.23 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.6197, allocations: 76.69 kB / 0.871 GB, free: 14.15 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6197, allocations: 0 / 0.871 GB, free: 14.15 MB / 0.5575 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005466/0.6202, allocations: 279.7 kB / 0.8712 GB, free: 13.88 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.6203, allocations: 11.12 kB / 0.8712 GB, free: 13.87 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.6203, allocations: 0 / 0.8712 GB, free: 13.87 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.6203, allocations: 4 kB / 0.8712 GB, free: 13.86 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.6205, allocations: 32.11 kB / 0.8713 GB, free: 13.83 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.6205, allocations: 11.92 kB / 0.8713 GB, free: 13.82 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000394/0.6209, allocations: 47.75 kB / 0.8713 GB, free: 13.77 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.33e-05/0.621, allocations: 55.98 kB / 0.8714 GB, free: 13.72 MB / 0.5575 GB 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.0001294/0.6211, allocations: 120 kB / 0.8715 GB, free: 13.59 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.484e-05/0.6212, allocations: 31.61 kB / 0.8715 GB, free: 13.56 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.6212, allocations: 29.97 kB / 0.8716 GB, free: 13.54 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.6212, allocations: 0 / 0.8716 GB, free: 13.54 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.6212, allocations: 0 / 0.8716 GB, free: 13.54 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.6212, allocations: 0 / 0.8716 GB, free: 13.54 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006454/0.6219, allocations: 490.7 kB / 0.872 GB, free: 13.01 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6219, allocations: 0 / 0.872 GB, free: 13.01 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.79e-05/0.622, allocations: 8 kB / 0.872 GB, free: 13 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.622, allocations: 3.984 kB / 0.872 GB, free: 13 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.622, allocations: 23.89 kB / 0.8721 GB, free: 12.98 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.622, allocations: 0 / 0.8721 GB, free: 12.98 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.622, allocations: 0 / 0.8721 GB, free: 12.98 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003366/0.6224, allocations: 267 kB / 0.8723 GB, free: 12.7 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004182/0.6228, allocations: 0.6392 MB / 0.8729 GB, free: 12.04 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.623, allocations: 156.6 kB / 0.8731 GB, free: 11.87 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/0.6231, allocations: 11.98 kB / 0.8731 GB, free: 11.86 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.6233, allocations: 4 kB / 0.8731 GB, free: 11.86 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.6233, allocations: 19.97 kB / 0.8731 GB, free: 11.84 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/0.6234, allocations: 31.98 kB / 0.8731 GB, free: 11.8 MB / 0.5575 GB Notification: Performance of sort global known variables: time 0.000199/0.6236, allocations: 199.1 kB / 0.8733 GB, free: 11.61 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.000961/0.6246, allocations: 48 kB / 0.8734 GB, free: 11.56 MB / 0.5575 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.00018/0.6248, allocations: 124.8 kB / 0.8735 GB, free: 11.43 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.000476/0.6252, allocations: 255.4 kB / 0.8737 GB, free: 11.17 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6253, allocations: 0 / 0.8737 GB, free: 11.17 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.6254, allocations: 67.92 kB / 0.8738 GB, free: 11.1 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.6256, allocations: 25.34 kB / 0.8738 GB, free: 11.07 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005899/0.6262, allocations: 260.9 kB / 0.8741 GB, free: 10.8 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000494/0.6267, allocations: 0.8087 MB / 0.8749 GB, free: 9.969 MB / 0.5575 GB Notification: Performance of SimCode: time 6.21e-07/0.6268, allocations: 0 / 0.8749 GB, free: 9.969 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)