Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",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/BuildingSystems 2.0.0-master/package.mo): time 0.7161/0.7161, allocations: 141.8 MB / 149.1 MB, free: 1.523 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 185.3 kB / 181.9 MB, free: 0.9648 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 221.3 MB / 436 MB, free: 5.719 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009243/0.0009243, allocations: 115.1 kB / 0.507 GB, free: 2.379 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001701/0.001701, allocations: 267.1 kB / 0.5884 GB, free: 47.48 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3059/0.3077, allocations: 89.63 MB / 0.676 GB, free: 59.61 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.4315, allocations: 82.77 MB / 0.7568 GB, free: 0.8438 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.8436, allocations: 122.9 MB / 0.8768 GB, free: 26.59 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.8439, allocations: 89.66 kB / 0.8769 GB, free: 26.59 MB / 0.5419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Interfaces/RadiationPort.mo:2:1-11:18:writable] Warning: Connector .BuildingSystems.Interfaces.RadiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.05839/0.9023, allocations: 22.57 MB / 0.899 GB, free: 24.29 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.9024, allocations: 10.5 kB / 0.899 GB, free: 24.29 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003154/0.9055, allocations: 0.5493 MB / 0.8995 GB, free: 24.23 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007767/0.9063, allocations: 460.3 kB / 0.8999 GB, free: 23.96 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.9065, allocations: 103.8 kB / 0.9 GB, free: 23.87 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.9066, allocations: 30.56 kB / 0.9001 GB, free: 23.87 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001181/0.9078, allocations: 0.6887 MB / 0.9007 GB, free: 23.87 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000947/0.9088, allocations: 0.607 MB / 0.9013 GB, free: 23.78 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.9088, allocations: 0 / 0.9013 GB, free: 23.78 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.855e-05/0.9089, allocations: 3.906 kB / 0.9013 GB, free: 23.77 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.9089, allocations: 11.75 kB / 0.9013 GB, free: 23.77 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004092/0.913, allocations: 2.238 MB / 0.9035 GB, free: 23.12 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001812/0.9148, allocations: 0.7955 MB / 0.9043 GB, free: 23.08 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.9153, allocations: 346 kB / 0.9046 GB, free: 23.07 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001424/0.9168, allocations: 1.759 MB / 0.9064 GB, free: 21.09 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006094/0.9174, allocations: 426 kB / 0.9068 GB, free: 21.03 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=60): time 2.865e-06/0.9174, allocations: 0 / 0.9068 GB, free: 21.03 MB / 0.5419 GB Notification: Performance of matching and sorting (n=60): time 0.01243/0.9298, allocations: 2.009 MB / 0.9087 GB, free: 20.89 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.9299, allocations: 140.9 kB / 0.9089 GB, free: 20.74 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007381/0.9307, allocations: 394.3 kB / 0.9092 GB, free: 20.63 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.9308, allocations: 25.7 kB / 0.9093 GB, free: 20.6 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.931, allocations: 202.8 kB / 0.9095 GB, free: 20.46 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.9312, allocations: 190.3 kB / 0.9096 GB, free: 20.33 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.347e-05/0.9312, allocations: 0 / 0.9096 GB, free: 20.33 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.546e-05/0.9313, allocations: 361 kB / 0.91 GB, free: 20.02 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.9318, allocations: 290.1 kB / 0.9103 GB, free: 20.02 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/0.9323, allocations: 376.9 kB / 0.9106 GB, free: 19.94 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009388/0.9417, allocations: 1.377 MB / 0.912 GB, free: 19.88 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.9417, allocations: 0 / 0.912 GB, free: 19.88 MB / 0.5419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.01224/0.954, allocations: 2.069 MB / 0.914 GB, free: 19.73 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.9541, allocations: 7.719 kB / 0.914 GB, free: 19.73 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.9541, allocations: 0 / 0.914 GB, free: 19.73 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007336/0.9548, allocations: 158.8 kB / 0.9141 GB, free: 19.71 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.9559, allocations: 185 kB / 0.9143 GB, free: 19.7 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003621/0.9596, allocations: 1.9 MB / 0.9162 GB, free: 18.45 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.9607, allocations: 138.3 kB / 0.9163 GB, free: 18.42 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.9609, allocations: 28.41 kB / 0.9163 GB, free: 18.42 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$PRE.weatherData.weatherData.conTim.tNext,weatherData.weatherData.conTim.tNext,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002074/0.9611, allocations: 123.2 kB / 0.9164 GB, free: 18.3 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.9613, allocations: 54.47 kB / 0.9165 GB, free: 18.27 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01257/0.9738, allocations: 2.225 MB / 0.9187 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.9739, allocations: 3.844 kB / 0.9187 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.9739, allocations: 4.531 kB / 0.9187 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.9739, allocations: 3.609 kB / 0.9187 GB, free: 18.11 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.987, allocations: 2.969 MB / 0.9216 GB, free: 17.25 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.9871, allocations: 7.938 kB / 0.9216 GB, free: 17.24 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009779/0.9881, allocations: 175.7 kB / 0.9218 GB, free: 17.2 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000563/0.9887, allocations: 144.6 kB / 0.9219 GB, free: 17.14 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.134e-05/0.9888, allocations: 15.69 kB / 0.9219 GB, free: 17.14 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003251/0.992, allocations: 1.933 MB / 0.9238 GB, free: 15.68 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.992, allocations: 4.062 kB / 0.9238 GB, free: 15.68 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01158/1.004, allocations: 2.161 MB / 0.9259 GB, free: 14.94 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01174/1.015, allocations: 2.547 MB / 0.9284 GB, free: 13.83 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/1.016, allocations: 243.7 kB / 0.9286 GB, free: 13.67 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/1.016, allocations: 0 / 0.9286 GB, free: 13.67 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009606/1.017, allocations: 101.2 kB / 0.9287 GB, free: 13.64 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/1.017, allocations: 42.89 kB / 0.9288 GB, free: 13.62 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-05/1.017, allocations: 26.78 kB / 0.9288 GB, free: 13.61 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0003806/1.018, allocations: 307.5 kB / 0.9291 GB, free: 13.5 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.001702/1.019, allocations: 295.9 kB / 0.9294 GB, free: 13.44 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/1.02, allocations: 479.6 kB / 0.9298 GB, free: 13.18 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.001456/1.022, allocations: 0.8179 MB / 0.9306 GB, free: 13 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.022, allocations: 0 / 0.9306 GB, free: 13 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007215/1.023, allocations: 0.5092 MB / 0.9311 GB, free: 12.84 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/1.023, allocations: 37.95 kB / 0.9312 GB, free: 12.83 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/1.025, allocations: 0.9123 MB / 0.9321 GB, free: 12.5 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000688/1.026, allocations: 0.9714 MB / 0.933 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of SimCode: time 5.21e-07/1.026, allocations: 0 / 0.933 GB, free: 11.7 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)