Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.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.Buildings.Constructions.Shadowing.Examples.Embrasure,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Constructions_Shadowing_Examples_Embrasure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Constructions_Shadowing_Examples_Embrasure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8361/0.8361, allocations: 143.4 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 185.7 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.2 MB / 447.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 84.41 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 269.3 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004641, allocations: 11.72 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1813, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6299/0.8112, allocations: 122.5 MB / 0.8935 GB, free: 22.03 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/0.8116, allocations: 91.81 kB / 0.8935 GB, free: 22.03 MB / 0.5417 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: Performance of FrontEnd - DAE generated: time 0.07582/0.8874, allocations: 25.52 MB / 0.9185 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.955e-06/0.8875, allocations: 0 / 0.9185 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.819e-05/0.8875, allocations: 19.47 kB / 0.9185 GB, free: 20.07 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 193 * Number of variables: 193 Notification: Performance of Generate backend data structure: time 0.003298/0.8909, allocations: 1.089 MB / 0.9195 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.8909, allocations: 7.719 kB / 0.9196 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004172/0.8913, allocations: 128.5 kB / 0.9197 GB, free: 19.32 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002694/0.894, allocations: 0.5093 MB / 0.9202 GB, free: 19.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.8951, allocations: 496.4 kB / 0.9206 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.8954, allocations: 306.8 kB / 0.9209 GB, free: 18.69 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.8956, allocations: 70.09 kB / 0.921 GB, free: 18.69 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.8982, allocations: 1.094 MB / 0.9221 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.8982, allocations: 7.828 kB / 0.9221 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.8984, allocations: 29.28 kB / 0.9221 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.8984, allocations: 18.84 kB / 0.9221 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002785/0.9012, allocations: 1.229 MB / 0.9233 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.9064, allocations: 2.921 MB / 0.9262 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003993/0.9104, allocations: 1.7 MB / 0.9278 GB, free: 17.15 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002876/0.9133, allocations: 2.599 MB / 0.9304 GB, free: 30.24 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001417/0.9148, allocations: 0.65 MB / 0.931 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=90): time 3.647e-06/0.9148, allocations: 0 / 0.931 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90): time 0.003818/0.9186, allocations: 1.629 MB / 0.9326 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.9187, allocations: 141 kB / 0.9327 GB, free: 29.62 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008742/0.9196, allocations: 0.5114 MB / 0.9332 GB, free: 29.45 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.9197, allocations: 43.2 kB / 0.9333 GB, free: 29.41 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.92, allocations: 311 kB / 0.9336 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.9203, allocations: 301.5 kB / 0.9339 GB, free: 29.02 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.077e-05/0.9204, allocations: 18.31 kB / 0.9339 GB, free: 29.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001939/0.9206, allocations: 384.2 kB / 0.9342 GB, free: 28.68 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.9217, allocations: 0.5048 MB / 0.9347 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.9228, allocations: 0.5909 MB / 0.9353 GB, free: 28.43 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.9239, allocations: 0.5081 MB / 0.9358 GB, free: 28.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/0.924, allocations: 0 / 0.9358 GB, free: 28.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002705/0.9267, allocations: 1.281 MB / 0.9371 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.9267, allocations: 7.75 kB / 0.9371 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.9267, allocations: 3.984 kB / 0.9371 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.9268, allocations: 3.531 kB / 0.9371 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.9281, allocations: 262.2 kB / 0.9373 GB, free: 28 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/0.9281, allocations: 3.781 kB / 0.9373 GB, free: 28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.9296, allocations: 218.9 kB / 0.9375 GB, free: 27.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.9297, allocations: 38.98 kB / 0.9376 GB, free: 27.89 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.weaDat.weatherData.conTim.tNext,weaDat.weatherData.conTim.tNext,radWest.outsidePolarCircle,radSouth.outsidePolarCircle,radEast.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0005395/0.9302, allocations: 228 kB / 0.9378 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.9305, allocations: 82.25 kB / 0.9379 GB, free: 27.71 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003581/0.9341, allocations: 1.598 MB / 0.9394 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.9341, allocations: 15.69 kB / 0.9395 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.9341, allocations: 4 kB / 0.9395 GB, free: 27.29 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.9341, allocations: 7.969 kB / 0.9395 GB, free: 27.28 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.9386, allocations: 2.542 MB / 0.9419 GB, free: 26.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.9386, allocations: 0 / 0.9419 GB, free: 26.42 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.9399, allocations: 275 kB / 0.9422 GB, free: 26.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.796e-05/0.9399, allocations: 3.875 kB / 0.9422 GB, free: 26.36 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.003e-05/0.94, allocations: 30.7 kB / 0.9422 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.94, allocations: 7.781 kB / 0.9422 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9401, allocations: 0 / 0.9422 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.9428, allocations: 1.421 MB / 0.9436 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006511/0.9435, allocations: 300.5 kB / 0.9439 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.9438, allocations: 21.66 kB / 0.9439 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.945, allocations: 120.7 kB / 0.9441 GB, free: 25.73 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.9452, allocations: 74.7 kB / 0.9441 GB, free: 25.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.074e-05/0.9453, allocations: 46.22 kB / 0.9442 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006956/0.946, allocations: 409.9 kB / 0.9446 GB, free: 25.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.61e-07/0.946, allocations: 4 kB / 0.9446 GB, free: 25.55 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001392/0.9474, allocations: 357.6 kB / 0.9449 GB, free: 25.48 MB / 0.5573 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,weaDat.weatherData.conTim.tNext) * Number of discrete states: 1 (weaDat.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 125 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004693/0.9521, allocations: 2.425 MB / 0.9473 GB, free: 24.38 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002686/0.9548, allocations: 1.242 MB / 0.9485 GB, free: 24.15 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.9548, allocations: 0 / 0.9485 GB, free: 24.15 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.9561, allocations: 0.6888 MB / 0.9492 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007534/0.9569, allocations: 84.12 kB / 0.9492 GB, free: 24.01 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009978/0.9669, allocations: 5.262 MB / 0.9544 GB, free: 21.93 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006438/0.9676, allocations: 0.9861 MB / 0.9553 GB, free: 21.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00127/0.9689, allocations: 222.2 kB / 0.9556 GB, free: 21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006478/0.9696, allocations: 337.7 kB / 0.9559 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of SimCode: time 1.463e-06/0.9696, allocations: 3.938 kB / 0.9559 GB, free: 20.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04369/1.013, allocations: 18.88 MB / 0.9743 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/1.014, allocations: 241.9 kB / 0.9745 GB, free: 11.63 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/3.695, allocations: 0 / 0.9745 GB, free: 11.63 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.pipe ; mkfifo BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.pipe >> ../files/BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Buildings_Constructions_Shadowing_Examples_Embrasure_fmu --startTime=0 --stopTime=259200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Buildings_Constructions_Shadowing_Examples_Embrasure.fmu > BuildingSystems_BuildingSystems.Buildings.Constructions.Shadowing.Examples.Embrasure.pipe 2>&1)