Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001312, allocations: 108.6 kB / 16.41 MB, free: 6.465 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.001282/0.001282, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 293.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8849/0.8849, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 91.86 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3939, allocations: 86.98 MB / 0.767 GB, free: 4.109 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004663/0.3986, allocations: 3.788 MB / 0.7707 GB, free: 312 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004417/0.403, allocations: 3.45 MB / 0.7741 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.4033, allocations: 15.88 kB / 0.7741 GB, free: 12.82 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.0004405/0.4038, allocations: 119 kB / 0.7742 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009431/0.4047, allocations: 465.4 kB / 0.7747 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.4054, allocations: 365.4 kB / 0.775 GB, free: 11.89 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006739/0.4061, allocations: 0.7682 MB / 0.7758 GB, free: 11.12 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.4064, allocations: 201.9 kB / 0.7759 GB, free: 10.92 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000349/0.4067, allocations: 326.8 kB / 0.7763 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004477/0.4072, allocations: 329.4 kB / 0.7766 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.65e-05/0.4073, allocations: 68 kB / 0.7766 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000746/0.408, allocations: 0.5072 MB / 0.7771 GB, free: 9.707 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.4082, allocations: 171.5 kB / 0.7773 GB, free: 9.539 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.4085, allocations: 326.2 kB / 0.7776 GB, free: 9.219 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.4095, allocations: 1.105 MB / 0.7787 GB, free: 8.113 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4095, allocations: 3.984 kB / 0.7787 GB, free: 8.109 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4095, allocations: 0 / 0.7787 GB, free: 8.109 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.4095, allocations: 4 kB / 0.7787 GB, free: 8.105 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00179/0.4113, allocations: 1.015 MB / 0.7797 GB, free: 7.039 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.4114, allocations: 12.03 kB / 0.7797 GB, free: 7.027 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00333/0.4147, allocations: 0.6166 MB / 0.7803 GB, free: 6.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.416, allocations: 0.6312 MB / 0.7809 GB, free: 5.742 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.4161, allocations: 114.7 kB / 0.781 GB, free: 5.613 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.032e-05/0.4162, allocations: 59.88 kB / 0.7811 GB, free: 5.555 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.4176, allocations: 0.7151 MB / 0.7818 GB, free: 4.82 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.4177, allocations: 0 / 0.7818 GB, free: 4.82 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.379e-05/0.4177, allocations: 19.94 kB / 0.7818 GB, free: 4.801 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4177, allocations: 12 kB / 0.7818 GB, free: 4.789 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.4197, allocations: 0.7806 MB / 0.7826 GB, free: 4.004 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003085/0.4228, allocations: 1.911 MB / 0.7844 GB, free: 2.035 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/0.4254, allocations: 0.8621 MB / 0.7853 GB, free: 1.164 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009141/0.4264, allocations: 386.3 kB / 0.7856 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001711/0.4281, allocations: 1.765 MB / 0.7874 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.4291, allocations: 462.8 kB / 0.7878 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=58): time 2.275e-06/0.4291, allocations: 4 kB / 0.7878 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=58): time 0.00658/0.4357, allocations: 1.667 MB / 0.7894 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.4358, allocations: 107.4 kB / 0.7895 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.4363, allocations: 426 kB / 0.79 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.4363, allocations: 33.7 kB / 0.79 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.4365, allocations: 276.6 kB / 0.7903 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.4367, allocations: 193.2 kB / 0.7904 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.4369, allocations: 126.2 kB / 0.7906 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.437, allocations: 358.8 kB / 0.7909 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008675/0.4379, allocations: 329.1 kB / 0.7912 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009577/0.4388, allocations: 447.7 kB / 0.7916 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/0.4406, allocations: 0.7285 MB / 0.7923 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.4406, allocations: 4 kB / 0.7924 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003665/0.4443, allocations: 1.061 MB / 0.7934 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.4443, allocations: 11.94 kB / 0.7934 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4444, allocations: 4 kB / 0.7934 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007221/0.4451, allocations: 144.9 kB / 0.7935 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.4459, allocations: 159.7 kB / 0.7937 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004699/0.4506, allocations: 2.116 MB / 0.7958 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007505/0.4514, allocations: 103.4 kB / 0.7959 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.4514, allocations: 31.97 kB / 0.7959 GB, free: 5.566 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (71): * 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: 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002963/0.4517, allocations: 210.1 kB / 0.7961 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.4519, allocations: 55.34 kB / 0.7961 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/0.4551, allocations: 1.093 MB / 0.7972 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.4551, allocations: 11.94 kB / 0.7972 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.4551, allocations: 0 / 0.7972 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4551, allocations: 3.984 kB / 0.7972 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.459, allocations: 1.793 MB / 0.799 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.459, allocations: 4 kB / 0.799 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007429/0.4597, allocations: 159.8 kB / 0.7991 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005745/0.4603, allocations: 116.7 kB / 0.7992 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.4604, allocations: 19.97 kB / 0.7993 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.4641, allocations: 1.97 MB / 0.8012 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4641, allocations: 0 / 0.8012 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.467, allocations: 1.042 MB / 0.8022 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.4673, allocations: 212.1 kB / 0.8024 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/0.4673, allocations: 16 kB / 0.8024 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006207/0.468, allocations: 59.92 kB / 0.8025 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.4681, allocations: 44.59 kB / 0.8025 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.4682, allocations: 31.97 kB / 0.8026 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003078/0.4685, allocations: 295.1 kB / 0.8028 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4685, allocations: 0 / 0.8028 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007081/0.4692, allocations: 247.5 kB / 0.8031 GB, free: 13.94 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 (69): * Single equations (assignments): 67 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00106/0.4703, allocations: 0.4937 MB / 0.8036 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002104/0.4724, allocations: 0.8905 MB / 0.8044 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.4724, allocations: 8.062 kB / 0.8044 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.4738, allocations: 0.5762 MB / 0.805 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.4743, allocations: 76.52 kB / 0.8051 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.4765, allocations: 1.316 MB / 0.8064 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.4769, allocations: 0.8851 MB / 0.8072 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.4772, allocations: 83.38 kB / 0.8073 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/0.4772, allocations: 0 / 0.8073 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of Templates: time 0.01703/0.4942, allocations: 13.15 MB / 0.8201 GB, free: 12.55 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)