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.001528/0.001528, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.4 MB / 234.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.000899, allocations: 97.78 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02555/0.02555, allocations: 5.289 MB / 341.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.969e-05/3.971e-05, allocations: 4 kB / 401.3 MB, free: 65.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 51.61 MB / 452.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4325/0.5386, allocations: 78.3 MB / 0.5188 GB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.5388, allocations: 63.47 kB / 0.5189 GB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.5553, allocations: 5.144 MB / 0.5239 GB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5553, allocations: 0 / 0.5239 GB, free: 10.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.5554, allocations: 4 kB / 0.5239 GB, free: 10.43 MB / 346.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.0007983/0.5562, allocations: 447.1 kB / 0.5243 GB, free: 9.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.5562, allocations: 8.031 kB / 0.5243 GB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.5563, allocations: 49.67 kB / 0.5244 GB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.281e-05/0.5563, allocations: 15.86 kB / 0.5244 GB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.5566, allocations: 198 kB / 0.5246 GB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.5567, allocations: 11.62 kB / 0.5246 GB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.5567, allocations: 11.5 kB / 0.5246 GB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.557, allocations: 168 kB / 0.5248 GB, free: 9.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.557, allocations: 0 / 0.5248 GB, free: 9.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.5571, allocations: 7.25 kB / 0.5248 GB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.5571, allocations: 11.95 kB / 0.5248 GB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.5573, allocations: 123.8 kB / 0.5249 GB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/0.5581, allocations: 0.5852 MB / 0.5255 GB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.5587, allocations: 198 kB / 0.5256 GB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.5588, allocations: 79.77 kB / 0.5257 GB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.559, allocations: 84.36 kB / 0.5258 GB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.5593, allocations: 196.8 kB / 0.526 GB, free: 8.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.5593, allocations: 0 / 0.526 GB, free: 8.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004993/0.5598, allocations: 257 kB / 0.5262 GB, free: 8.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.417e-05/0.5599, allocations: 136.5 kB / 0.5264 GB, free: 7.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.56, allocations: 119.2 kB / 0.5265 GB, free: 7.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.5601, allocations: 33.02 kB / 0.5265 GB, free: 7.785 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.258e-05/0.5601, allocations: 98.97 kB / 0.5266 GB, free: 7.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.816e-05/0.5602, allocations: 73.62 kB / 0.5267 GB, free: 7.629 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.5603, allocations: 3.75 kB / 0.5267 GB, free: 7.629 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5604, allocations: 326.5 kB / 0.527 GB, free: 7.309 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.5606, allocations: 70.42 kB / 0.5271 GB, free: 7.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.5608, allocations: 106.7 kB / 0.5272 GB, free: 7.168 MB / 346.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.004469/0.5652, allocations: 0.6334 MB / 0.5278 GB, free: 6.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5653, allocations: 0 / 0.5278 GB, free: 6.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004796/0.5657, allocations: 274.2 kB / 0.528 GB, free: 6.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.5658, allocations: 37.64 kB / 0.5281 GB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.5658, allocations: 0 / 0.5281 GB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.5658, allocations: 4 kB / 0.5281 GB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.5662, allocations: 79.8 kB / 0.5282 GB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.5662, allocations: 0 / 0.5282 GB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.5664, allocations: 19.8 kB / 0.5282 GB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.5665, allocations: 11.98 kB / 0.5282 GB, free: 6.188 MB / 346.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.0001615/0.5666, allocations: 161.9 kB / 0.5283 GB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.5667, allocations: 15.81 kB / 0.5284 GB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008289/0.5675, allocations: 434.9 kB / 0.5288 GB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.5675, allocations: 4 kB / 0.5288 GB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5676, allocations: 0 / 0.5288 GB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5676, allocations: 3.984 kB / 0.5288 GB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.5679, allocations: 307.3 kB / 0.5291 GB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5679, allocations: 0 / 0.5291 GB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.5682, allocations: 59.59 kB / 0.5291 GB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.5682, allocations: 3.938 kB / 0.5291 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.5683, allocations: 11.92 kB / 0.5291 GB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.5683, allocations: 8 kB / 0.5292 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5683, allocations: 0 / 0.5292 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007548/0.5691, allocations: 474.8 kB / 0.5296 GB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.85e-05/0.5692, allocations: 108.7 kB / 0.5297 GB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.5692, allocations: 7.938 kB / 0.5297 GB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.5694, allocations: 11.81 kB / 0.5297 GB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.5695, allocations: 31.7 kB / 0.5298 GB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.5695, allocations: 19.86 kB / 0.5298 GB, free: 4.723 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.5696, allocations: 106.5 kB / 0.5299 GB, free: 4.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5696, allocations: 0 / 0.5299 GB, free: 4.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000383/0.57, allocations: 87.7 kB / 0.53 GB, free: 4.551 MB / 346.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.00123/0.5713, allocations: 1.026 MB / 0.531 GB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004908/0.5718, allocations: 280.9 kB / 0.5312 GB, free: 3.383 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5718, allocations: 0 / 0.5312 GB, free: 3.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.5721, allocations: 220.2 kB / 0.5314 GB, free: 3.211 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.5723, allocations: 23.86 kB / 0.5315 GB, free: 3.195 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008971/0.5732, allocations: 395.9 kB / 0.5318 GB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.5736, allocations: 0.7366 MB / 0.5326 GB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.5738, allocations: 34.05 kB / 0.5326 GB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.5739, allocations: 77.81 kB / 0.5327 GB, free: 1.988 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5739, allocations: 0 / 0.5327 GB, free: 1.988 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.5906, allocations: 4.773 MB / 0.5373 GB, free: 13.34 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.5909, allocations: 147 kB / 0.5375 GB, free: 13.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.415, allocations: 4.062 kB / 0.5375 GB, free: 13.11 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)