Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.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.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.836/1.836, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009161/0.0009161, allocations: 185.2 kB / 490.8 MB, free: 1.965 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.148/1.148, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009193/0.0009193, allocations: 96.59 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4298/0.4308, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.6174, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4923/1.11, allocations: 149.9 MB / 1.358 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/1.11, allocations: 73.45 kB / 1.358 GB, free: 17.51 MB / 0.823 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.04344/1.153, allocations: 18.87 MB / 1.377 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/1.153, allocations: 9.375 kB / 1.377 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.222e-05/1.153, allocations: 28.89 kB / 1.377 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/1.154, allocations: 248.1 kB / 1.377 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/1.154, allocations: 9.547 kB / 1.377 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/1.154, allocations: 11.98 kB / 1.377 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00042/1.154, allocations: 317.9 kB / 1.377 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005372/1.155, allocations: 448.9 kB / 1.378 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/1.155, allocations: 5.391 kB / 1.378 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/1.155, allocations: 1.609 kB / 1.378 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/1.155, allocations: 3 kB / 1.378 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006089/1.156, allocations: 0.5198 MB / 1.378 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/1.157, allocations: 1.02 MB / 1.379 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006845/1.157, allocations: 0.6553 MB / 1.38 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/1.157, allocations: 4.953 kB / 1.38 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005164/1.158, allocations: 471.9 kB / 1.38 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.235e-06/1.158, allocations: 0 / 1.38 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0009046/1.159, allocations: 0.7614 MB / 1.381 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/1.159, allocations: 138.3 kB / 1.381 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/1.159, allocations: 224.5 kB / 1.381 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/1.159, allocations: 31.7 kB / 1.381 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/1.159, allocations: 102.2 kB / 1.381 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.961e-05/1.159, allocations: 70.17 kB / 1.381 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/1.159, allocations: 1.062 kB / 1.381 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.992e-05/1.159, allocations: 345.4 kB / 1.382 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/1.16, allocations: 326.9 kB / 1.382 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/1.16, allocations: 417.5 kB / 1.382 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/1.16, allocations: 356.5 kB / 1.383 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/1.16, allocations: 1.312 kB / 1.383 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008613/1.161, allocations: 0.8014 MB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/1.161, allocations: 4.938 kB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.161, allocations: 2.594 kB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.161, allocations: 5.094 kB / 1.384 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/1.161, allocations: 53.77 kB / 1.384 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/1.161, allocations: 3.969 kB / 1.384 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/1.162, allocations: 17.25 kB / 1.384 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/1.162, allocations: 205.6 kB / 1.384 GB, free: 29.6 MB / 0.8386 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.0001379/1.162, allocations: 144.3 kB / 1.384 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/1.162, allocations: 36.33 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.949e-05/1.162, allocations: 29.66 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/1.162, allocations: 4 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/1.162, allocations: 1.344 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/1.162, allocations: 5.297 kB / 1.384 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/1.164, allocations: 1.637 MB / 1.386 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.164, allocations: 0.9688 kB / 1.386 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.074e-05/1.164, allocations: 26.19 kB / 1.386 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.164, allocations: 10.09 kB / 1.386 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/1.164, allocations: 20.09 kB / 1.386 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/1.164, allocations: 2.062 kB / 1.386 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.164, allocations: 1.094 kB / 1.386 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008987/1.165, allocations: 1.107 MB / 1.387 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001089/1.166, allocations: 1.493 MB / 1.388 GB, free: 27.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.867e-05/1.166, allocations: 101.1 kB / 1.388 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/1.166, allocations: 6.375 kB / 1.388 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/1.166, allocations: 5.312 kB / 1.388 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.745e-05/1.167, allocations: 49.27 kB / 1.388 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/1.167, allocations: 220.5 kB / 1.389 GB, free: 27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001242/1.167, allocations: 164.3 kB / 1.389 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009961/1.168, allocations: 51.19 kB / 1.389 GB, free: 26.91 MB / 0.8386 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.0001431/1.168, allocations: 133.7 kB / 1.389 GB, free: 26.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007844/1.169, allocations: 0.7307 MB / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.169, allocations: 0 / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000463/1.169, allocations: 410.9 kB / 1.39 GB, free: 26.62 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/1.171, allocations: 286.7 kB / 1.39 GB, free: 26.53 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/1.172, allocations: 0.8671 MB / 1.391 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004089/1.172, allocations: 0.8273 MB / 1.392 GB, free: 25.51 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.172, allocations: 3.938 kB / 1.392 GB, free: 25.51 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)