Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.999/1.999, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001256/0.001255, allocations: 177.3 kB / 487 MB, free: 5.359 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.427/1.427, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0009485/0.0009485, allocations: 92.69 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5128/0.5137, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.7267, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5475/1.274, allocations: 148.7 MB / 1.351 GB, free: 16.31 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001562/1.274, allocations: 74.19 kB / 1.351 GB, free: 16.31 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.05522/1.33, allocations: 24.08 MB / 1.374 GB, free: 5.488 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/1.33, allocations: 9 kB / 1.374 GB, free: 5.48 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/1.33, allocations: 27.66 kB / 1.374 GB, free: 5.453 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/1.33, allocations: 247.4 kB / 1.374 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/1.33, allocations: 11.84 kB / 1.374 GB, free: 5.176 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/1.33, allocations: 12 kB / 1.374 GB, free: 5.164 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002845/1.33, allocations: 320.9 kB / 1.375 GB, free: 4.906 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/1.331, allocations: 449.1 kB / 1.375 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/1.331, allocations: 0 / 1.375 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/1.331, allocations: 0 / 1.375 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/1.331, allocations: 4 kB / 1.375 GB, free: 4.516 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004139/1.331, allocations: 0.5201 MB / 1.376 GB, free: 4.02 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007403/1.332, allocations: 1.021 MB / 1.377 GB, free: 3.125 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/1.332, allocations: 0.6571 MB / 1.377 GB, free: 2.566 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/1.333, allocations: 4 kB / 1.377 GB, free: 2.562 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/1.333, allocations: 469.8 kB / 1.378 GB, free: 2.156 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/1.333, allocations: 0 / 1.378 GB, free: 2.156 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37): time 0.0007144/1.334, allocations: 0.7532 MB / 1.378 GB, free: 1.516 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/1.334, allocations: 143.6 kB / 1.379 GB, free: 1.348 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/1.334, allocations: 221.9 kB / 1.379 GB, free: 1.16 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/1.334, allocations: 25.7 kB / 1.379 GB, free: 1.129 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.48e-05/1.334, allocations: 100.4 kB / 1.379 GB, free: 1.035 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/1.334, allocations: 65.08 kB / 1.379 GB, free: 0.9805 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/1.334, allocations: 3.812 kB / 1.379 GB, free: 0.9805 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.902e-05/1.334, allocations: 344.4 kB / 1.379 GB, free: 0.6445 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/1.334, allocations: 319.9 kB / 1.38 GB, free: 400 kB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/1.335, allocations: 426.9 kB / 1.38 GB, free: 4 kB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/1.335, allocations: 361.9 kB / 1.38 GB, free: 15.71 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.335, allocations: 0 / 1.38 GB, free: 15.71 MB / 0.823 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008438/1.336, allocations: 0.8037 MB / 1.381 GB, free: 15.03 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/1.336, allocations: 4 kB / 1.381 GB, free: 15.02 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/1.336, allocations: 4 kB / 1.381 GB, free: 15.02 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/1.336, allocations: 4.094 kB / 1.381 GB, free: 15.02 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/1.336, allocations: 43.22 kB / 1.381 GB, free: 14.98 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/1.336, allocations: 7.984 kB / 1.381 GB, free: 14.97 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/1.336, allocations: 11.84 kB / 1.381 GB, free: 14.96 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/1.337, allocations: 214.8 kB / 1.381 GB, free: 14.75 MB / 0.823 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.0001144/1.337, allocations: 140.5 kB / 1.382 GB, free: 14.61 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/1.337, allocations: 27.62 kB / 1.382 GB, free: 14.59 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.864e-05/1.337, allocations: 34.89 kB / 1.382 GB, free: 14.57 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/1.337, allocations: 4 kB / 1.382 GB, free: 14.57 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.337, allocations: 4 kB / 1.382 GB, free: 14.56 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/1.337, allocations: 7.984 kB / 1.382 GB, free: 14.55 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/1.338, allocations: 1.628 MB / 1.383 GB, free: 13.09 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/1.338, allocations: 11.91 kB / 1.383 GB, free: 13.08 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.754e-05/1.338, allocations: 19.36 kB / 1.383 GB, free: 13.07 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/1.338, allocations: 7.984 kB / 1.383 GB, free: 13.06 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/1.338, allocations: 15.42 kB / 1.383 GB, free: 13.05 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/1.338, allocations: 3.938 kB / 1.383 GB, free: 13.04 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/1.338, allocations: 4 kB / 1.383 GB, free: 13.04 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008716/1.339, allocations: 1.116 MB / 1.384 GB, free: 12.01 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009055/1.34, allocations: 1.485 MB / 1.386 GB, free: 10.61 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/1.34, allocations: 108.7 kB / 1.386 GB, free: 10.48 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/1.34, allocations: 7.812 kB / 1.386 GB, free: 10.48 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/1.341, allocations: 4 kB / 1.386 GB, free: 10.48 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/1.341, allocations: 55.56 kB / 1.386 GB, free: 10.44 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.341, allocations: 218.6 kB / 1.386 GB, free: 10.23 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001164/1.341, allocations: 164.3 kB / 1.386 GB, free: 10.09 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001037/1.342, allocations: 52 kB / 1.386 GB, free: 10.04 MB / 0.823 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.0001481/1.342, allocations: 131 kB / 1.387 GB, free: 9.91 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000729/1.343, allocations: 0.7247 MB / 1.387 GB, free: 9.305 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.343, allocations: 0 / 1.387 GB, free: 9.305 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004156/1.343, allocations: 402.5 kB / 1.388 GB, free: 8.977 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/1.345, allocations: 382.8 kB / 1.388 GB, free: 8.641 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/1.346, allocations: 0.8722 MB / 1.389 GB, free: 7.848 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/1.346, allocations: 0.831 MB / 1.39 GB, free: 7.004 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/1.346, allocations: 0 / 1.39 GB, free: 7.004 MB / 0.823 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)