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.00121/0.00121, allocations: 104 kB / 16.35 MB, free: 5.824 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.001211/0.001211, allocations: 192.4 kB / 17.29 MB, free: 5.48 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.248/1.248, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002359/0.002359, allocations: 290.1 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.8948/0.8948, allocations: 169.3 MB / 0.4989 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 95.66 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 86.96 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.004788/0.1496, allocations: 3.802 MB / 0.6853 GB, free: 3.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004461/0.154, allocations: 3.45 MB / 0.6887 GB, free: 168 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.1543, allocations: 7.938 kB / 0.6887 GB, free: 160 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.0004758/0.1548, allocations: 126.9 kB / 0.6888 GB, free: 32 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2364/0.3913, allocations: 458.9 kB / 0.6892 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008805/0.3922, allocations: 365.5 kB / 0.6896 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009385/0.3931, allocations: 0.7741 MB / 0.6903 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003319/0.3935, allocations: 200.1 kB / 0.6905 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004998/0.394, allocations: 323.9 kB / 0.6908 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005681/0.3945, allocations: 327.7 kB / 0.6911 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001562/0.3947, allocations: 66.78 kB / 0.6912 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00094/0.3957, allocations: 0.4913 MB / 0.6917 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.3959, allocations: 175.1 kB / 0.6919 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003031/0.3962, allocations: 332.6 kB / 0.6922 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.3975, allocations: 1.106 MB / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3975, allocations: 1.703 kB / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3975, allocations: 0 / 0.6933 GB, free: 12.24 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3975, allocations: 0 / 0.6933 GB, free: 12.24 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001744/0.3993, allocations: 1.013 MB / 0.6942 GB, free: 11.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.3993, allocations: 10.25 kB / 0.6943 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003434/0.4027, allocations: 0.6266 MB / 0.6949 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.404, allocations: 0.6307 MB / 0.6955 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-05/0.4041, allocations: 118.8 kB / 0.6956 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-05/0.4042, allocations: 47.16 kB / 0.6956 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.4057, allocations: 0.7238 MB / 0.6963 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.4057, allocations: 0 / 0.6963 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.416e-05/0.4058, allocations: 17.94 kB / 0.6964 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.4058, allocations: 15.09 kB / 0.6964 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.4078, allocations: 0.7784 MB / 0.6971 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.411, allocations: 1.902 MB / 0.699 GB, free: 9.789 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.4137, allocations: 0.8634 MB / 0.6998 GB, free: 9.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009281/0.4146, allocations: 387.4 kB / 0.7002 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/0.4159, allocations: 1.773 MB / 0.7019 GB, free: 7.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.417, allocations: 465.4 kB / 0.7024 GB, free: 7.211 MB / 494.1 MB Notification: Performance of pre-optimization done (n=58): time 2.124e-06/0.417, allocations: 1.062 kB / 0.7024 GB, free: 7.211 MB / 494.1 MB Notification: Performance of matching and sorting (n=58): time 0.006609/0.4236, allocations: 1.666 MB / 0.704 GB, free: 6.719 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.4237, allocations: 110.1 kB / 0.7041 GB, free: 6.594 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/0.4242, allocations: 421.9 kB / 0.7045 GB, free: 6.391 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/0.4242, allocations: 35.98 kB / 0.7046 GB, free: 6.352 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.4244, allocations: 272.1 kB / 0.7048 GB, free: 6.129 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.4245, allocations: 194.8 kB / 0.705 GB, free: 5.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.4248, allocations: 126.6 kB / 0.7051 GB, free: 5.926 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.4249, allocations: 371.1 kB / 0.7055 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008887/0.4257, allocations: 319 kB / 0.7058 GB, free: 5.484 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000944/0.4267, allocations: 447.7 kB / 0.7062 GB, free: 5.254 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/0.4285, allocations: 0.7256 MB / 0.7069 GB, free: 4.918 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4285, allocations: 5.406 kB / 0.7069 GB, free: 4.914 MB / 494.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003663/0.4322, allocations: 1.063 MB / 0.708 GB, free: 4.598 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.4322, allocations: 7.359 kB / 0.708 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.4322, allocations: 2.594 kB / 0.708 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007272/0.4329, allocations: 139.8 kB / 0.7081 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008264/0.4338, allocations: 169.7 kB / 0.7083 GB, free: 4.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004577/0.4384, allocations: 2.106 MB / 0.7103 GB, free: 2.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007392/0.4391, allocations: 104.4 kB / 0.7104 GB, free: 2.914 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.022e-05/0.4392, allocations: 31.58 kB / 0.7104 GB, free: 2.91 MB / 494.1 MB 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.0002643/0.4395, allocations: 210.2 kB / 0.7106 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4396, allocations: 53 kB / 0.7107 GB, free: 2.707 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.4428, allocations: 1.097 MB / 0.7118 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4429, allocations: 14.98 kB / 0.7118 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4429, allocations: 4.594 kB / 0.7118 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4429, allocations: 4.047 kB / 0.7118 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0038/0.4467, allocations: 1.8 MB / 0.7135 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4467, allocations: 0.6562 kB / 0.7135 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007426/0.4475, allocations: 153.7 kB / 0.7137 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000568/0.448, allocations: 114 kB / 0.7138 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.657e-05/0.4481, allocations: 21.69 kB / 0.7138 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003367/0.4515, allocations: 1.969 MB / 0.7157 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.4515, allocations: 0 / 0.7157 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002845/0.4543, allocations: 1.053 MB / 0.7168 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.4547, allocations: 211.7 kB / 0.717 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-05/0.4548, allocations: 11.53 kB / 0.717 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.4554, allocations: 60.16 kB / 0.717 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.4555, allocations: 47.78 kB / 0.7171 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.933e-05/0.4556, allocations: 23.42 kB / 0.7171 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003087/0.4559, allocations: 296.9 kB / 0.7174 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4559, allocations: 0 / 0.7174 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007813/0.4567, allocations: 241.9 kB / 0.7176 GB, free: 14.95 MB / 0.4981 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.001065/0.4577, allocations: 0.4987 MB / 0.7181 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002118/0.4599, allocations: 0.8924 MB / 0.719 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4599, allocations: 0 / 0.719 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.4613, allocations: 0.5872 MB / 0.7196 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.4618, allocations: 75.16 kB / 0.7196 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.464, allocations: 1.278 MB / 0.7209 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.4644, allocations: 0.8891 MB / 0.7217 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005518/0.465, allocations: 155.2 kB / 0.7219 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.4652, allocations: 68.67 kB / 0.722 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.4652, allocations: 0 / 0.722 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of Templates: time 0.01605/0.4813, allocations: 10.52 MB / 0.7322 GB, free: 7.133 MB / 0.4981 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)