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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001245, allocations: 195.4 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002649/0.002649, allocations: 287.1 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.108/1.108, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004516/0.004516, allocations: 98.36 kB / 0.6065 GB, free: 24.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2087, allocations: 89.15 MB / 0.6936 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005986/0.2147, allocations: 3.749 MB / 0.6973 GB, free: 488 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00574/0.2205, allocations: 3.429 MB / 0.7006 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.2211, allocations: 15.94 kB / 0.7006 GB, free: 13.02 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005503/0.2217, allocations: 125.3 kB / 0.7007 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.223, allocations: 458.8 kB / 0.7012 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009415/0.224, allocations: 361.1 kB / 0.7015 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009158/0.2249, allocations: 0.741 MB / 0.7022 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003215/0.2252, allocations: 185.9 kB / 0.7024 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004067/0.2256, allocations: 310.8 kB / 0.7027 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005257/0.2262, allocations: 322.6 kB / 0.703 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2263, allocations: 64 kB / 0.7031 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.2273, allocations: 0.4994 MB / 0.7036 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.2275, allocations: 167.4 kB / 0.7037 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.2279, allocations: 322.3 kB / 0.704 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001387/0.2293, allocations: 1.063 MB / 0.7051 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2293, allocations: 3.938 kB / 0.7051 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2293, allocations: 4 kB / 0.7051 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.2293, allocations: 0 / 0.7051 GB, free: 8.438 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002072/0.2314, allocations: 0.9973 MB / 0.7061 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.2314, allocations: 8.031 kB / 0.7061 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.2316, allocations: 86.7 kB / 0.7062 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003644/0.2352, allocations: 0.6205 MB / 0.7068 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.2367, allocations: 0.6273 MB / 0.7074 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.2369, allocations: 134.4 kB / 0.7075 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.389e-05/0.237, allocations: 44 kB / 0.7075 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.2387, allocations: 0.6947 MB / 0.7082 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2387, allocations: 0 / 0.7082 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.2388, allocations: 20 kB / 0.7082 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.2388, allocations: 15.98 kB / 0.7083 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.2409, allocations: 0.7572 MB / 0.709 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.2446, allocations: 1.802 MB / 0.7108 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.2476, allocations: 0.849 MB / 0.7116 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009833/0.2486, allocations: 350 kB / 0.7119 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002146/0.2507, allocations: 1.769 MB / 0.7136 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.2519, allocations: 425.1 kB / 0.714 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 5.27e-06/0.2519, allocations: 3.984 kB / 0.7141 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.003111/0.255, allocations: 1.01 MB / 0.715 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.806e-05/0.2551, allocations: 115.2 kB / 0.7151 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006651/0.2558, allocations: 433.9 kB / 0.7156 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.889e-05/0.2559, allocations: 33.7 kB / 0.7156 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.2561, allocations: 276.6 kB / 0.7159 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.2563, allocations: 177.4 kB / 0.716 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.2566, allocations: 126.1 kB / 0.7161 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.2567, allocations: 358.8 kB / 0.7165 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009294/0.2577, allocations: 300.9 kB / 0.7168 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.2587, allocations: 448.5 kB / 0.7172 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001921/0.2607, allocations: 0.6945 MB / 0.7179 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.2607, allocations: 0 / 0.7179 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002328/0.263, allocations: 0.8261 MB / 0.7187 GB, free: 9.742 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.2631, allocations: 11.94 kB / 0.7187 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.2631, allocations: 4 kB / 0.7187 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.2631, allocations: 8 kB / 0.7187 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009556/0.2641, allocations: 171.7 kB / 0.7189 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.2641, allocations: 8.094 kB / 0.7189 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000742/0.2649, allocations: 103.4 kB / 0.719 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.2649, allocations: 31.97 kB / 0.719 GB, free: 9.41 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000336/0.2653, allocations: 198.9 kB / 0.7192 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.2654, allocations: 55.34 kB / 0.7193 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.2679, allocations: 0.8949 MB / 0.7201 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.268, allocations: 8 kB / 0.7201 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.268, allocations: 3.938 kB / 0.7201 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.268, allocations: 3.984 kB / 0.7201 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.2712, allocations: 1.574 MB / 0.7217 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2712, allocations: 0 / 0.7217 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/0.2721, allocations: 151.8 kB / 0.7218 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.2721, allocations: 3.938 kB / 0.7218 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-05/0.2722, allocations: 19.98 kB / 0.7218 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.2722, allocations: 3.984 kB / 0.7219 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2722, allocations: 4 kB / 0.7219 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.2743, allocations: 0.8503 MB / 0.7227 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003155/0.2747, allocations: 220.1 kB / 0.7229 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.2748, allocations: 8 kB / 0.7229 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.2754, allocations: 55.94 kB / 0.723 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2755, allocations: 44.5 kB / 0.723 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.023e-05/0.2756, allocations: 23.98 kB / 0.723 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000381/0.276, allocations: 299.1 kB / 0.7233 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.276, allocations: 3.938 kB / 0.7233 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007633/0.2768, allocations: 219.7 kB / 0.7235 GB, free: 4.684 MB / 0.5137 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004042/0.2808, allocations: 1.803 MB / 0.7253 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002476/0.2833, allocations: 0.7768 MB / 0.726 GB, free: 2.227 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2833, allocations: 0 / 0.726 GB, free: 2.227 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009958/0.2843, allocations: 391.3 kB / 0.7264 GB, free: 1.844 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.2849, allocations: 64.73 kB / 0.7265 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.2954, allocations: 5.407 MB / 0.7318 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.296, allocations: 0.8811 MB / 0.7326 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0008013/0.2968, allocations: 156.4 kB / 0.7328 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000476/0.2973, allocations: 223.3 kB / 0.733 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of SimCode: time 8.02e-07/0.2973, allocations: 3.938 kB / 0.733 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04412/0.3414, allocations: 13.96 MB / 0.7466 GB, free: 13.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.405/8.747, allocations: 4.453 kB / 0.7466 GB, free: 13.14 MB / 0.545 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/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)