Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Sources.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.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_9_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_9_Buildings_Controls_Sources_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.847/1.847, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009534/0.0009534, allocations: 181.2 kB / 487 MB, free: 5.379 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.143/1.143, allocations: 221.3 MB / 0.7819 GB, free: 1.355 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.0008885/0.0008884, allocations: 103.8 kB / 0.9213 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4051/0.406, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.5945, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5002/1.095, allocations: 149.1 MB / 1.351 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/1.095, allocations: 72.73 kB / 1.351 GB, free: 15.84 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.04276/1.138, allocations: 18.87 MB / 1.369 GB, free: 8.906 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/1.138, allocations: 12 kB / 1.369 GB, free: 8.895 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.589e-05/1.138, allocations: 23.72 kB / 1.369 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/1.138, allocations: 251.5 kB / 1.37 GB, free: 8.598 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/1.138, allocations: 15.89 kB / 1.37 GB, free: 8.582 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/1.138, allocations: 15.38 kB / 1.37 GB, free: 8.57 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002979/1.138, allocations: 314.2 kB / 1.37 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003835/1.139, allocations: 444.8 kB / 1.37 GB, free: 7.934 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/1.139, allocations: 4 kB / 1.37 GB, free: 7.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/1.139, allocations: 3.984 kB / 1.37 GB, free: 7.926 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/1.139, allocations: 4 kB / 1.37 GB, free: 7.922 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/1.139, allocations: 0.5159 MB / 1.371 GB, free: 7.43 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000795/1.14, allocations: 1.029 MB / 1.372 GB, free: 6.527 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/1.141, allocations: 0.6558 MB / 1.373 GB, free: 5.973 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/1.141, allocations: 8 kB / 1.373 GB, free: 5.965 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003608/1.141, allocations: 469.8 kB / 1.373 GB, free: 5.559 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=37): time 1.543e-06/1.141, allocations: 0 / 1.373 GB, free: 5.559 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37): time 0.0007025/1.142, allocations: 0.7444 MB / 1.374 GB, free: 4.922 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/1.142, allocations: 144.3 kB / 1.374 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/1.142, allocations: 222.5 kB / 1.374 GB, free: 4.566 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/1.142, allocations: 29.7 kB / 1.374 GB, free: 4.531 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.389e-05/1.142, allocations: 95.41 kB / 1.374 GB, free: 4.441 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/1.142, allocations: 85.33 kB / 1.374 GB, free: 4.375 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/1.142, allocations: 0.75 kB / 1.374 GB, free: 4.375 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.721e-05/1.142, allocations: 338.2 kB / 1.375 GB, free: 4.047 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/1.142, allocations: 328.1 kB / 1.375 GB, free: 3.785 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/1.143, allocations: 416.3 kB / 1.375 GB, free: 3.406 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/1.143, allocations: 358.5 kB / 1.376 GB, free: 3.117 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.143, allocations: 0 / 1.376 GB, free: 3.117 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007075/1.144, allocations: 0.801 MB / 1.376 GB, free: 2.434 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/1.144, allocations: 4 kB / 1.376 GB, free: 2.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/1.144, allocations: 3.938 kB / 1.376 GB, free: 2.426 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/1.144, allocations: 12.09 kB / 1.376 GB, free: 2.414 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/1.144, allocations: 43.7 kB / 1.377 GB, free: 2.375 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/1.144, allocations: 8 kB / 1.377 GB, free: 2.367 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/1.144, allocations: 11.84 kB / 1.377 GB, free: 2.355 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/1.144, allocations: 211.4 kB / 1.377 GB, free: 2.152 MB / 0.8073 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 9.369e-05/1.144, allocations: 135.2 kB / 1.377 GB, free: 2.02 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/1.144, allocations: 31.62 kB / 1.377 GB, free: 1.988 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/1.145, allocations: 33.08 kB / 1.377 GB, free: 1.973 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/1.145, allocations: 4 kB / 1.377 GB, free: 1.969 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.145, allocations: 4 kB / 1.377 GB, free: 1.965 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.145, allocations: 4 kB / 1.377 GB, free: 1.961 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/1.146, allocations: 1.638 MB / 1.379 GB, free: 0.4922 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.146, allocations: 11.89 kB / 1.379 GB, free: 492 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/1.146, allocations: 27.72 kB / 1.379 GB, free: 468 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/1.146, allocations: 0 / 1.379 GB, free: 468 kB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/1.146, allocations: 23.28 kB / 1.379 GB, free: 448 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/1.146, allocations: 4 kB / 1.379 GB, free: 444 kB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.146, allocations: 0 / 1.379 GB, free: 444 kB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008963/1.147, allocations: 1.119 MB / 1.38 GB, free: 15.4 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001019/1.148, allocations: 1.485 MB / 1.381 GB, free: 14 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.768e-05/1.148, allocations: 107.7 kB / 1.381 GB, free: 13.88 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/1.148, allocations: 4 kB / 1.381 GB, free: 13.87 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/1.148, allocations: 3.984 kB / 1.381 GB, free: 13.87 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/1.148, allocations: 50 kB / 1.381 GB, free: 13.83 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/1.149, allocations: 218.9 kB / 1.382 GB, free: 13.62 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001207/1.149, allocations: 163.6 kB / 1.382 GB, free: 13.48 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001046/1.15, allocations: 48 kB / 1.382 GB, free: 13.44 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.0001587/1.15, allocations: 133.7 kB / 1.382 GB, free: 13.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0007755/1.151, allocations: 0.7277 MB / 1.383 GB, free: 12.7 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-06/1.151, allocations: 0 / 1.383 GB, free: 12.7 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004821/1.151, allocations: 405.2 kB / 1.383 GB, free: 12.36 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/1.153, allocations: 288.8 kB / 1.383 GB, free: 12.12 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/1.154, allocations: 0.8683 MB / 1.384 GB, free: 11.33 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004312/1.154, allocations: 0.836 MB / 1.385 GB, free: 10.48 MB / 0.823 GB Notification: Performance of SimCode: time 2.91e-07/1.154, allocations: 0 / 1.385 GB, free: 10.48 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)