Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus",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 9.1.1-maint.9.1.x/package.mo): time 1.876/1.876, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001061/0.001061, allocations: 173.3 kB / 487 MB, free: 5.332 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.165/1.165, allocations: 221.3 MB / 0.7819 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000981/0.0009809, allocations: 96.95 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4452/0.4462, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.6275, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.503/1.131, allocations: 151.4 MB / 1.353 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/1.131, allocations: 71.69 kB / 1.353 GB, free: 15.81 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.01553/1.146, allocations: 5.652 MB / 1.359 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/1.146, allocations: 8.969 kB / 1.359 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.979e-05/1.147, allocations: 36.08 kB / 1.359 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/1.147, allocations: 276.1 kB / 1.359 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/1.147, allocations: 10.16 kB / 1.359 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.493e-05/1.147, allocations: 16.81 kB / 1.359 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001321/1.147, allocations: 57.48 kB / 1.359 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/1.147, allocations: 169.9 kB / 1.359 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/1.147, allocations: 1.625 kB / 1.359 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/1.147, allocations: 6.031 kB / 1.359 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/1.147, allocations: 2 kB / 1.359 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007606/1.148, allocations: 0.5493 MB / 1.36 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/1.148, allocations: 118 kB / 1.36 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/1.149, allocations: 61.08 kB / 1.36 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/1.149, allocations: 2.438 kB / 1.36 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/1.149, allocations: 158.9 kB / 1.36 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/1.149, allocations: 4.562 kB / 1.36 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0003891/1.149, allocations: 191.1 kB / 1.36 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.027e-05/1.149, allocations: 64.55 kB / 1.36 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/1.149, allocations: 274.8 kB / 1.361 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/1.15, allocations: 35.06 kB / 1.361 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/1.15, allocations: 90.8 kB / 1.361 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/1.15, allocations: 46.52 kB / 1.361 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/1.15, allocations: 0.6094 kB / 1.361 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.18e-05/1.15, allocations: 326.8 kB / 1.361 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/1.15, allocations: 105.1 kB / 1.361 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/1.15, allocations: 139.4 kB / 1.361 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/1.15, allocations: 84.84 kB / 1.361 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.15, allocations: 0 / 1.361 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004568/1.151, allocations: 285.4 kB / 1.362 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/1.151, allocations: 4 kB / 1.362 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/1.151, allocations: 4.562 kB / 1.362 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/1.151, allocations: 0 / 1.362 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/1.151, allocations: 25.28 kB / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/1.151, allocations: 4.656 kB / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/1.151, allocations: 38.09 kB / 1.362 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/1.151, allocations: 43.58 kB / 1.362 GB, free: 12.95 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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 9.524e-05/1.151, allocations: 137.1 kB / 1.362 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.891e-05/1.151, allocations: 28.38 kB / 1.362 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/1.151, allocations: 28.23 kB / 1.362 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/1.151, allocations: 4 kB / 1.362 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/1.151, allocations: 0.7969 kB / 1.362 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.151, allocations: 4.734 kB / 1.362 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/1.152, allocations: 0.5322 MB / 1.363 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/1.152, allocations: 4 kB / 1.363 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/1.152, allocations: 9.172 kB / 1.363 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.152, allocations: 0 / 1.363 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/1.152, allocations: 18.56 kB / 1.363 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/1.152, allocations: 0.5625 kB / 1.363 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/1.152, allocations: 0 / 1.363 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002663/1.152, allocations: 286.2 kB / 1.363 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002917/1.153, allocations: 0.6573 MB / 1.364 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/1.153, allocations: 191.5 kB / 1.364 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/1.153, allocations: 17.86 kB / 1.364 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004189/1.153, allocations: 38.36 kB / 1.364 GB, free: 11.31 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.902e-05/1.153, allocations: 7.328 kB / 1.364 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.976e-05/1.154, allocations: 42.22 kB / 1.364 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001515/1.154, allocations: 213.1 kB / 1.364 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008597/1.155, allocations: 61.17 kB / 1.364 GB, free: 11.06 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.0001409/1.155, allocations: 134.8 kB / 1.364 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003761/1.155, allocations: 272.3 kB / 1.364 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.155, allocations: 4.062 kB / 1.364 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.227e-05/1.155, allocations: 68.3 kB / 1.365 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/1.155, allocations: 26.69 kB / 1.365 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/1.156, allocations: 308.9 kB / 1.365 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/1.156, allocations: 0.7766 MB / 1.366 GB, free: 25.66 MB / 0.823 GB Notification: Performance of SimCode: time 2.7e-07/1.156, allocations: 0 / 1.366 GB, free: 25.66 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus_fmu --startTime=172801 --stopTime=345601 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat does not exist to compare? outputFormat=mat