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.001054/0.001059, allocations: 108.1 kB / 16.41 MB, free: 6.504 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.001122/0.001122, allocations: 187 kB / 17.34 MB, free: 5.742 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.269/1.269, allocations: 222.9 MB / 241 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.002102/0.002102, allocations: 290.9 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9055/0.9055, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 91.86 kB / 0.6821 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4023, allocations: 86.97 MB / 0.767 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004889/0.4072, allocations: 3.749 MB / 0.7707 GB, free: 212 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004747/0.412, allocations: 3.423 MB / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003467/0.4123, allocations: 7.938 kB / 0.774 GB, free: 12.76 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.0004624/0.4128, allocations: 123 kB / 0.7741 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.4139, allocations: 465.4 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007721/0.4147, allocations: 359.1 kB / 0.7749 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007868/0.4155, allocations: 0.7448 MB / 0.7757 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.4158, allocations: 201.9 kB / 0.7758 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.4162, allocations: 310.9 kB / 0.7761 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004582/0.4167, allocations: 326.6 kB / 0.7765 GB, free: 10.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.599e-05/0.4168, allocations: 64 kB / 0.7765 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008487/0.4176, allocations: 0.5034 MB / 0.777 GB, free: 9.699 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.4178, allocations: 167.4 kB / 0.7772 GB, free: 9.535 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.4181, allocations: 314.4 kB / 0.7775 GB, free: 9.227 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.4192, allocations: 1.093 MB / 0.7785 GB, free: 8.133 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4192, allocations: 0 / 0.7785 GB, free: 8.133 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4193, allocations: 0 / 0.7785 GB, free: 8.133 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.4193, allocations: 4 kB / 0.7785 GB, free: 8.129 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.001754/0.421, allocations: 0.9758 MB / 0.7795 GB, free: 7.102 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.4211, allocations: 15.97 kB / 0.7795 GB, free: 7.086 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003401/0.4245, allocations: 0.6244 MB / 0.7801 GB, free: 6.461 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.4258, allocations: 0.6273 MB / 0.7807 GB, free: 5.797 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.4259, allocations: 118.7 kB / 0.7808 GB, free: 5.664 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-05/0.426, allocations: 47.94 kB / 0.7809 GB, free: 5.617 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.4275, allocations: 0.6909 MB / 0.7816 GB, free: 4.91 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.4275, allocations: 4 kB / 0.7816 GB, free: 4.906 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/0.4276, allocations: 27.98 kB / 0.7816 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4276, allocations: 8 kB / 0.7816 GB, free: 4.871 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.4295, allocations: 0.7571 MB / 0.7823 GB, free: 4.109 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.4327, allocations: 1.817 MB / 0.7841 GB, free: 2.238 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002732/0.4355, allocations: 0.8425 MB / 0.7849 GB, free: 1.387 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000904/0.4364, allocations: 353.9 kB / 0.7853 GB, free: 1.039 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001694/0.4381, allocations: 1.769 MB / 0.787 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.4391, allocations: 429 kB / 0.7874 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.795e-06/0.4392, allocations: 3.938 kB / 0.7874 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002754/0.4419, allocations: 1.006 MB / 0.7884 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.442, allocations: 111.2 kB / 0.7885 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.4425, allocations: 431.1 kB / 0.7889 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.014e-05/0.4425, allocations: 37.69 kB / 0.7889 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.4428, allocations: 276.6 kB / 0.7892 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.4429, allocations: 177.4 kB / 0.7894 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.4431, allocations: 122.1 kB / 0.7895 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4433, allocations: 366.8 kB / 0.7898 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008294/0.4441, allocations: 300.9 kB / 0.7901 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009204/0.4451, allocations: 440.5 kB / 0.7906 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.4467, allocations: 0.6984 MB / 0.7912 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.4468, allocations: 4 kB / 0.7912 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002046/0.4488, allocations: 0.8183 MB / 0.792 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4488, allocations: 10.5 kB / 0.7921 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.4489, allocations: 4 kB / 0.7921 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.4489, allocations: 4 kB / 0.7921 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008695/0.4498, allocations: 179.9 kB / 0.7922 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.4498, allocations: 11.88 kB / 0.7922 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006683/0.4505, allocations: 99.36 kB / 0.7923 GB, free: 9.238 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.4505, allocations: 31.97 kB / 0.7924 GB, free: 9.207 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.0003016/0.4508, allocations: 205.6 kB / 0.7926 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.451, allocations: 51.44 kB / 0.7926 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/0.4531, allocations: 0.8871 MB / 0.7935 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4532, allocations: 8 kB / 0.7935 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4532, allocations: 3.938 kB / 0.7935 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4532, allocations: 7.922 kB / 0.7935 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.4559, allocations: 1.583 MB / 0.795 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4559, allocations: 3.938 kB / 0.795 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.4567, allocations: 151.8 kB / 0.7952 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-06/0.4567, allocations: 7.875 kB / 0.7952 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.4568, allocations: 19.98 kB / 0.7952 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4568, allocations: 0 / 0.7952 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4568, allocations: 0 / 0.7952 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.4587, allocations: 0.8519 MB / 0.796 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.459, allocations: 208.2 kB / 0.7962 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.4591, allocations: 15.94 kB / 0.7963 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.4597, allocations: 55.94 kB / 0.7963 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.4598, allocations: 40.5 kB / 0.7964 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/0.4599, allocations: 27.98 kB / 0.7964 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003368/0.4602, allocations: 299.1 kB / 0.7967 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4602, allocations: 0 / 0.7967 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006976/0.4609, allocations: 223.6 kB / 0.7969 GB, free: 4.477 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.001158/0.4621, allocations: 0.5016 MB / 0.7974 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001981/0.4641, allocations: 0.73 MB / 0.7981 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4641, allocations: 0 / 0.7981 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008843/0.465, allocations: 387.4 kB / 0.7985 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.4655, allocations: 65.7 kB / 0.7985 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.4679, allocations: 1.252 MB / 0.7997 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.4683, allocations: 0.8772 MB / 0.8006 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.4687, allocations: 83.38 kB / 0.8007 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/0.4687, allocations: 4 kB / 0.8007 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of Templates: time 0.01451/0.4832, allocations: 10.2 MB / 0.8106 GB, free: 6.496 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)