Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.conf.json 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 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 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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005695/0.005695, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001586/0.001586, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.524/1.524, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1432/0.1432, allocations: 5.394 MB / 295.9 MB, free: 2.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 71.88 kB / 412.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2687, allocations: 50.61 MB / 462.9 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCell): time 0.004013/0.2728, allocations: 3.38 MB / 466.3 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.2752, allocations: 1.262 MB / 467.6 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005084/0.2757, allocations: 5.5 kB / 467.6 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007936/0.2765, allocations: 213.8 kB / 467.8 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000616/0.2772, allocations: 146 kB / 467.9 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.2775, allocations: 117.3 kB / 468 MB, free: 17.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005979/0.2781, allocations: 0.5677 MB / 468.6 MB, free: 17.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2784, allocations: 121 kB / 468.7 MB, free: 17.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.2786, allocations: 213.3 kB / 468.9 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.2789, allocations: 250.9 kB / 469.2 MB, free: 17.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.701e-05/0.279, allocations: 52.25 kB / 469.2 MB, free: 17.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.2791, allocations: 59.16 kB / 469.3 MB, free: 17.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.2792, allocations: 112.3 kB / 469.4 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2794, allocations: 225.9 kB / 469.6 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007137/0.2801, allocations: 0.5276 MB / 470.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2802, allocations: 0 / 470.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2802, allocations: 4 kB / 470.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.2802, allocations: 1.375 kB / 470.1 MB, free: 16.73 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.002107/0.2823, allocations: 0.8259 MB / 471 MB, free: 16.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.2824, allocations: 9.781 kB / 471 MB, free: 16.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.975e-05/0.2824, allocations: 55.98 kB / 471 MB, free: 16.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.2826, allocations: 50.03 kB / 471.1 MB, free: 16.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.2837, allocations: 487 kB / 471.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.2838, allocations: 22.84 kB / 471.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.2838, allocations: 23.17 kB / 471.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.2845, allocations: 288.7 kB / 471.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2845, allocations: 4 kB / 471.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.2846, allocations: 11.5 kB / 471.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.2846, allocations: 13.59 kB / 471.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006347/0.2852, allocations: 244.5 kB / 472.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.2874, allocations: 1.268 MB / 473.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.2879, allocations: 259 kB / 473.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.2883, allocations: 113.5 kB / 473.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.2883, allocations: 6.031 kB / 473.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.2883, allocations: 39.05 kB / 473.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.2883, allocations: 0 / 473.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.003407/0.2918, allocations: 0.7308 MB / 474.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.2918, allocations: 53.41 kB / 474.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.2924, allocations: 388.6 kB / 475 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.2924, allocations: 26.77 kB / 475 MB, free: 13.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.2925, allocations: 220.1 kB / 475.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.2926, allocations: 52.16 kB / 475.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2927, allocations: 52.09 kB / 475.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.514e-05/0.2928, allocations: 341.1 kB / 475.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.293, allocations: 99.33 kB / 475.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.2933, allocations: 139.3 kB / 475.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.2938, allocations: 211.4 kB / 476.1 MB, free: 13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2938, allocations: 4 kB / 476.1 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002083/0.2959, allocations: 0.5567 MB / 476.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.2959, allocations: 9.75 kB / 476.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.296, allocations: 1.719 kB / 476.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009004/0.2969, allocations: 245.5 kB / 476.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.2971, allocations: 45.11 kB / 477 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/0.3017, allocations: 3.788 MB / 480.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/0.3022, allocations: 40.89 kB / 480.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.3022, allocations: 9.359 kB / 480.8 MB, free: 9.359 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.3024, allocations: 150.6 kB / 480.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-05/0.3025, allocations: 39.86 kB / 481 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.3025, allocations: 35.78 kB / 481 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3025, allocations: 2.094 kB / 481 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3025, allocations: 0 / 481 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3026, allocations: 3.984 kB / 481 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.3046, allocations: 0.8416 MB / 481.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3046, allocations: 1.094 kB / 481.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.608e-05/0.3047, allocations: 17.2 kB / 481.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003189/0.305, allocations: 166.7 kB / 482 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.305, allocations: 1.344 kB / 482 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.3079, allocations: 2.02 MB / 484.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3079, allocations: 1.719 kB / 484.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3095, allocations: 0.5092 MB / 484.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.3096, allocations: 130.5 kB / 484.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.3097, allocations: 1.562 kB / 484.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.3099, allocations: 24.16 kB / 484.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.434e-05/0.31, allocations: 13.2 kB / 484.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.31, allocations: 2.25 kB / 484.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002805/0.3103, allocations: 269.4 kB / 485 MB, free: 5.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3103, allocations: 0 / 485 MB, free: 5.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000526/0.3109, allocations: 96.92 kB / 485.1 MB, free: 5.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001823/0.3127, allocations: 1.034 MB / 486.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009575/0.3137, allocations: 491.4 kB / 486.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3137, allocations: 0 / 486.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.314, allocations: 204.8 kB / 486.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.3146, allocations: 85.06 kB / 486.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006959/0.3216, allocations: 3.619 MB / 490.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.3218, allocations: 0.778 MB / 491.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.322, allocations: 41.11 kB / 491.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.3221, allocations: 116 kB / 491.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3221, allocations: 0 / 491.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.3615, allocations: 9.753 MB / 0.4895 GB, free: 10.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.62, allocations: 19.56 kB / 0.4895 GB, free: 10.11 MB / 366.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe 2>&1)