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.004824/0.004824, allocations: 102 kB / 15.73 MB, free: 6.039 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.001059/0.001059, allocations: 193 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.299/1.299, 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.002111/0.002111, allocations: 288.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9694/0.9694, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 91.86 kB / 0.6814 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4187, allocations: 86.98 MB / 0.7664 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005095/0.4238, allocations: 3.737 MB / 0.77 GB, free: 228 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00459/0.4284, allocations: 3.427 MB / 0.7734 GB, free: 12.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.4287, allocations: 7.938 kB / 0.7734 GB, free: 12.77 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.0005379/0.4292, allocations: 126.9 kB / 0.7735 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009597/0.4302, allocations: 457.4 kB / 0.7739 GB, free: 12.2 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006832/0.4309, allocations: 358 kB / 0.7743 GB, free: 11.85 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006798/0.4316, allocations: 0.7526 MB / 0.775 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002715/0.4319, allocations: 197.9 kB / 0.7752 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.4322, allocations: 306.9 kB / 0.7755 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004028/0.4326, allocations: 322.6 kB / 0.7758 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.667e-05/0.4327, allocations: 68 kB / 0.7758 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007684/0.4335, allocations: 0.4956 MB / 0.7763 GB, free: 9.719 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.4337, allocations: 175.4 kB / 0.7765 GB, free: 9.547 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.434, allocations: 322.3 kB / 0.7768 GB, free: 9.23 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.4353, allocations: 1.089 MB / 0.7779 GB, free: 8.141 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.4353, allocations: 3.938 kB / 0.7779 GB, free: 8.137 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4353, allocations: 0 / 0.7779 GB, free: 8.137 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.4354, allocations: 0 / 0.7779 GB, free: 8.137 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.001748/0.4371, allocations: 0.9797 MB / 0.7788 GB, free: 7.105 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.4372, allocations: 8.031 kB / 0.7788 GB, free: 7.098 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003543/0.4407, allocations: 0.6283 MB / 0.7794 GB, free: 6.469 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.4421, allocations: 0.6234 MB / 0.7801 GB, free: 5.809 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.4422, allocations: 122.7 kB / 0.7802 GB, free: 5.672 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-05/0.4423, allocations: 47.94 kB / 0.7802 GB, free: 5.625 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.4439, allocations: 0.7026 MB / 0.7809 GB, free: 4.906 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.4439, allocations: 0 / 0.7809 GB, free: 4.906 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.138e-05/0.444, allocations: 16 kB / 0.7809 GB, free: 4.891 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.444, allocations: 12 kB / 0.7809 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.446, allocations: 0.7533 MB / 0.7817 GB, free: 4.121 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/0.4494, allocations: 1.813 MB / 0.7834 GB, free: 2.254 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/0.4522, allocations: 0.8386 MB / 0.7843 GB, free: 1.406 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009434/0.4532, allocations: 357.9 kB / 0.7846 GB, free: 1.055 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001704/0.4549, allocations: 1.765 MB / 0.7863 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.456, allocations: 433 kB / 0.7867 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.294e-06/0.456, allocations: 0 / 0.7867 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002912/0.4589, allocations: 1.01 MB / 0.7877 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.459, allocations: 111.2 kB / 0.7878 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004596/0.4594, allocations: 431.1 kB / 0.7882 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.4595, allocations: 37.7 kB / 0.7883 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.4597, allocations: 284.5 kB / 0.7885 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.4598, allocations: 177.4 kB / 0.7887 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.4601, allocations: 122.1 kB / 0.7888 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4602, allocations: 366.8 kB / 0.7892 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000886/0.4611, allocations: 300.9 kB / 0.7895 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009645/0.4621, allocations: 432.5 kB / 0.7899 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.4639, allocations: 0.7062 MB / 0.7906 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4639, allocations: 0 / 0.7906 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002114/0.466, allocations: 0.8105 MB / 0.7914 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.466, allocations: 8 kB / 0.7914 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.466, allocations: 7.984 kB / 0.7914 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.4661, allocations: 11.94 kB / 0.7914 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000908/0.467, allocations: 179.9 kB / 0.7916 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.467, allocations: 7.938 kB / 0.7916 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.4677, allocations: 99.36 kB / 0.7917 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.958e-05/0.4678, allocations: 27.98 kB / 0.7917 GB, free: 9.223 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.0002766/0.468, allocations: 221 kB / 0.7919 GB, free: 9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.4681, allocations: 47.44 kB / 0.7919 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/0.4705, allocations: 0.8909 MB / 0.7928 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.4705, allocations: 4 kB / 0.7928 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4705, allocations: 3.938 kB / 0.7928 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4705, allocations: 0 / 0.7928 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.4735, allocations: 1.587 MB / 0.7944 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4735, allocations: 0 / 0.7944 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008139/0.4743, allocations: 155.8 kB / 0.7945 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.4743, allocations: 3.938 kB / 0.7945 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.847e-05/0.4744, allocations: 19.98 kB / 0.7945 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4744, allocations: 0 / 0.7945 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4744, allocations: 8 kB / 0.7946 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.4763, allocations: 0.8519 MB / 0.7954 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.4766, allocations: 204.2 kB / 0.7956 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.611e-05/0.4767, allocations: 15.92 kB / 0.7956 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.4774, allocations: 59.94 kB / 0.7957 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.09e-05/0.4775, allocations: 44.38 kB / 0.7957 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.4775, allocations: 23.98 kB / 0.7957 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003159/0.4779, allocations: 303.1 kB / 0.796 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4779, allocations: 0 / 0.796 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006632/0.4785, allocations: 223.6 kB / 0.7962 GB, free: 4.48 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.001075/0.4796, allocations: 0.4908 MB / 0.7967 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001948/0.4816, allocations: 0.73 MB / 0.7974 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4816, allocations: 0 / 0.7974 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009201/0.4825, allocations: 387.4 kB / 0.7978 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.483, allocations: 73.81 kB / 0.7979 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.4852, allocations: 1.215 MB / 0.799 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.4856, allocations: 0.8734 MB / 0.7999 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005983/0.4862, allocations: 152.5 kB / 0.8 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.4865, allocations: 75.38 kB / 0.8001 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of SimCode: time 3.61e-07/0.4865, allocations: 0 / 0.8001 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of Templates: time 0.01441/0.5009, allocations: 8.837 MB / 0.8087 GB, free: 7.801 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)