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.001123/0.001123, allocations: 103.3 kB / 15.98 MB, free: 5.895 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.001144/0.001144, allocations: 190.1 kB / 16.91 MB, free: 5.746 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.173/1.173, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001968/0.001968, allocations: 301.8 kB / 291 MB, free: 14.63 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8413/0.8413, allocations: 169.2 MB / 0.4985 GB, free: 4.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 86.56 kB / 0.5953 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1484, allocations: 86.98 MB / 0.6803 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.004713/0.1532, allocations: 3.772 MB / 0.6839 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004378/0.1576, allocations: 3.379 MB / 0.6872 GB, free: 1.375 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.1579, allocations: 11.94 kB / 0.6873 GB, free: 1.363 MB / 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.0004391/0.1584, allocations: 99.31 kB / 0.6874 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000987/0.1594, allocations: 398.2 kB / 0.6877 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006588/0.16, allocations: 326.6 kB / 0.688 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.2387/0.3987, allocations: 0.7436 MB / 0.6888 GB, free: 12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003984/0.3992, allocations: 193.9 kB / 0.689 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004696/0.3996, allocations: 311.1 kB / 0.6893 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.4001, allocations: 321.2 kB / 0.6896 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.883e-05/0.4002, allocations: 68.88 kB / 0.6896 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009714/0.4012, allocations: 0.4997 MB / 0.6901 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.4014, allocations: 168.1 kB / 0.6903 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.4016, allocations: 330.8 kB / 0.6906 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.4029, allocations: 0.817 MB / 0.6914 GB, free: 11.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4029, allocations: 1.484 kB / 0.6914 GB, free: 11.72 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4029, allocations: 0 / 0.6914 GB, free: 11.72 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.4029, allocations: 0 / 0.6914 GB, free: 11.72 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.001809/0.4047, allocations: 0.9895 MB / 0.6924 GB, free: 11.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.4048, allocations: 10.12 kB / 0.6924 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003498/0.4083, allocations: 0.6167 MB / 0.693 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.4096, allocations: 0.6339 MB / 0.6936 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.4097, allocations: 118.9 kB / 0.6937 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.095e-05/0.4098, allocations: 48.91 kB / 0.6937 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.4114, allocations: 0.6949 MB / 0.6944 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4114, allocations: 0 / 0.6944 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.4115, allocations: 19.94 kB / 0.6944 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.4115, allocations: 11.25 kB / 0.6945 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.4134, allocations: 0.7599 MB / 0.6952 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.4167, allocations: 1.802 MB / 0.697 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002694/0.4194, allocations: 0.8477 MB / 0.6978 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008696/0.4203, allocations: 353.7 kB / 0.6981 GB, free: 9.707 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001353/0.4217, allocations: 1.763 MB / 0.6998 GB, free: 7.723 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.4228, allocations: 432.5 kB / 0.7003 GB, free: 7.566 MB / 494.1 MB Notification: Performance of pre-optimization done (n=53): time 2.505e-06/0.4228, allocations: 0 / 0.7003 GB, free: 7.566 MB / 494.1 MB Notification: Performance of matching and sorting (n=53): time 0.002757/0.4255, allocations: 1.01 MB / 0.7012 GB, free: 7.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.4256, allocations: 108.8 kB / 0.7013 GB, free: 7.098 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005137/0.4261, allocations: 427.7 kB / 0.7018 GB, free: 6.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.993e-05/0.4262, allocations: 36.8 kB / 0.7018 GB, free: 6.855 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.4263, allocations: 277 kB / 0.7021 GB, free: 6.629 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.4265, allocations: 182.7 kB / 0.7022 GB, free: 6.488 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.4267, allocations: 125.3 kB / 0.7023 GB, free: 6.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.4268, allocations: 361.8 kB / 0.7027 GB, free: 6.094 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/0.4276, allocations: 302.1 kB / 0.703 GB, free: 6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008796/0.4285, allocations: 443.2 kB / 0.7034 GB, free: 5.762 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.4301, allocations: 0.7031 MB / 0.7041 GB, free: 5.426 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.4302, allocations: 1.594 kB / 0.7041 GB, free: 5.426 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002092/0.4323, allocations: 0.8135 MB / 0.7049 GB, free: 5.152 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.4323, allocations: 6.75 kB / 0.7049 GB, free: 5.152 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4323, allocations: 3.125 kB / 0.7049 GB, free: 5.152 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/0.4323, allocations: 6.766 kB / 0.7049 GB, free: 5.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009014/0.4332, allocations: 176.3 kB / 0.7051 GB, free: 5.145 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.4333, allocations: 8.578 kB / 0.7051 GB, free: 5.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007048/0.434, allocations: 108 kB / 0.7052 GB, free: 5.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.4341, allocations: 33 kB / 0.7052 GB, free: 5.094 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.0003428/0.4344, allocations: 201.5 kB / 0.7054 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.4345, allocations: 52.34 kB / 0.7055 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002268/0.4368, allocations: 0.8936 MB / 0.7063 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.567e-06/0.4368, allocations: 11.17 kB / 0.7063 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.4368, allocations: 1.5 kB / 0.7063 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4369, allocations: 6.891 kB / 0.7063 GB, free: 4.562 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.4397, allocations: 1.583 MB / 0.7079 GB, free: 3.777 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4397, allocations: 0.6562 kB / 0.7079 GB, free: 3.777 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000812/0.4405, allocations: 149.8 kB / 0.708 GB, free: 3.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.4405, allocations: 6.031 kB / 0.708 GB, free: 3.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.4406, allocations: 22.95 kB / 0.7081 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4406, allocations: 2.844 kB / 0.7081 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4406, allocations: 0 / 0.7081 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.4425, allocations: 0.8554 MB / 0.7089 GB, free: 3.371 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.4428, allocations: 205.1 kB / 0.7091 GB, free: 3.207 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.4429, allocations: 16.47 kB / 0.7091 GB, free: 3.195 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006267/0.4435, allocations: 62.2 kB / 0.7092 GB, free: 3.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.4436, allocations: 41.34 kB / 0.7092 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.4437, allocations: 27.89 kB / 0.7092 GB, free: 3.164 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.4441, allocations: 299.4 kB / 0.7095 GB, free: 3.016 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4441, allocations: 0 / 0.7095 GB, free: 3.016 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008012/0.4449, allocations: 231.4 kB / 0.7097 GB, free: 2.953 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.001093/0.446, allocations: 496.6 kB / 0.7102 GB, free: 2.754 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002144/0.4482, allocations: 0.777 MB / 0.711 GB, free: 2.535 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4482, allocations: 448 / 0.711 GB, free: 2.535 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000838/0.449, allocations: 383.4 kB / 0.7113 GB, free: 2.434 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.4495, allocations: 69.92 kB / 0.7114 GB, free: 2.398 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.4516, allocations: 1.505 MB / 0.7129 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.4519, allocations: 0.8841 MB / 0.7137 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/0.4523, allocations: 78.83 kB / 0.7138 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4523, allocations: 0 / 0.7138 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of Templates: time 0.01377/0.4661, allocations: 10.13 MB / 0.7237 GB, free: 12.52 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)