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.001068/0.001068, allocations: 114.4 kB / 16.37 MB, free: 6.016 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.001072/0.001072, allocations: 199.1 kB / 17.31 MB, free: 5.613 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.227/1.227, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 292.5 kB / 291.4 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.8914/0.8914, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00255/0.00255, allocations: 101.3 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.141, allocations: 86.98 MB / 0.6816 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004628/0.1456, allocations: 3.736 MB / 0.6853 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004309/0.15, allocations: 3.427 MB / 0.6886 GB, free: 220 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002349/0.1502, allocations: 11.94 kB / 0.6886 GB, free: 208 kB / 494.1 MB [/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.0004993/0.1507, allocations: 122.9 kB / 0.6887 GB, free: 84 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2429/0.3936, allocations: 450.4 kB / 0.6892 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008346/0.3945, allocations: 355.9 kB / 0.6895 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009142/0.3954, allocations: 0.7528 MB / 0.6902 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.3957, allocations: 197.8 kB / 0.6904 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000477/0.3962, allocations: 305.5 kB / 0.6907 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000526/0.3968, allocations: 317.3 kB / 0.691 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.3969, allocations: 65.38 kB / 0.6911 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009228/0.3979, allocations: 0.4957 MB / 0.6916 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.398, allocations: 169.4 kB / 0.6917 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003437/0.3984, allocations: 328 kB / 0.692 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001424/0.3998, allocations: 1.087 MB / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3998, allocations: 0 / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3999, allocations: 0.875 kB / 0.6931 GB, free: 12.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.367e-05/0.3999, allocations: 0.8125 kB / 0.6931 GB, free: 12.27 MB / 494.1 MB 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.001994/0.4019, allocations: 0.9903 MB / 0.6941 GB, free: 11.64 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.4019, allocations: 11.5 kB / 0.6941 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003539/0.4055, allocations: 0.6114 MB / 0.6947 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.4068, allocations: 0.6353 MB / 0.6953 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.872e-05/0.4069, allocations: 122.3 kB / 0.6954 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.582e-05/0.407, allocations: 46.44 kB / 0.6955 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.4085, allocations: 0.7019 MB / 0.6961 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4085, allocations: 0 / 0.6961 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.4086, allocations: 24.06 kB / 0.6962 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4086, allocations: 11.94 kB / 0.6962 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.4105, allocations: 0.7575 MB / 0.6969 GB, free: 10.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003276/0.4138, allocations: 1.793 MB / 0.6987 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.4165, allocations: 0.8446 MB / 0.6995 GB, free: 9.711 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008901/0.4174, allocations: 354.4 kB / 0.6998 GB, free: 9.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00135/0.4188, allocations: 1.771 MB / 0.7016 GB, free: 7.605 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.4198, allocations: 435.1 kB / 0.702 GB, free: 7.449 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 2.174e-06/0.4198, allocations: 0 / 0.702 GB, free: 7.449 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002785/0.4226, allocations: 1.001 MB / 0.703 GB, free: 7.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.4227, allocations: 110.5 kB / 0.7031 GB, free: 6.988 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.4231, allocations: 431.2 kB / 0.7035 GB, free: 6.781 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.4232, allocations: 36.52 kB / 0.7035 GB, free: 6.742 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.4234, allocations: 280.4 kB / 0.7038 GB, free: 6.512 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.4235, allocations: 179.2 kB / 0.7039 GB, free: 6.375 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.4237, allocations: 124.7 kB / 0.7041 GB, free: 6.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.655e-05/0.4238, allocations: 366.7 kB / 0.7044 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008229/0.4246, allocations: 302.5 kB / 0.7047 GB, free: 5.887 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008926/0.4255, allocations: 436.8 kB / 0.7051 GB, free: 5.648 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.4272, allocations: 0.6984 MB / 0.7058 GB, free: 5.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4272, allocations: 1.125 kB / 0.7058 GB, free: 5.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001987/0.4292, allocations: 0.814 MB / 0.7066 GB, free: 5.035 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.4292, allocations: 8.703 kB / 0.7066 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.4292, allocations: 7.125 kB / 0.7066 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.4292, allocations: 5.719 kB / 0.7066 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008935/0.4301, allocations: 171.3 kB / 0.7068 GB, free: 5.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.4302, allocations: 10.75 kB / 0.7068 GB, free: 5.027 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006684/0.4308, allocations: 105 kB / 0.7069 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.4309, allocations: 30.39 kB / 0.7069 GB, free: 4.98 MB / 494.1 MB 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.0002508/0.4312, allocations: 206.8 kB / 0.7071 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.4313, allocations: 52.44 kB / 0.7072 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.4334, allocations: 0.8893 MB / 0.708 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.4335, allocations: 6.688 kB / 0.708 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.4335, allocations: 3.938 kB / 0.708 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.4335, allocations: 7.219 kB / 0.7081 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002693/0.4362, allocations: 1.58 MB / 0.7096 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.4362, allocations: 1.719 kB / 0.7096 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.437, allocations: 149.2 kB / 0.7097 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.437, allocations: 6.469 kB / 0.7097 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.4371, allocations: 20.84 kB / 0.7098 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4371, allocations: 3.312 kB / 0.7098 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4371, allocations: 4 kB / 0.7098 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.4388, allocations: 0.8562 MB / 0.7106 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.439, allocations: 209.3 kB / 0.7108 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.542e-05/0.4391, allocations: 20.8 kB / 0.7108 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.4397, allocations: 55.3 kB / 0.7109 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.165e-05/0.4398, allocations: 42.72 kB / 0.7109 GB, free: 3.059 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-05/0.4399, allocations: 23.48 kB / 0.7109 GB, free: 3.055 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.4402, allocations: 302.3 kB / 0.7112 GB, free: 2.906 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4402, allocations: 1.406 kB / 0.7112 GB, free: 2.906 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006993/0.4409, allocations: 225.4 kB / 0.7114 GB, free: 2.848 MB / 494.1 MB 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.001008/0.4419, allocations: 0.4996 MB / 0.7119 GB, free: 2.641 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.4436, allocations: 0.7225 MB / 0.7126 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4436, allocations: 0 / 0.7126 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008265/0.4445, allocations: 391.8 kB / 0.713 GB, free: 2.309 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.4449, allocations: 69.05 kB / 0.7131 GB, free: 2.273 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.4468, allocations: 1.208 MB / 0.7143 GB, free: 1.672 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.4472, allocations: 0.8872 MB / 0.7151 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.4477, allocations: 152.3 kB / 0.7153 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002656/0.448, allocations: 74.61 kB / 0.7153 GB, free: 0.875 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.448, allocations: 0 / 0.7153 GB, free: 0.875 MB / 494.1 MB Notification: Performance of Templates: time 0.01346/0.4615, allocations: 8.592 MB / 0.7237 GB, free: 13.21 MB / 0.4981 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)