Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Obsolete_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 10.0.0-master/package.mo): time 1.812/1.812, allocations: 390.4 MB / 397.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 181.5 kB / 490.8 MB, free: 11.18 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.208/1.208, allocations: 221.4 MB / 0.7863 GB, free: 13.55 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008879, allocations: 95.59 kB / 0.9264 GB, free: 4.539 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.266/0.2669, allocations: 149.2 MB / 1.072 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6188/0.8858, allocations: 143 MB / 1.212 GB, free: 155.7 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/1.039, allocations: 149.5 MB / 1.358 GB, free: 42.11 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/1.039, allocations: 71.95 kB / 1.358 GB, free: 42.04 MB / 0.8855 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.04925/1.088, allocations: 24.08 MB / 1.381 GB, free: 17.95 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/1.088, allocations: 8.594 kB / 1.381 GB, free: 17.94 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.376e-05/1.088, allocations: 27.62 kB / 1.381 GB, free: 17.91 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/1.089, allocations: 255 kB / 1.381 GB, free: 17.63 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/1.089, allocations: 4.5 kB / 1.381 GB, free: 17.62 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.412e-05/1.089, allocations: 12 kB / 1.382 GB, free: 17.61 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003214/1.089, allocations: 320.1 kB / 1.382 GB, free: 17.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004143/1.09, allocations: 451.3 kB / 1.382 GB, free: 16.85 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/1.09, allocations: 0 / 1.382 GB, free: 16.85 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/1.09, allocations: 0 / 1.382 GB, free: 16.85 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/1.09, allocations: 4 kB / 1.382 GB, free: 16.85 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/1.09, allocations: 0.5211 MB / 1.383 GB, free: 16.29 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/1.091, allocations: 1.02 MB / 1.384 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/1.091, allocations: 0.6544 MB / 1.384 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/1.091, allocations: 7.984 kB / 1.384 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003915/1.092, allocations: 468.4 kB / 1.385 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/1.092, allocations: 0.5 kB / 1.385 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.0007782/1.093, allocations: 0.7556 MB / 1.386 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/1.093, allocations: 149.4 kB / 1.386 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/1.093, allocations: 213 kB / 1.386 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/1.093, allocations: 29.7 kB / 1.386 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.2e-05/1.093, allocations: 105.3 kB / 1.386 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.089e-05/1.093, allocations: 71.11 kB / 1.386 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.458e-05/1.093, allocations: 0.7812 kB / 1.386 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.355e-05/1.093, allocations: 347.3 kB / 1.386 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/1.093, allocations: 319.7 kB / 1.387 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/1.094, allocations: 421.5 kB / 1.387 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/1.094, allocations: 369.4 kB / 1.388 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/1.094, allocations: 1.156 kB / 1.388 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007479/1.095, allocations: 0.7953 MB / 1.388 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/1.095, allocations: 4.594 kB / 1.388 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/1.095, allocations: 9.266 kB / 1.388 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/1.095, allocations: 4 kB / 1.388 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/1.095, allocations: 43.84 kB / 1.388 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/1.095, allocations: 5.406 kB / 1.388 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/1.095, allocations: 12.61 kB / 1.388 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002139/1.096, allocations: 205.7 kB / 1.389 GB, free: 10.22 MB / 0.8855 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.0001139/1.096, allocations: 147.3 kB / 1.389 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/1.096, allocations: 27.62 kB / 1.389 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.895e-05/1.096, allocations: 34.45 kB / 1.389 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/1.096, allocations: 4.531 kB / 1.389 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.096, allocations: 4.625 kB / 1.389 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/1.096, allocations: 0 / 1.389 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/1.097, allocations: 1.635 MB / 1.39 GB, free: 8.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.097, allocations: 4.5 kB / 1.39 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.74e-05/1.097, allocations: 23.91 kB / 1.39 GB, free: 8.312 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/1.097, allocations: 4.531 kB / 1.39 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/1.097, allocations: 25.25 kB / 1.39 GB, free: 8.285 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.097, allocations: 0 / 1.39 GB, free: 8.285 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.097, allocations: 4 kB / 1.39 GB, free: 8.281 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007239/1.098, allocations: 1.11 MB / 1.392 GB, free: 7.141 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007401/1.099, allocations: 1.494 MB / 1.393 GB, free: 5.605 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/1.099, allocations: 100.4 kB / 1.393 GB, free: 5.492 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/1.099, allocations: 11.89 kB / 1.393 GB, free: 5.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/1.099, allocations: 8 kB / 1.393 GB, free: 5.473 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.215e-05/1.099, allocations: 47.94 kB / 1.393 GB, free: 5.426 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.099, allocations: 214 kB / 1.393 GB, free: 5.219 MB / 0.8855 GB Notification: Performance of sort global known variables: time 9.163e-05/1.1, allocations: 164.5 kB / 1.393 GB, free: 5.062 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000984/1.101, allocations: 59.98 kB / 1.394 GB, free: 5.004 MB / 0.8855 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.0001432/1.101, allocations: 126.5 kB / 1.394 GB, free: 4.879 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006584/1.101, allocations: 0.7296 MB / 1.394 GB, free: 4.148 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.101, allocations: 256 / 1.394 GB, free: 4.148 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003745/1.102, allocations: 409.3 kB / 1.395 GB, free: 3.75 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/1.103, allocations: 379.8 kB / 1.395 GB, free: 3.398 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009772/1.104, allocations: 0.8654 MB / 1.396 GB, free: 2.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002977/1.104, allocations: 0.8383 MB / 1.397 GB, free: 1.629 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/1.104, allocations: 0 / 1.397 GB, free: 1.629 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)