Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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) 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) Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.TestIrradiance,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009768/0.0009768, allocations: 172.9 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.5 MB / 229.6 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000823/0.0008229, allocations: 105.7 kB / 280.5 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02295/0.02295, allocations: 5.305 MB / 336.6 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.877e-05, allocations: 0 / 394.5 MB, free: 50.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09513, allocations: 51.61 MB / 446.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.2014, allocations: 77.38 MB / 0.5112 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.2017, allocations: 63.97 kB / 0.5112 GB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01665/0.2184, allocations: 5.125 MB / 0.5162 GB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2184, allocations: 0 / 0.5162 GB, free: 10.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2184, allocations: 0 / 0.5162 GB, free: 10.1 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007794/0.2192, allocations: 455.9 kB / 0.5167 GB, free: 9.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2193, allocations: 11.97 kB / 0.5167 GB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.2194, allocations: 15.86 kB / 0.5167 GB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.2196, allocations: 210.9 kB / 0.5169 GB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.2196, allocations: 4 kB / 0.5169 GB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.2197, allocations: 8 kB / 0.5169 GB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002416/0.2199, allocations: 119.8 kB / 0.517 GB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.2202, allocations: 155.1 kB / 0.5172 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.2202, allocations: 0 / 0.5172 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.2202, allocations: 0 / 0.5172 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2202, allocations: 7.953 kB / 0.5172 GB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007779/0.221, allocations: 0.5642 MB / 0.5177 GB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005395/0.2216, allocations: 177.9 kB / 0.5179 GB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.2217, allocations: 69.03 kB / 0.518 GB, free: 8.164 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.2218, allocations: 93.22 kB / 0.5181 GB, free: 8.055 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.2221, allocations: 190.7 kB / 0.5182 GB, free: 7.844 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2221, allocations: 0 / 0.5182 GB, free: 7.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000656/0.2228, allocations: 237.4 kB / 0.5185 GB, free: 7.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.2229, allocations: 136.5 kB / 0.5186 GB, free: 7.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.223, allocations: 115.5 kB / 0.5187 GB, free: 7.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.223, allocations: 25.7 kB / 0.5187 GB, free: 7.289 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.2231, allocations: 108.4 kB / 0.5188 GB, free: 7.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.627e-05/0.2232, allocations: 71 kB / 0.5189 GB, free: 7.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.2232, allocations: 0 / 0.5189 GB, free: 7.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.2234, allocations: 326.8 kB / 0.5192 GB, free: 6.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.2235, allocations: 59.98 kB / 0.5193 GB, free: 6.723 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.2236, allocations: 108.2 kB / 0.5194 GB, free: 6.602 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (0.1591549430918953 * $START.irradiance.Jprime * /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.003728/0.2274, allocations: 0.5981 MB / 0.52 GB, free: 5.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.2274, allocations: 0 / 0.52 GB, free: 5.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006754/0.2281, allocations: 277.2 kB / 0.5202 GB, free: 5.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.2281, allocations: 29.7 kB / 0.5203 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.2281, allocations: 4 kB / 0.5203 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.2282, allocations: 3.938 kB / 0.5203 GB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.2285, allocations: 75.98 kB / 0.5203 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2286, allocations: 0 / 0.5203 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.2287, allocations: 11.91 kB / 0.5203 GB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.2288, allocations: 11.98 kB / 0.5204 GB, free: 5.559 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.229, allocations: 153.3 kB / 0.5205 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006128/0.2296, allocations: 262.2 kB / 0.5208 GB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.2296, allocations: 19.81 kB / 0.5208 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000879/0.2305, allocations: 403 kB / 0.5212 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2305, allocations: 4 kB / 0.5212 GB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.2306, allocations: 3.953 kB / 0.5212 GB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.2306, allocations: 4 kB / 0.5212 GB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002841/0.2309, allocations: 261.8 kB / 0.5214 GB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2309, allocations: 0 / 0.5214 GB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.2312, allocations: 63.91 kB / 0.5215 GB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.2312, allocations: 0 / 0.5215 GB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.2312, allocations: 11.98 kB / 0.5215 GB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2312, allocations: 8 kB / 0.5215 GB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2312, allocations: 0 / 0.5215 GB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007868/0.232, allocations: 438.8 kB / 0.5219 GB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.311e-05/0.2321, allocations: 96.83 kB / 0.522 GB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.693e-05/0.2322, allocations: 15.98 kB / 0.522 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.2323, allocations: 4 kB / 0.522 GB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2324, allocations: 39.88 kB / 0.5221 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.2325, allocations: 8 kB / 0.5221 GB, free: 3.703 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.157e-05/0.2326, allocations: 109.8 kB / 0.5222 GB, free: 3.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2326, allocations: 0 / 0.5222 GB, free: 3.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000333/0.2329, allocations: 71.94 kB / 0.5222 GB, free: 3.527 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/0.2341, allocations: 0.9986 MB / 0.5232 GB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004169/0.2345, allocations: 255.1 kB / 0.5235 GB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2345, allocations: 0 / 0.5235 GB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.2348, allocations: 211.3 kB / 0.5237 GB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.2351, allocations: 15.98 kB / 0.5237 GB, free: 2.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000835/0.2359, allocations: 364.7 kB / 0.524 GB, free: 1.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.2362, allocations: 0.7288 MB / 0.5247 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.2364, allocations: 42.05 kB / 0.5248 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.2366, allocations: 71.39 kB / 0.5249 GB, free: 0.75 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2366, allocations: 0 / 0.5249 GB, free: 0.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2552/0.4918, allocations: 4.404 MB / 0.5292 GB, free: 86.03 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.492, allocations: 141.2 kB / 0.5293 GB, free: 85.83 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.311, allocations: 0 / 0.5293 GB, free: 85.83 MB / 362.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)