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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008176/0.0008176, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 165.9 kB / 22.46 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8935/0.8935, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.01625/0.01625, allocations: 4.221 MB / 263.4 MB, free: 9.16 MB / 250.7 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 387.7 MB, free: 8.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.315e-05, allocations: 6.219 kB / 387.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.002297/0.00232, allocations: 1.626 MB / 389.4 MB, free: 7.207 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.003347, allocations: 0.6893 MB / 390.1 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.557e-05/0.003432, allocations: 0 / 390.1 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.003541, allocations: 19.73 kB / 390.1 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.003785, allocations: 55.7 kB / 390.1 MB, free: 6.438 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.004006, allocations: 123.5 kB / 390.3 MB, free: 6.316 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.004357, allocations: 183.4 kB / 390.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.00446, allocations: 17.56 kB / 390.4 MB, free: 6.113 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.004657, allocations: 111.8 kB / 390.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.004806, allocations: 99.73 kB / 390.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.004832, allocations: 12 kB / 390.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.143e-05/0.004923, allocations: 63.95 kB / 390.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.083e-05/0.004954, allocations: 39.83 kB / 390.8 MB, free: 5.793 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.457e-05/0.005009, allocations: 51.88 kB / 390.8 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.005242, allocations: 207.4 kB / 391 MB, free: 5.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.005245, allocations: 0 / 391 MB, free: 5.539 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.005246, allocations: 0 / 391 MB, free: 5.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.005251, allocations: 3.938 kB / 391 MB, free: 5.535 MB / 314.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.0006414/0.005893, allocations: 387.5 kB / 391.4 MB, free: 5.121 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.005934, allocations: 12.03 kB / 391.4 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4e-05/0.005974, allocations: 46.73 kB / 391.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.796e-05/0.006022, allocations: 20.84 kB / 391.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.006244, allocations: 153.5 kB / 391.6 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.006263, allocations: 8.375 kB / 391.6 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.006294, allocations: 12.38 kB / 391.7 MB, free: 4.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.006586, allocations: 210.6 kB / 391.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.006596, allocations: 3.938 kB / 391.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.006612, allocations: 0 / 391.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.006618, allocations: 4 kB / 391.9 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.006855, allocations: 165.5 kB / 392 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.007399, allocations: 0.5351 MB / 392.6 MB, free: 3.852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.007831, allocations: 208.5 kB / 392.8 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.007959, allocations: 102.5 kB / 392.9 MB, free: 3.523 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.321e-05/0.008032, allocations: 7.938 kB / 392.9 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.008308, allocations: 240.3 kB / 393.1 MB, free: 3.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.034e-06/0.00831, allocations: 0 / 393.1 MB, free: 3.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005804/0.00889, allocations: 407.5 kB / 393.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.008963, allocations: 144.4 kB / 393.6 MB, free: 2.656 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003986/0.009362, allocations: 133.2 kB / 393.8 MB, free: 2.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.009383, allocations: 29.7 kB / 393.8 MB, free: 2.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.009434, allocations: 96.53 kB / 393.9 MB, free: 2.383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.009484, allocations: 75.38 kB / 394 MB, free: 2.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.781e-05/0.009552, allocations: 61.67 kB / 394 MB, free: 2.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.281e-05/0.009645, allocations: 326.8 kB / 394.4 MB, free: 1.914 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.009784, allocations: 105.6 kB / 394.5 MB, free: 1.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.009941, allocations: 149.9 kB / 394.6 MB, free: 1.637 MB / 314.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.01254, allocations: 0.788 MB / 395.4 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.01254, allocations: 4 kB / 395.4 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003771/0.01292, allocations: 324.7 kB / 395.7 MB, free: 472 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.01295, allocations: 37.69 kB / 395.7 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01296, allocations: 0 / 395.7 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.01297, allocations: 7.938 kB / 395.8 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.01316, allocations: 67.86 kB / 395.8 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.01317, allocations: 4 kB / 395.8 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.0133, allocations: 23.97 kB / 395.9 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.01332, allocations: 15.92 kB / 395.9 MB, free: 308 kB / 314.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, 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 (irradiance.year,$PRE.irradiance.year,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,$whenCondition2,$whenCondition1,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.01345, allocations: 176 kB / 396 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.01348, allocations: 11.95 kB / 396 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005767/0.01405, allocations: 486.6 kB / 396.5 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.01406, allocations: 7.938 kB / 396.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01406, allocations: 0 / 396.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01407, allocations: 0 / 396.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.01425, allocations: 252.4 kB / 396.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.01425, allocations: 0 / 396.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.0144, allocations: 63.91 kB / 396.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.0144, allocations: 0 / 396.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.01442, allocations: 11.98 kB / 396.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.01442, allocations: 11.88 kB / 396.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01443, allocations: 0 / 396.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005763/0.015, allocations: 0.5469 MB / 397.4 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.01503, allocations: 31.81 kB / 397.4 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.01505, allocations: 8 kB / 397.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.031e-05/0.01513, allocations: 16 kB / 397.5 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.0152, allocations: 35.88 kB / 397.5 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.01522, allocations: 12 kB / 397.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.778e-05/0.01526, allocations: 107.2 kB / 397.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01526, allocations: 0 / 397.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002053/0.01547, allocations: 64 kB / 397.7 MB, free: 14.38 MB / 330.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) * Number of clocked states: 0 () * 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 (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.0008576/0.01633, allocations: 1.117 MB / 398.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000426/0.01675, allocations: 342.5 kB / 399.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.01676, allocations: 4 kB / 399.1 MB, free: 12.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.01695, allocations: 220.9 kB / 399.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.01719, allocations: 35.02 kB / 399.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.01932, allocations: 2.3 MB / 401.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.852e-05/0.01939, allocations: 121.1 kB / 401.8 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.451e-05/0.01948, allocations: 41.86 kB / 401.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.852e-05/0.01958, allocations: 72.45 kB / 401.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01958, allocations: 0 / 401.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.03983, allocations: 6.198 MB / 408.1 MB, free: 3.844 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/6.903, allocations: 10.97 kB / 408.1 MB, free: 3.836 MB / 330.7 MB " [Timeout remaining time 653] (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/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance_fmu --startTime=0 --stopTime=3.1536e+07 --stepSize=60 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_ComponentTesting_TestIrradiance.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.414978454820812] Failed to read output from testmodel.py, exit status != 0: 6.985554515384138 7.140794873 7.13344255 Calling exit ...