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.004165/0.004165, allocations: 101 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.001012/0.001012, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.203 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002393/0.002392, allocations: 275 kB / 290.8 MB, free: 1.809 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9379/0.9379, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 95.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1569, allocations: 86.97 MB / 0.7663 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex): time 0.004586/0.1616, allocations: 3.699 MB / 0.77 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004288/0.1659, allocations: 3.438 MB / 0.7733 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.1661, allocations: 11.94 kB / 0.7733 GB, free: 1.281 MB / 0.5606 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.0004027/0.1665, allocations: 118.9 kB / 0.7734 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0008484/0.1673, allocations: 461.5 kB / 0.7739 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006413/0.168, allocations: 368 kB / 0.7742 GB, free: 364 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2958/0.4638, allocations: 0.7611 MB / 0.775 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.4642, allocations: 196.2 kB / 0.7752 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.4646, allocations: 320.4 kB / 0.7755 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004369/0.4651, allocations: 329.8 kB / 0.7758 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.4652, allocations: 65.91 kB / 0.7758 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000918/0.4661, allocations: 0.4906 MB / 0.7763 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.4663, allocations: 171 kB / 0.7765 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.4665, allocations: 324 kB / 0.7768 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.4677, allocations: 1.092 MB / 0.7779 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4677, allocations: 0.5625 kB / 0.7779 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4677, allocations: 0 / 0.7779 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.4677, allocations: 0.9375 kB / 0.7779 GB, free: 8.5 MB / 0.5606 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.001765/0.4695, allocations: 0.9936 MB / 0.7788 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.4696, allocations: 13.12 kB / 0.7789 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003065/0.4726, allocations: 0.5644 MB / 0.7794 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.4738, allocations: 0.62 MB / 0.78 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.86e-05/0.4739, allocations: 119.5 kB / 0.7801 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.461e-05/0.474, allocations: 44.56 kB / 0.7802 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.4753, allocations: 0.6674 MB / 0.7808 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4753, allocations: 4 kB / 0.7808 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.4754, allocations: 17.19 kB / 0.7808 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.4754, allocations: 12.91 kB / 0.7808 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.477, allocations: 0.6908 MB / 0.7815 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003019/0.48, allocations: 1.775 MB / 0.7833 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.4826, allocations: 0.8028 MB / 0.784 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007227/0.4834, allocations: 327.5 kB / 0.7844 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/0.4847, allocations: 1.766 MB / 0.7861 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008391/0.4855, allocations: 393.3 kB / 0.7865 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=53): time 2.003e-06/0.4855, allocations: 0 / 0.7865 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=53): time 0.002263/0.4878, allocations: 0.9276 MB / 0.7874 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.4879, allocations: 111.4 kB / 0.7875 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/0.4883, allocations: 429 kB / 0.7879 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.4883, allocations: 36.61 kB / 0.7879 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.4886, allocations: 275.9 kB / 0.7882 GB, free: 19.36 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.4887, allocations: 174.2 kB / 0.7883 GB, free: 19.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.4889, allocations: 118.5 kB / 0.7884 GB, free: 19.17 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4891, allocations: 362.2 kB / 0.7888 GB, free: 18.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006745/0.4897, allocations: 273.7 kB / 0.7891 GB, free: 18.75 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007192/0.4905, allocations: 416.8 kB / 0.7895 GB, free: 18.51 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.4918, allocations: 0.6548 MB / 0.7901 GB, free: 18.18 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4919, allocations: 1.375 kB / 0.7901 GB, free: 18.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00176/0.4936, allocations: 0.7582 MB / 0.7908 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.4937, allocations: 15.53 kB / 0.7908 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.4937, allocations: 2.688 kB / 0.7909 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.4937, allocations: 7.453 kB / 0.7909 GB, free: 17.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.4953, allocations: 248.1 kB / 0.7911 GB, free: 17.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.4971, allocations: 1.582 MB / 0.7926 GB, free: 16.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.4978, allocations: 95.08 kB / 0.7927 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.892e-05/0.4978, allocations: 28.97 kB / 0.7928 GB, free: 16.31 MB / 0.5762 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): 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.0003029/0.4982, allocations: 210 kB / 0.793 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.4983, allocations: 57.28 kB / 0.793 GB, free: 16.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/0.5007, allocations: 0.9265 MB / 0.7939 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5007, allocations: 6.594 kB / 0.7939 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5007, allocations: 0.5625 kB / 0.7939 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.5008, allocations: 9.734 kB / 0.7939 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.5039, allocations: 1.615 MB / 0.7955 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5039, allocations: 0 / 0.7955 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007128/0.5046, allocations: 150.7 kB / 0.7957 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.5051, allocations: 62.61 kB / 0.7957 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.5051, allocations: 19.19 kB / 0.7957 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.5066, allocations: 1.576 MB / 0.7973 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5066, allocations: 4.312 kB / 0.7973 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.5088, allocations: 0.9027 MB / 0.7982 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.5091, allocations: 208.2 kB / 0.7984 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.102e-05/0.5092, allocations: 17.75 kB / 0.7984 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005887/0.5098, allocations: 49.67 kB / 0.7984 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5099, allocations: 46.58 kB / 0.7985 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.5099, allocations: 26.52 kB / 0.7985 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003297/0.5103, allocations: 294 kB / 0.7988 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5103, allocations: 0 / 0.7988 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00081/0.5111, allocations: 232.1 kB / 0.799 GB, free: 12.63 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001127/0.5122, allocations: 0.4925 MB / 0.7995 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002688/0.5149, allocations: 0.7589 MB / 0.8002 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5149, allocations: 0.5 kB / 0.8002 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.5161, allocations: 0.4919 MB / 0.8007 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.5167, allocations: 71.78 kB / 0.8008 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.5188, allocations: 1.208 MB / 0.8019 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.5193, allocations: 0.8792 MB / 0.8028 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000585/0.5199, allocations: 156.3 kB / 0.803 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.5201, allocations: 71.86 kB / 0.803 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/0.5202, allocations: 0 / 0.803 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of Templates: time 0.01503/0.5352, allocations: 8.811 MB / 0.8116 GB, free: 8.379 MB / 0.5762 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplex.pipe 2>&1)