Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",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 7.0.3-maint.7.0.x/package.mo): time 1.259/1.259, allocations: 249.4 MB / 256.7 MB, free: 6.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009378/0.0009378, allocations: 180.3 kB / 316 MB, free: 3.52 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.116/1.116, allocations: 205.2 MB / 0.5667 GB, free: 15.57 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008744/0.0008745, allocations: 85.67 kB / 0.671 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3345/0.3354, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.4973, allocations: 106.3 MB / 0.8847 GB, free: 12.49 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4834/0.9808, allocations: 131.9 MB / 1.013 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.981, allocations: 66.77 kB / 1.013 GB, free: 6.855 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.05319/1.034, allocations: 22.12 MB / 1.035 GB, free: 5.023 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/1.034, allocations: 8 kB / 1.035 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.959e-05/1.034, allocations: 27.62 kB / 1.035 GB, free: 4.988 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/1.035, allocations: 251.6 kB / 1.035 GB, free: 4.719 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/1.035, allocations: 7.984 kB / 1.035 GB, free: 4.711 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/1.035, allocations: 12 kB / 1.035 GB, free: 4.699 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003496/1.035, allocations: 322.6 kB / 1.036 GB, free: 4.438 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/1.036, allocations: 446.9 kB / 1.036 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/1.036, allocations: 0 / 1.036 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/1.036, allocations: 7.891 kB / 1.036 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/1.036, allocations: 4 kB / 1.036 GB, free: 4.043 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/1.036, allocations: 0.5109 MB / 1.037 GB, free: 3.555 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009351/1.037, allocations: 1.033 MB / 1.038 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005843/1.038, allocations: 0.6476 MB / 1.038 GB, free: 2.098 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/1.038, allocations: 15.16 kB / 1.038 GB, free: 2.086 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004637/1.038, allocations: 477.7 kB / 1.039 GB, free: 1.668 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/1.038, allocations: 0 / 1.039 GB, free: 1.668 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.0008356/1.039, allocations: 0.7501 MB / 1.039 GB, free: 1.031 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/1.039, allocations: 144.4 kB / 1.04 GB, free: 0.8594 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/1.039, allocations: 217.9 kB / 1.04 GB, free: 0.6719 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/1.039, allocations: 29.02 kB / 1.04 GB, free: 0.6406 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/1.039, allocations: 100.8 kB / 1.04 GB, free: 0.5469 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/1.039, allocations: 74.17 kB / 1.04 GB, free: 496 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/1.039, allocations: 0 / 1.04 GB, free: 496 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001037/1.04, allocations: 341.7 kB / 1.04 GB, free: 156 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/1.04, allocations: 325.7 kB / 1.041 GB, free: 15.89 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/1.04, allocations: 417.7 kB / 1.041 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/1.041, allocations: 357.7 kB / 1.041 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.041, allocations: 0 / 1.041 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008965/1.042, allocations: 0.8046 MB / 1.042 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/1.042, allocations: 7.938 kB / 1.042 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/1.042, allocations: 4 kB / 1.042 GB, free: 14.53 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.042, allocations: 8 kB / 1.042 GB, free: 14.52 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/1.042, allocations: 47.08 kB / 1.042 GB, free: 14.48 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/1.042, allocations: 4 kB / 1.042 GB, free: 14.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/1.042, allocations: 7.938 kB / 1.042 GB, free: 14.47 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00024/1.042, allocations: 214.9 kB / 1.042 GB, free: 14.27 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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.0001212/1.042, allocations: 144.7 kB / 1.043 GB, free: 14.12 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/1.043, allocations: 27.66 kB / 1.043 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.396e-05/1.043, allocations: 38.17 kB / 1.043 GB, free: 14.08 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/1.043, allocations: 7.984 kB / 1.043 GB, free: 14.07 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/1.043, allocations: 8 kB / 1.043 GB, free: 14.06 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-06/1.043, allocations: 0 / 1.043 GB, free: 14.06 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/1.044, allocations: 1.621 MB / 1.044 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.044, allocations: 4 kB / 1.044 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.07e-05/1.044, allocations: 27.66 kB / 1.044 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/1.044, allocations: 4 kB / 1.044 GB, free: 12.56 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/1.044, allocations: 19.72 kB / 1.044 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/1.044, allocations: 0 / 1.044 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.044, allocations: 4 kB / 1.044 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009287/1.045, allocations: 1.11 MB / 1.045 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001081/1.046, allocations: 1.493 MB / 1.047 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.224e-05/1.047, allocations: 100.8 kB / 1.047 GB, free: 9.996 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/1.047, allocations: 7.438 kB / 1.047 GB, free: 9.992 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/1.047, allocations: 8.047 kB / 1.047 GB, free: 9.984 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/1.047, allocations: 58.47 kB / 1.047 GB, free: 9.938 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/1.047, allocations: 214.8 kB / 1.047 GB, free: 9.73 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001307/1.047, allocations: 164.4 kB / 1.047 GB, free: 9.594 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001021/1.048, allocations: 59 kB / 1.047 GB, free: 9.539 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * 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.0002686/1.049, allocations: 127.9 kB / 1.048 GB, free: 9.406 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001036/1.05, allocations: 0.7262 MB / 1.048 GB, free: 8.801 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.05, allocations: 0 / 1.048 GB, free: 8.801 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005828/1.05, allocations: 402.7 kB / 1.049 GB, free: 8.469 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/1.052, allocations: 355.4 kB / 1.049 GB, free: 8.156 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/1.053, allocations: 0.8642 MB / 1.05 GB, free: 7.371 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/1.054, allocations: 0.8275 MB / 1.051 GB, free: 6.531 MB / 0.6667 GB Notification: Performance of SimCode: time 3.51e-07/1.054, allocations: 0 / 1.051 GB, free: 6.531 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)