Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04575/0.04575, allocations: 5.392 MB / 20.89 MB, free: 1.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009196/0.009196, allocations: 98.33 kB / 22.89 MB, free: 0.7695 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.001071/0.001071, allocations: 193.2 kB / 25 MB, free: 272 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 249.9 MB, free: 8.531 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009495/0.009495, allocations: 2.328 MB / 303.5 MB, free: 6.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 95.86 kB / 370.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1695, allocations: 51.22 MB / 422 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005881/0.1754, allocations: 6.761 MB / 428.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.1794, allocations: 3.135 MB / 431.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004952/0.1799, allocations: 23.94 kB / 431.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.1819, allocations: 1.095 MB / 433 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1832, allocations: 0.8351 MB / 433.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.1843, allocations: 0.5427 MB / 434.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007507/0.185, allocations: 1.367 MB / 435.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.1861, allocations: 1.036 MB / 436.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003874/0.1865, allocations: 0.5566 MB / 437.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.187, allocations: 0.7121 MB / 438 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.1872, allocations: 144 kB / 438.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005514/0.1877, allocations: 439.7 kB / 438.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.1879, allocations: 291 kB / 438.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003708/0.1883, allocations: 0.6298 MB / 439.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.1894, allocations: 1.733 MB / 441.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1894, allocations: 0 / 441.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1894, allocations: 0 / 441.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1894, allocations: 0 / 441.3 MB, free: 6.586 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003504/0.1929, allocations: 1.763 MB / 443 MB, free: 4.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.193, allocations: 8.031 kB / 443 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.1931, allocations: 164.9 kB / 443.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002023/0.1951, allocations: 371.2 kB / 443.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.1965, allocations: 0.7598 MB / 444.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.1966, allocations: 82.06 kB / 444.4 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1967, allocations: 111.9 kB / 444.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.1984, allocations: 1.172 MB / 445.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.1984, allocations: 7.938 kB / 445.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.662e-05/0.1985, allocations: 44 kB / 445.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.1986, allocations: 24 kB / 445.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.2005, allocations: 1.038 MB / 446.8 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005747/0.2062, allocations: 4.396 MB / 451.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/0.2092, allocations: 1.78 MB / 453 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007935/0.21, allocations: 366 kB / 453.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/0.2101, allocations: 174.8 kB / 453.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000957/0.2111, allocations: 0.5513 MB / 454 MB, free: 9.125 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.204e-06/0.2111, allocations: 7.938 kB / 454 MB, free: 9.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006228/0.2173, allocations: 1.702 MB / 455.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.2175, allocations: 285.7 kB / 456 MB, free: 7.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006396/0.2181, allocations: 0.5536 MB / 456.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.132e-05/0.2182, allocations: 41.7 kB / 456.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.2185, allocations: 490.6 kB / 457.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.2187, allocations: 256.4 kB / 457.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/0.219, allocations: 218.7 kB / 457.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2192, allocations: 382.8 kB / 457.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007995/0.22, allocations: 322.4 kB / 458.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009343/0.2209, allocations: 0.5643 MB / 458.8 MB, free: 4.098 MB / 318.1 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.01806/0.239, allocations: 3.634 MB / 462.5 MB, free: 304 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.239, allocations: 7.938 kB / 462.5 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002785/0.2418, allocations: 1.202 MB / 463.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/0.2419, allocations: 99.75 kB / 463.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.2419, allocations: 8 kB / 463.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004713/0.2424, allocations: 88.94 kB / 463.9 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.2436, allocations: 255.5 kB / 464.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.2451, allocations: 1.585 MB / 465.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009235/0.246, allocations: 111.2 kB / 465.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.17e-05/0.2461, allocations: 51.95 kB / 465.8 MB, free: 12.71 MB / 334.1 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: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005113/0.2466, allocations: 369.2 kB / 466.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.2468, allocations: 83 kB / 466.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.2495, allocations: 1.257 MB / 467.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.2495, allocations: 8 kB / 467.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2496, allocations: 3.984 kB / 467.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.2496, allocations: 3.984 kB / 467.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.2535, allocations: 2.274 MB / 469.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2535, allocations: 0 / 469.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006208/0.2541, allocations: 147.8 kB / 470 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007975/0.2549, allocations: 322.3 kB / 470.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.001e-05/0.255, allocations: 31.97 kB / 470.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.2563, allocations: 0.8973 MB / 471.2 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.2564, allocations: 8.016 kB / 471.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.2596, allocations: 1.638 MB / 472.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.2599, allocations: 231.9 kB / 473.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.2601, allocations: 27.91 kB / 473.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006873/0.2607, allocations: 59.95 kB / 473.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.2609, allocations: 56.52 kB / 473.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.261, allocations: 39.97 kB / 473.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004582/0.2614, allocations: 394.8 kB / 473.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2614, allocations: 0 / 473.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009177/0.2624, allocations: 335 kB / 474 MB, free: 4.305 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004075/0.2664, allocations: 2.436 MB / 476.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002581/0.269, allocations: 1.196 MB / 477.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.269, allocations: 0 / 477.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.2701, allocations: 0.6675 MB / 478.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007782/0.2709, allocations: 136.9 kB / 478.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.2825, allocations: 7.351 MB / 485.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.2831, allocations: 1.014 MB / 486.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.2837, allocations: 130.4 kB / 486.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005383/0.2842, allocations: 403.3 kB / 487.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2842, allocations: 3.938 kB / 487.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.988/2.272, allocations: 20.48 MB / 0.4959 GB, free: 2.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/16.72, allocations: 14.14 kB / 0.4959 GB, free: 2.258 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)