Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.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.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 109 kB / 16.41 MB, free: 6.488 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.001276/0.001276, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.23/1.23, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002052/0.002052, allocations: 286.2 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8811/0.8811, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 95.84 kB / 0.6821 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3634, allocations: 86.97 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP): time 0.004426/0.3678, allocations: 3.736 MB / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00412/0.372, allocations: 3.431 MB / 0.774 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.3722, allocations: 7.938 kB / 0.774 GB, free: 12.73 MB / 0.545 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.0003914/0.3726, allocations: 127 kB / 0.7741 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000888/0.3735, allocations: 461.4 kB / 0.7746 GB, free: 12.15 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006156/0.3741, allocations: 356.2 kB / 0.7749 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000612/0.3747, allocations: 0.7526 MB / 0.7757 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.375, allocations: 197.9 kB / 0.7758 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.3753, allocations: 314.8 kB / 0.7761 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.3757, allocations: 326.6 kB / 0.7765 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.136e-05/0.3758, allocations: 64 kB / 0.7765 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006973/0.3765, allocations: 0.4995 MB / 0.777 GB, free: 9.664 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.3767, allocations: 167.5 kB / 0.7772 GB, free: 9.5 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002609/0.3769, allocations: 322.2 kB / 0.7775 GB, free: 9.184 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.378, allocations: 1.089 MB / 0.7785 GB, free: 8.094 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.378, allocations: 3.938 kB / 0.7785 GB, free: 8.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.213e-06/0.378, allocations: 4 kB / 0.7785 GB, free: 8.086 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.378, allocations: 0 / 0.7785 GB, free: 8.086 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001685/0.3797, allocations: 0.9913 MB / 0.7795 GB, free: 7.043 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.3797, allocations: 12.03 kB / 0.7795 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003277/0.383, allocations: 0.6166 MB / 0.7801 GB, free: 6.414 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.3843, allocations: 0.6235 MB / 0.7807 GB, free: 5.754 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.3844, allocations: 122.7 kB / 0.7808 GB, free: 5.617 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.867e-05/0.3845, allocations: 47.94 kB / 0.7809 GB, free: 5.57 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3859, allocations: 0.6987 MB / 0.7816 GB, free: 4.855 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3859, allocations: 0 / 0.7816 GB, free: 4.855 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.386, allocations: 20 kB / 0.7816 GB, free: 4.836 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.386, allocations: 12 kB / 0.7816 GB, free: 4.824 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001869/0.3879, allocations: 0.761 MB / 0.7823 GB, free: 4.059 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002945/0.3908, allocations: 1.806 MB / 0.7841 GB, free: 2.199 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.3935, allocations: 0.8489 MB / 0.7849 GB, free: 1.344 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008862/0.3944, allocations: 365.9 kB / 0.7853 GB, free: 0.9805 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00169/0.3961, allocations: 1.761 MB / 0.787 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009788/0.3971, allocations: 442.7 kB / 0.7874 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=55): time 1.763e-06/0.3971, allocations: 0 / 0.7874 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55): time 0.006453/0.4036, allocations: 1.62 MB / 0.789 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.4037, allocations: 111.3 kB / 0.7891 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004111/0.4041, allocations: 417.9 kB / 0.7895 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/0.4041, allocations: 37.7 kB / 0.7896 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.4043, allocations: 272.6 kB / 0.7898 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.4045, allocations: 185.3 kB / 0.79 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.4047, allocations: 122.2 kB / 0.7901 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4048, allocations: 362.8 kB / 0.7905 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008131/0.4056, allocations: 309.1 kB / 0.7907 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008992/0.4065, allocations: 445.4 kB / 0.7912 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.4082, allocations: 0.7223 MB / 0.7919 GB, free: 9.648 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4082, allocations: 4 kB / 0.7919 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0035/0.4117, allocations: 1.038 MB / 0.7929 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.4117, allocations: 4 kB / 0.7929 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4118, allocations: 7.938 kB / 0.7929 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007008/0.4125, allocations: 141 kB / 0.793 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.4132, allocations: 163.7 kB / 0.7932 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004637/0.4179, allocations: 2.107 MB / 0.7953 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006923/0.4186, allocations: 95.53 kB / 0.7953 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.4187, allocations: 31.97 kB / 0.7954 GB, free: 5.91 MB / 0.5606 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002773/0.4189, allocations: 213.6 kB / 0.7956 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.419, allocations: 51.34 kB / 0.7956 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.4221, allocations: 1.056 MB / 0.7967 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.4222, allocations: 4 kB / 0.7967 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4222, allocations: 0 / 0.7967 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.4222, allocations: 7.922 kB / 0.7967 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/0.4259, allocations: 1.744 MB / 0.7984 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4259, allocations: 4 kB / 0.7984 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006943/0.4266, allocations: 143.8 kB / 0.7985 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005633/0.4271, allocations: 120.7 kB / 0.7986 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.4272, allocations: 15.98 kB / 0.7986 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/0.4304, allocations: 1.912 MB / 0.8005 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4304, allocations: 7.922 kB / 0.8005 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.4333, allocations: 1.005 MB / 0.8015 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.4335, allocations: 212.1 kB / 0.8017 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.608e-05/0.4336, allocations: 12 kB / 0.8017 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.4342, allocations: 59.92 kB / 0.8018 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-05/0.4343, allocations: 48.44 kB / 0.8018 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.203e-05/0.4344, allocations: 23.98 kB / 0.8018 GB, free: 15 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002994/0.4347, allocations: 299.1 kB / 0.8021 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4347, allocations: 0 / 0.8021 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007154/0.4354, allocations: 235.6 kB / 0.8024 GB, free: 14.49 MB / 0.5762 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): 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/0.4365, allocations: 494.4 kB / 0.8028 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002043/0.4385, allocations: 0.8696 MB / 0.8037 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4385, allocations: 0 / 0.8037 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.4395, allocations: 0.5174 MB / 0.8042 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.44, allocations: 77.56 kB / 0.8043 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.4421, allocations: 1.276 MB / 0.8055 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.4425, allocations: 0.8773 MB / 0.8064 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/0.4428, allocations: 83.31 kB / 0.8064 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.4428, allocations: 0 / 0.8064 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of Templates: time 0.01414/0.457, allocations: 12.76 MB / 0.8189 GB, free: 13.64 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimpleMPP.pipe 2>&1)