Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.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.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex",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.828/0.828, allocations: 141.8 MB / 149.3 MB, free: 9.188 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.001162/0.001162, allocations: 188.8 kB / 182.2 MB, free: 9.422 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.549/1.549, allocations: 221.5 MB / 436.4 MB, free: 13.32 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.0009529/0.000953, allocations: 89.55 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001708/0.001708, allocations: 278.4 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.982e-05/1.984e-05, allocations: 3.984 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4938/0.4938, allocations: 82.78 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.6745, allocations: 122.6 MB / 0.8772 GB, free: 5.125 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.6748, allocations: 83.95 kB / 0.8773 GB, free: 5.043 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.05845/0.7333, allocations: 19.56 MB / 0.8964 GB, free: 1.359 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7334, allocations: 4 kB / 0.8964 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.182e-05/0.7334, allocations: 11.94 kB / 0.8964 GB, free: 1.344 MB / 0.5573 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.001854/0.7353, allocations: 0.8555 MB / 0.8972 GB, free: 448 kB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.7353, allocations: 12.03 kB / 0.8973 GB, free: 436 kB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5125/1.248, allocations: 489.8 kB / 0.8977 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001183/1.249, allocations: 432 kB / 0.8981 GB, free: 123.6 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/1.249, allocations: 102.5 kB / 0.8982 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.314e-05/1.249, allocations: 27.25 kB / 0.8983 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001447/1.251, allocations: 0.637 MB / 0.8989 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/1.252, allocations: 0.5727 MB / 0.8994 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/1.252, allocations: 0.75 kB / 0.8994 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/1.252, allocations: 0 / 0.8994 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/1.252, allocations: 16.22 kB / 0.8995 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/1.257, allocations: 1.928 MB / 0.9013 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002071/1.259, allocations: 0.7668 MB / 0.9021 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006221/1.26, allocations: 313.4 kB / 0.9024 GB, free: 123.1 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001708/1.262, allocations: 1.758 MB / 0.9041 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007807/1.262, allocations: 389.5 kB / 0.9045 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=55): time 4.038e-06/1.262, allocations: 3.312 kB / 0.9045 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=55): time 0.01923/1.282, allocations: 2.613 MB / 0.907 GB, free: 121 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/1.282, allocations: 138.7 kB / 0.9072 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006215/1.282, allocations: 377.3 kB / 0.9075 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/1.282, allocations: 26.86 kB / 0.9075 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/1.283, allocations: 265.7 kB / 0.9078 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/1.283, allocations: 176 kB / 0.908 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/1.283, allocations: 0 / 0.908 GB, free: 120.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000109/1.283, allocations: 359 kB / 0.9083 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005502/1.284, allocations: 258.5 kB / 0.9086 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006642/1.284, allocations: 360.6 kB / 0.9089 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01717/1.301, allocations: 2.291 MB / 0.9111 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/1.301, allocations: 3.438 kB / 0.9111 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0177/1.319, allocations: 2.706 MB / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/1.319, allocations: 7.812 kB / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.319, allocations: 0 / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.409e-05/1.319, allocations: 12.06 kB / 0.9138 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00407/1.323, allocations: 0.5069 MB / 0.9143 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/1.325, allocations: 1.594 MB / 0.9159 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009522/1.326, allocations: 123.6 kB / 0.916 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/1.326, allocations: 30.62 kB / 0.916 GB, free: 117.8 MB / 0.5573 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): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001763/1.327, allocations: 125.6 kB / 0.9161 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0175/1.344, allocations: 2.605 MB / 0.9187 GB, free: 117.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/1.344, allocations: 54.12 kB / 0.9187 GB, free: 117.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01634/1.36, allocations: 2.871 MB / 0.9215 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/1.361, allocations: 14.09 kB / 0.9215 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/1.361, allocations: 0 / 0.9215 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/1.361, allocations: 3.844 kB / 0.9215 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/1.378, allocations: 3.597 MB / 0.925 GB, free: 114.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/1.378, allocations: 0 / 0.925 GB, free: 114.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/1.379, allocations: 175.3 kB / 0.9252 GB, free: 114.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008443/1.38, allocations: 113.2 kB / 0.9253 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/1.38, allocations: 21.52 kB / 0.9253 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/1.381, allocations: 1.575 MB / 0.9269 GB, free: 113.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.381, allocations: 0 / 0.9269 GB, free: 113.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.398, allocations: 2.834 MB / 0.9296 GB, free: 110.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004991/1.398, allocations: 233.8 kB / 0.9299 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/1.398, allocations: 3.953 kB / 0.9299 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008482/1.399, allocations: 86.06 kB / 0.93 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/1.399, allocations: 53.94 kB / 0.93 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-05/1.4, allocations: 26.56 kB / 0.93 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004716/1.4, allocations: 297.2 kB / 0.9303 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.9e-07/1.4, allocations: 0 / 0.9303 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001153/1.401, allocations: 264.5 kB / 0.9306 GB, free: 110 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,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * 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: 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.01833/1.42, allocations: 3.757 MB / 0.9342 GB, free: 106.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003748/1.423, allocations: 0.8643 MB / 0.9351 GB, free: 106 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.423, allocations: 0 / 0.9351 GB, free: 106 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009785/1.424, allocations: 485.7 kB / 0.9355 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/1.425, allocations: 38.36 kB / 0.9356 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/1.428, allocations: 0.9724 MB / 0.9365 GB, free: 104.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/1.428, allocations: 0.8892 MB / 0.9374 GB, free: 103.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007939/1.429, allocations: 143.2 kB / 0.9375 GB, free: 103.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/1.43, allocations: 215.3 kB / 0.9377 GB, free: 103.3 MB / 0.5573 GB Notification: Performance of SimCode: time 2.064e-06/1.43, allocations: 0 / 0.9377 GB, free: 103.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/1.467, allocations: 13.4 MB / 0.9508 GB, free: 90.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/1.467, allocations: 203.4 kB / 0.951 GB, free: 89.84 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/4.184, allocations: 0 / 0.951 GB, free: 89.84 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplex.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)