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/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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 103.6 kB / 16.35 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.25/1.25, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002151/0.002151, allocations: 290.1 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8839/0.8839, allocations: 169.2 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 101.6 kB / 0.5966 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1409, allocations: 86.97 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004705/0.1457, allocations: 3.699 MB / 0.6852 GB, free: 3.758 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004216/0.1499, allocations: 3.442 MB / 0.6886 GB, free: 304 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.1501, allocations: 11.94 kB / 0.6886 GB, free: 292 kB / 494.1 MB [/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.0004101/0.1506, allocations: 125.7 kB / 0.6887 GB, free: 168 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2394/0.39, allocations: 445.3 kB / 0.6891 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.391, allocations: 373.9 kB / 0.6895 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00106/0.3921, allocations: 0.7609 MB / 0.6902 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.3924, allocations: 198.1 kB / 0.6904 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005558/0.393, allocations: 311.7 kB / 0.6907 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006536/0.3937, allocations: 329.2 kB / 0.691 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001901/0.3939, allocations: 64.88 kB / 0.6911 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.3949, allocations: 0.4976 MB / 0.6916 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.3952, allocations: 170.4 kB / 0.6917 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004128/0.3956, allocations: 321.1 kB / 0.692 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.3971, allocations: 1.093 MB / 0.6931 GB, free: 12.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3971, allocations: 0 / 0.6931 GB, free: 12.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3971, allocations: 0 / 0.6931 GB, free: 12.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.3971, allocations: 1.625 kB / 0.6931 GB, free: 12.91 MB / 494.1 MB 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.001737/0.3989, allocations: 0.9956 MB / 0.6941 GB, free: 12.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3989, allocations: 9.859 kB / 0.6941 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.402, allocations: 0.5604 MB / 0.6946 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.4033, allocations: 0.6267 MB / 0.6952 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.4034, allocations: 119.9 kB / 0.6954 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.074e-05/0.4034, allocations: 42.41 kB / 0.6954 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.4048, allocations: 0.666 MB / 0.696 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4048, allocations: 0.75 kB / 0.696 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/0.4049, allocations: 20.47 kB / 0.6961 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.4049, allocations: 10.91 kB / 0.6961 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.4065, allocations: 0.6962 MB / 0.6968 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003166/0.4097, allocations: 1.758 MB / 0.6985 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.4122, allocations: 0.8019 MB / 0.6993 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000721/0.4129, allocations: 326.7 kB / 0.6996 GB, free: 9.961 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001312/0.4142, allocations: 1.762 MB / 0.7013 GB, free: 7.977 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008458/0.4151, allocations: 395.1 kB / 0.7017 GB, free: 7.828 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 2.314e-06/0.4151, allocations: 3.281 kB / 0.7017 GB, free: 7.828 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002243/0.4174, allocations: 0.9264 MB / 0.7026 GB, free: 7.496 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.4174, allocations: 109.6 kB / 0.7027 GB, free: 7.371 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000429/0.4178, allocations: 419.9 kB / 0.7031 GB, free: 7.168 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.4179, allocations: 36.23 kB / 0.7031 GB, free: 7.129 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.418, allocations: 277.7 kB / 0.7034 GB, free: 6.902 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4182, allocations: 177.9 kB / 0.7035 GB, free: 6.766 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.4184, allocations: 122 kB / 0.7037 GB, free: 6.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.877e-05/0.4185, allocations: 362.5 kB / 0.704 GB, free: 6.371 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006672/0.4191, allocations: 276.4 kB / 0.7043 GB, free: 6.281 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007348/0.4199, allocations: 409.2 kB / 0.7047 GB, free: 6.051 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.4212, allocations: 0.6548 MB / 0.7053 GB, free: 5.723 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4213, allocations: 0.8125 kB / 0.7053 GB, free: 5.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001704/0.423, allocations: 0.7644 MB / 0.706 GB, free: 5.445 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.423, allocations: 5.906 kB / 0.7061 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.423, allocations: 3.938 kB / 0.7061 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.423, allocations: 6.797 kB / 0.7061 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.4246, allocations: 247.8 kB / 0.7063 GB, free: 5.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.4259, allocations: 1.588 MB / 0.7079 GB, free: 3.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006357/0.4265, allocations: 94.25 kB / 0.7079 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.4266, allocations: 33.39 kB / 0.708 GB, free: 3.852 MB / 494.1 MB 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.4269, allocations: 205.2 kB / 0.7082 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-05/0.427, allocations: 52.2 kB / 0.7082 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.4294, allocations: 0.9328 MB / 0.7091 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.4294, allocations: 6.375 kB / 0.7091 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4294, allocations: 0.5625 kB / 0.7091 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.4295, allocations: 4.328 kB / 0.7091 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.433, allocations: 1.625 MB / 0.7107 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.433, allocations: 0 / 0.7107 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00075/0.4338, allocations: 150.6 kB / 0.7109 GB, free: 2.492 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004324/0.4342, allocations: 54.5 kB / 0.7109 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.581e-05/0.4343, allocations: 22.05 kB / 0.7109 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.4357, allocations: 1.581 MB / 0.7125 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4357, allocations: 0.5 kB / 0.7125 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.4377, allocations: 0.896 MB / 0.7134 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.438, allocations: 208.9 kB / 0.7136 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.022e-05/0.4381, allocations: 18.42 kB / 0.7136 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005474/0.4387, allocations: 50.58 kB / 0.7136 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.4388, allocations: 46.95 kB / 0.7137 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-05/0.4388, allocations: 22.45 kB / 0.7137 GB, free: 368 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002996/0.4391, allocations: 288.9 kB / 0.714 GB, free: 224 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4391, allocations: 0 / 0.714 GB, free: 224 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.000804/0.4399, allocations: 236.9 kB / 0.7142 GB, free: 156 kB / 494.1 MB 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): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.441, allocations: 0.5006 MB / 0.7147 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002406/0.4434, allocations: 0.7645 MB / 0.7154 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4435, allocations: 0 / 0.7154 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009764/0.4444, allocations: 0.49 MB / 0.7159 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.4449, allocations: 64.05 kB / 0.716 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.447, allocations: 1.206 MB / 0.7171 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.4474, allocations: 0.8767 MB / 0.718 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005451/0.448, allocations: 155.1 kB / 0.7182 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.4482, allocations: 69.66 kB / 0.7182 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.4482, allocations: 0 / 0.7182 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of Templates: time 0.01442/0.4627, allocations: 8.703 MB / 0.7267 GB, free: 10.32 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)