Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",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.02717/0.02717, allocations: 5.391 MB / 20.89 MB, free: 1.762 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.0009373/0.0009373, allocations: 104.2 kB / 22.88 MB, free: 96 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 194.9 kB / 25 MB, free: 1.477 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.259/1.259, allocations: 222.9 MB / 249.9 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008792/0.008792, allocations: 2.311 MB / 303.5 MB, free: 3.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001687, allocations: 96.19 kB / 367.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08757, allocations: 51.21 MB / 418.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.007083/0.09467, allocations: 6.889 MB / 425.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.15/0.2447, allocations: 4.011 MB / 429.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000841/0.2456, allocations: 22.91 kB / 429.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.2479, allocations: 1.158 MB / 430.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.2495, allocations: 0.8809 MB / 431.4 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.2511, allocations: 0.6093 MB / 432 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.2523, allocations: 1.404 MB / 433.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.2533, allocations: 1.023 MB / 434.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004709/0.2538, allocations: 0.5655 MB / 435 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006057/0.2544, allocations: 0.6819 MB / 435.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.2546, allocations: 140.9 kB / 435.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007108/0.2553, allocations: 433.8 kB / 436.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.2555, allocations: 296.2 kB / 436.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.2559, allocations: 0.636 MB / 437.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.2571, allocations: 1.733 MB / 438.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2571, allocations: 3.438 kB / 438.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2572, allocations: 0 / 438.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.2572, allocations: 4.719 kB / 439 MB, free: 34.74 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003386/0.2606, allocations: 1.804 MB / 440.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2606, allocations: 9.844 kB / 440.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.2608, allocations: 152.8 kB / 440.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.2626, allocations: 382.3 kB / 441.3 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.264, allocations: 0.8035 MB / 442.1 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.2641, allocations: 76.62 kB / 442.2 MB, free: 33.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.2642, allocations: 100.2 kB / 442.3 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.2657, allocations: 1.135 MB / 443.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.2658, allocations: 3.906 kB / 443.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.54e-05/0.2658, allocations: 46.16 kB / 443.4 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.2659, allocations: 28.81 kB / 443.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.2674, allocations: 0.9475 MB / 444.4 MB, free: 32.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004441/0.2719, allocations: 4.34 MB / 448.8 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.2739, allocations: 1.665 MB / 450.4 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.2745, allocations: 320.5 kB / 450.7 MB, free: 27.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.129e-05/0.2746, allocations: 96.64 kB / 450.8 MB, free: 27.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006575/0.2752, allocations: 461.4 kB / 451.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.555e-06/0.2753, allocations: 0 / 451.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.005112/0.2804, allocations: 1.548 MB / 452.8 MB, free: 26.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.2805, allocations: 281.8 kB / 453.1 MB, free: 26.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006191/0.2811, allocations: 0.6571 MB / 453.8 MB, free: 26.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.2811, allocations: 44.11 kB / 453.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.2814, allocations: 0.5135 MB / 454.3 MB, free: 25.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.2815, allocations: 214.1 kB / 454.5 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.2817, allocations: 191.4 kB / 454.7 MB, free: 25.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.619e-05/0.2818, allocations: 384.1 kB / 455.1 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/0.2824, allocations: 280.7 kB / 455.4 MB, free: 25.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006084/0.283, allocations: 0.542 MB / 455.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.2841, allocations: 0.9129 MB / 456.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2841, allocations: 3.188 kB / 456.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001786/0.2859, allocations: 1.078 MB / 457.9 MB, free: 23.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.286, allocations: 65.3 kB / 458 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.286, allocations: 6.5 kB / 458 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004208/0.2864, allocations: 81.14 kB / 458.1 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.2871, allocations: 220 kB / 458.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.2882, allocations: 1.584 MB / 459.9 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006836/0.2889, allocations: 111.6 kB / 460 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.793e-05/0.289, allocations: 51.25 kB / 460 MB, free: 21.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0003768/0.2894, allocations: 336.9 kB / 460.3 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2895, allocations: 86.28 kB / 460.4 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.2912, allocations: 0.9126 MB / 461.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2912, allocations: 6.344 kB / 461.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2912, allocations: 3.25 kB / 461.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2912, allocations: 3.422 kB / 461.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005108/0.2963, allocations: 2.217 MB / 463.6 MB, free: 20.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.2963, allocations: 2.938 kB / 463.6 MB, free: 20.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.2966, allocations: 83.19 kB / 463.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007046/0.2973, allocations: 331.5 kB / 464 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.078e-05/0.2974, allocations: 25.03 kB / 464 MB, free: 20 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.2985, allocations: 0.8879 MB / 464.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2985, allocations: 1.5 kB / 464.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004681/0.3032, allocations: 1.636 MB / 466.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.3034, allocations: 222.9 kB / 466.7 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.3036, allocations: 21.28 kB / 466.8 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005214/0.3041, allocations: 46.42 kB / 466.8 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.925e-05/0.3042, allocations: 40.88 kB / 466.8 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.085e-05/0.3042, allocations: 33.83 kB / 466.9 MB, free: 18.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004519/0.3047, allocations: 462 kB / 467.3 MB, free: 18.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3047, allocations: 0 / 467.3 MB, free: 18.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008139/0.3055, allocations: 320.7 kB / 467.6 MB, free: 18.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.005921/0.3115, allocations: 2.74 MB / 470.4 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.3134, allocations: 0.9892 MB / 471.4 MB, free: 16.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3134, allocations: 1.781 kB / 471.4 MB, free: 16.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.3142, allocations: 485.4 kB / 471.9 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.3151, allocations: 176.9 kB / 472 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009691/0.3248, allocations: 7.257 MB / 479.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.3253, allocations: 1.012 MB / 480.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005143/0.3258, allocations: 122.5 kB / 480.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000453/0.3262, allocations: 385.2 kB / 480.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3263, allocations: 0 / 480.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04754/0.3738, allocations: 20.25 MB / 0.4893 GB, free: 0.5977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.73, allocations: 7.031 kB / 0.4893 GB, free: 0.5938 MB / 350.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)