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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004136/0.004136, allocations: 106.1 kB / 15.73 MB, free: 6.047 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.001017/0.001017, allocations: 196.6 kB / 16.67 MB, free: 5.961 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.266/1.266, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 281.9 kB / 290.8 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.9317/0.9317, allocations: 169.3 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 95.86 kB / 0.6814 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4016, allocations: 86.98 MB / 0.7664 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004947/0.4066, allocations: 3.741 MB / 0.77 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005264/0.4119, allocations: 3.423 MB / 0.7733 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004847/0.4124, allocations: 11.94 kB / 0.7734 GB, free: 12.7 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.0005842/0.413, allocations: 115 kB / 0.7735 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001128/0.4142, allocations: 465.4 kB / 0.7739 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.4149, allocations: 354.4 kB / 0.7742 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007253/0.4156, allocations: 0.7565 MB / 0.775 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002922/0.4159, allocations: 197.9 kB / 0.7752 GB, free: 10.83 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.4163, allocations: 302.9 kB / 0.7755 GB, free: 10.53 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004242/0.4167, allocations: 334.6 kB / 0.7758 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.4169, allocations: 64 kB / 0.7758 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008114/0.4177, allocations: 0.4956 MB / 0.7763 GB, free: 9.645 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.4178, allocations: 163.4 kB / 0.7765 GB, free: 9.484 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.4181, allocations: 322.4 kB / 0.7768 GB, free: 9.168 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.4193, allocations: 1.085 MB / 0.7779 GB, free: 8.082 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4193, allocations: 0 / 0.7779 GB, free: 8.082 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4193, allocations: 0 / 0.7779 GB, free: 8.082 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.4193, allocations: 0 / 0.7779 GB, free: 8.082 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001803/0.4211, allocations: 0.9953 MB / 0.7788 GB, free: 7.035 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.4211, allocations: 16.03 kB / 0.7788 GB, free: 7.02 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003519/0.4247, allocations: 0.6127 MB / 0.7794 GB, free: 6.406 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.426, allocations: 0.635 MB / 0.7801 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.4262, allocations: 118.7 kB / 0.7802 GB, free: 5.602 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.4263, allocations: 55.94 kB / 0.7802 GB, free: 5.547 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.4278, allocations: 0.6909 MB / 0.7809 GB, free: 4.84 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.4279, allocations: 0 / 0.7809 GB, free: 4.84 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.038e-05/0.4279, allocations: 20 kB / 0.7809 GB, free: 4.82 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.428, allocations: 12 kB / 0.7809 GB, free: 4.809 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/0.4299, allocations: 0.761 MB / 0.7817 GB, free: 4.043 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.4333, allocations: 1.805 MB / 0.7834 GB, free: 2.184 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.4362, allocations: 0.8497 MB / 0.7843 GB, free: 1.328 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000948/0.4372, allocations: 353.9 kB / 0.7846 GB, free: 0.9805 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001784/0.439, allocations: 1.761 MB / 0.7863 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.4401, allocations: 433 kB / 0.7867 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.705e-06/0.4401, allocations: 7.938 kB / 0.7867 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002927/0.443, allocations: 1.002 MB / 0.7877 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.4431, allocations: 115.2 kB / 0.7878 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.4436, allocations: 431.1 kB / 0.7882 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.4437, allocations: 33.7 kB / 0.7883 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.4439, allocations: 276.6 kB / 0.7885 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.444, allocations: 185.4 kB / 0.7887 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.4443, allocations: 122.1 kB / 0.7888 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.4444, allocations: 358.8 kB / 0.7892 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008727/0.4453, allocations: 304.9 kB / 0.7895 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009694/0.4463, allocations: 436.5 kB / 0.7899 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.4481, allocations: 0.7062 MB / 0.7906 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4481, allocations: 0 / 0.7906 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002158/0.4503, allocations: 0.8144 MB / 0.7914 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.4503, allocations: 10.34 kB / 0.7914 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4503, allocations: 4 kB / 0.7914 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.4504, allocations: 8.219 kB / 0.7914 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/0.4513, allocations: 171.7 kB / 0.7916 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.4513, allocations: 19.86 kB / 0.7916 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007143/0.452, allocations: 106.1 kB / 0.7917 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-05/0.4521, allocations: 27.97 kB / 0.7917 GB, free: 9.148 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): 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.0003085/0.4524, allocations: 205.6 kB / 0.7919 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.4525, allocations: 47.44 kB / 0.7919 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002295/0.4548, allocations: 0.8948 MB / 0.7928 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.4548, allocations: 8 kB / 0.7928 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4549, allocations: 7.938 kB / 0.7928 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.4549, allocations: 3.984 kB / 0.7928 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.4577, allocations: 1.579 MB / 0.7944 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4578, allocations: 7.938 kB / 0.7944 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.4586, allocations: 147.8 kB / 0.7945 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.4586, allocations: 7.938 kB / 0.7945 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.026e-05/0.4586, allocations: 19.97 kB / 0.7946 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.4586, allocations: 4 kB / 0.7946 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4587, allocations: 0 / 0.7946 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.4606, allocations: 0.8558 MB / 0.7954 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.4608, allocations: 204.2 kB / 0.7956 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.671e-05/0.461, allocations: 15.94 kB / 0.7956 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006086/0.4616, allocations: 59.92 kB / 0.7957 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.647e-05/0.4617, allocations: 36.52 kB / 0.7957 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.4617, allocations: 27.97 kB / 0.7957 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003395/0.4621, allocations: 295.1 kB / 0.796 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4621, allocations: 0 / 0.796 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007366/0.4628, allocations: 235.6 kB / 0.7962 GB, free: 4.406 MB / 0.5606 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.001174/0.464, allocations: 492.2 kB / 0.7967 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001946/0.466, allocations: 0.73 MB / 0.7974 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.466, allocations: 4 kB / 0.7974 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009214/0.4669, allocations: 383.4 kB / 0.7978 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005109/0.4674, allocations: 75.75 kB / 0.7978 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.4696, allocations: 1.223 MB / 0.799 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.4701, allocations: 0.8773 MB / 0.7999 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006047/0.4707, allocations: 152.4 kB / 0.8 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.4709, allocations: 71.39 kB / 0.8001 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.4709, allocations: 0 / 0.8001 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of Templates: time 0.01465/0.4856, allocations: 8.696 MB / 0.8086 GB, free: 7.867 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)