Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",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.7762/0.7762, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 183.3 kB / 187.3 MB, free: 11.88 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.519/1.519, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0008723/0.0008723, allocations: 92.09 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001873/0.001873, allocations: 272.5 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.672e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4753/0.4754, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.6182, allocations: 123.1 MB / 0.8846 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.6186, allocations: 79.95 kB / 0.8847 GB, free: 1.301 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.05621/0.6748, allocations: 19.78 MB / 0.904 GB, free: 13.41 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6748, allocations: 0 / 0.904 GB, free: 13.41 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.232e-05/0.6749, allocations: 16 kB / 0.904 GB, free: 13.39 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001803/0.6767, allocations: 0.8552 MB / 0.9048 GB, free: 12.49 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.6768, allocations: 8.031 kB / 0.9048 GB, free: 12.48 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.6769, allocations: 86.52 kB / 0.9049 GB, free: 12.39 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002971/0.6799, allocations: 0.5533 MB / 0.9055 GB, free: 11.83 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009209/0.6808, allocations: 440.9 kB / 0.9059 GB, free: 11.36 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.681, allocations: 122.1 kB / 0.906 GB, free: 11.22 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.6811, allocations: 51.92 kB / 0.9061 GB, free: 11.17 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.6823, allocations: 0.6442 MB / 0.9067 GB, free: 10.51 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.6823, allocations: 0 / 0.9067 GB, free: 10.51 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.73e-05/0.6824, allocations: 16 kB / 0.9067 GB, free: 10.49 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.6824, allocations: 12 kB / 0.9067 GB, free: 10.48 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.6836, allocations: 0.691 MB / 0.9074 GB, free: 9.789 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/0.688, allocations: 2.031 MB / 0.9094 GB, free: 7.707 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.6901, allocations: 0.8024 MB / 0.9102 GB, free: 6.895 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005839/0.6907, allocations: 342 kB / 0.9105 GB, free: 6.559 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001949/0.6927, allocations: 1.757 MB / 0.9122 GB, free: 4.414 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007651/0.6935, allocations: 408.1 kB / 0.9126 GB, free: 4.004 MB / 0.573 GB Notification: Performance of pre-optimization done (n=55): time 4.509e-06/0.6935, allocations: 0 / 0.9126 GB, free: 4.004 MB / 0.573 GB Notification: Performance of matching and sorting (n=55): time 0.001407/0.6949, allocations: 0.6512 MB / 0.9132 GB, free: 3.348 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.695, allocations: 145 kB / 0.9134 GB, free: 3.176 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006257/0.6956, allocations: 439.2 kB / 0.9138 GB, free: 2.742 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.6957, allocations: 33.7 kB / 0.9138 GB, free: 2.703 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.6959, allocations: 272.8 kB / 0.9141 GB, free: 2.43 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.6961, allocations: 181.4 kB / 0.9142 GB, free: 2.25 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.6961, allocations: 8 kB / 0.9142 GB, free: 2.242 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.6963, allocations: 362.8 kB / 0.9146 GB, free: 1.879 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004664/0.6968, allocations: 273 kB / 0.9149 GB, free: 1.613 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005847/0.6974, allocations: 383.5 kB / 0.9152 GB, free: 1.203 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/0.6979, allocations: 275.1 kB / 0.9155 GB, free: 0.9336 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.6979, allocations: 0 / 0.9155 GB, free: 0.9336 MB / 0.573 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00126/0.6991, allocations: 0.7286 MB / 0.9162 GB, free: 204 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.6992, allocations: 11.94 kB / 0.9162 GB, free: 192 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.6992, allocations: 0 / 0.9162 GB, free: 192 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.6992, allocations: 4 kB / 0.9162 GB, free: 188 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4538/1.153, allocations: 203.1 kB / 0.9164 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.079e-05/1.153, allocations: 5.906 kB / 0.9164 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/1.155, allocations: 145.1 kB / 0.9165 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/1.155, allocations: 29.62 kB / 0.9166 GB, free: 134.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (68): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002183/1.155, allocations: 138.9 kB / 0.9167 GB, free: 134.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/1.155, allocations: 53.97 kB / 0.9168 GB, free: 134.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002229/1.157, allocations: 0.8669 MB / 0.9176 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/1.157, allocations: 7.281 kB / 0.9176 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/1.157, allocations: 0 / 0.9176 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.331e-05/1.157, allocations: 4.859 kB / 0.9176 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/1.161, allocations: 1.651 MB / 0.9192 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/1.161, allocations: 0.9062 kB / 0.9192 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/1.162, allocations: 193 kB / 0.9194 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/1.162, allocations: 2.312 kB / 0.9194 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.789e-05/1.162, allocations: 24.41 kB / 0.9194 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.235e-05/1.162, allocations: 7.141 kB / 0.9194 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.162, allocations: 2.594 kB / 0.9195 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/1.164, allocations: 0.8181 MB / 0.9202 GB, free: 134.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004267/1.165, allocations: 241.5 kB / 0.9205 GB, free: 133.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/1.165, allocations: 15 kB / 0.9205 GB, free: 133.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009196/1.166, allocations: 103.6 kB / 0.9206 GB, free: 133.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/1.166, allocations: 49.42 kB / 0.9206 GB, free: 133.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.981e-05/1.166, allocations: 24.58 kB / 0.9207 GB, free: 133.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006769/1.167, allocations: 342.6 kB / 0.921 GB, free: 133.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/1.167, allocations: 2.953 kB / 0.921 GB, free: 133.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001316/1.168, allocations: 272.5 kB / 0.9213 GB, free: 133.8 MB / 0.573 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 (67): * Single equations (assignments): 66 * 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.003062/1.171, allocations: 1.775 MB / 0.923 GB, free: 133.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00154/1.172, allocations: 0.6798 MB / 0.9237 GB, free: 133.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.172, allocations: 3.969 kB / 0.9237 GB, free: 133.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006808/1.173, allocations: 378.1 kB / 0.924 GB, free: 133.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/1.174, allocations: 54.58 kB / 0.9241 GB, free: 133.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/1.176, allocations: 1.028 MB / 0.9251 GB, free: 132.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/1.177, allocations: 0.8901 MB / 0.9259 GB, free: 132.1 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0008161/1.177, allocations: 156 kB / 0.9261 GB, free: 132.1 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/1.178, allocations: 223 kB / 0.9263 GB, free: 132.1 MB / 0.573 GB Notification: Performance of SimCode: time 3.71e-07/1.178, allocations: 0.5938 kB / 0.9263 GB, free: 132.1 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/1.211, allocations: 14.21 MB / 0.9402 GB, free: 131.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/1.211, allocations: 215.2 kB / 0.9404 GB, free: 131 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.717, allocations: 3.938 kB / 0.9404 GB, free: 131 MB / 0.573 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)