Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.165/2.165, allocations: 284.8 MB / 292.1 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 185.2 kB / 360.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.1 MB / 0.6187 GB, free: 13.22 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001225/0.001224, allocations: 91.41 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2401/0.2414, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5392/0.7806, allocations: 115.2 MB / 0.9627 GB, free: 78.53 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2026/0.9833, allocations: 137.6 MB / 1.097 GB, free: 3.254 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.9836, allocations: 76.22 kB / 1.097 GB, free: 3.184 MB / 0.698 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.08355/1.067, allocations: 18.76 MB / 1.116 GB, free: 456 kB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/1.067, allocations: 9.406 kB / 1.116 GB, free: 448 kB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/1.067, allocations: 23.72 kB / 1.116 GB, free: 424 kB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/1.068, allocations: 246.7 kB / 1.116 GB, free: 136 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/1.068, allocations: 12.45 kB / 1.116 GB, free: 124 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/1.068, allocations: 12 kB / 1.116 GB, free: 112 kB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006993/1.069, allocations: 315.9 kB / 1.116 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008099/1.069, allocations: 444.1 kB / 1.117 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.069, allocations: 0 / 1.117 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/1.069, allocations: 3.984 kB / 1.117 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/1.069, allocations: 7.938 kB / 1.117 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008617/1.07, allocations: 0.5201 MB / 1.117 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/1.072, allocations: 1.025 MB / 1.118 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/1.073, allocations: 0.6556 MB / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/1.073, allocations: 4 kB / 1.119 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008327/1.074, allocations: 478.3 kB / 1.119 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.785e-06/1.074, allocations: 0 / 1.119 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001629/1.076, allocations: 0.7508 MB / 1.12 GB, free: 11.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/1.076, allocations: 136.5 kB / 1.12 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/1.076, allocations: 228 kB / 1.12 GB, free: 11.41 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/1.077, allocations: 25.7 kB / 1.12 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.996e-05/1.077, allocations: 100.9 kB / 1.12 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/1.077, allocations: 71.06 kB / 1.12 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.114e-05/1.077, allocations: 4 kB / 1.12 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001513/1.077, allocations: 350.7 kB / 1.121 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/1.078, allocations: 320.7 kB / 1.121 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000696/1.078, allocations: 417.6 kB / 1.121 GB, free: 10.09 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/1.079, allocations: 356.5 kB / 1.122 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.079, allocations: 0 / 1.122 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00173/1.081, allocations: 0.8031 MB / 1.123 GB, free: 8.938 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/1.081, allocations: 4 kB / 1.123 GB, free: 8.934 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.081, allocations: 4 kB / 1.123 GB, free: 8.93 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/1.081, allocations: 7.938 kB / 1.123 GB, free: 8.922 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/1.081, allocations: 43.89 kB / 1.123 GB, free: 8.879 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/1.081, allocations: 7.938 kB / 1.123 GB, free: 8.871 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/1.082, allocations: 12.5 kB / 1.123 GB, free: 8.859 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004082/1.082, allocations: 212.2 kB / 1.123 GB, free: 8.656 MB / 0.7292 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.0001969/1.082, allocations: 137 kB / 1.123 GB, free: 8.516 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.018e-05/1.082, allocations: 35.61 kB / 1.123 GB, free: 8.48 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/1.083, allocations: 31.66 kB / 1.123 GB, free: 8.453 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/1.083, allocations: 7.984 kB / 1.123 GB, free: 8.445 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.083, allocations: 4 kB / 1.123 GB, free: 8.441 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/1.083, allocations: 1.406 kB / 1.123 GB, free: 8.441 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/1.086, allocations: 1.634 MB / 1.125 GB, free: 6.762 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/1.086, allocations: 4 kB / 1.125 GB, free: 6.758 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/1.086, allocations: 23.91 kB / 1.125 GB, free: 6.734 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.426e-05/1.086, allocations: 4 kB / 1.125 GB, free: 6.73 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.907e-05/1.086, allocations: 17.66 kB / 1.125 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/1.086, allocations: 0 / 1.125 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/1.086, allocations: 7.938 kB / 1.125 GB, free: 6.707 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001671/1.088, allocations: 1.112 MB / 1.126 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001863/1.089, allocations: 1.502 MB / 1.127 GB, free: 4.016 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/1.09, allocations: 104.7 kB / 1.127 GB, free: 3.895 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-05/1.09, allocations: 8 kB / 1.127 GB, free: 3.887 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/1.09, allocations: 3.984 kB / 1.127 GB, free: 3.883 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/1.09, allocations: 49.44 kB / 1.127 GB, free: 3.836 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004118/1.091, allocations: 217.4 kB / 1.128 GB, free: 3.625 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.00025/1.091, allocations: 166.4 kB / 1.128 GB, free: 3.461 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001602/1.093, allocations: 56 kB / 1.128 GB, free: 3.406 MB / 0.7292 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.0002358/1.093, allocations: 118.3 kB / 1.128 GB, free: 3.281 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001505/1.094, allocations: 0.7228 MB / 1.129 GB, free: 2.559 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/1.094, allocations: 0 / 1.129 GB, free: 2.559 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000814/1.095, allocations: 407.8 kB / 1.129 GB, free: 2.16 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.098, allocations: 296.2 kB / 1.129 GB, free: 1.895 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/1.1, allocations: 0.8633 MB / 1.13 GB, free: 1 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006303/1.101, allocations: 0.8306 MB / 1.131 GB, free: 148 kB / 0.7292 GB Notification: Performance of SimCode: time 1.233e-06/1.101, allocations: 0 / 1.131 GB, free: 148 kB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)