Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.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.SimplePlantSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimplePlantSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric",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.005632/0.005632, allocations: 97.62 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.001253/0.001253, allocations: 197.3 kB / 16.68 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1345/0.1345, allocations: 5.384 MB / 295.9 MB, free: 2.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 64.03 kB / 412.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.274, allocations: 50.61 MB / 462.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimplePlantSymmetric): time 0.004136/0.2782, allocations: 3.517 MB / 466.4 MB, free: 18.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.2802, allocations: 1.29 MB / 467.7 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.2805, allocations: 7.5 kB / 467.7 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006206/0.2811, allocations: 232.5 kB / 468 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000468/0.2816, allocations: 173.3 kB / 468.1 MB, free: 17.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.2819, allocations: 113.4 kB / 468.2 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007204/0.2826, allocations: 0.6061 MB / 468.8 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.2829, allocations: 122.3 kB / 469 MB, free: 17.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.2832, allocations: 232.6 kB / 469.2 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003376/0.2835, allocations: 269.8 kB / 469.4 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.794e-05/0.2836, allocations: 56.38 kB / 469.5 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.2838, allocations: 65.33 kB / 469.6 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.2839, allocations: 113.3 kB / 469.7 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.2841, allocations: 244 kB / 469.9 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007013/0.2848, allocations: 0.5574 MB / 470.5 MB, free: 16.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.2848, allocations: 4.453 kB / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2848, allocations: 0 / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2849, allocations: 1.156 kB / 470.5 MB, free: 16.5 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.00205/0.2869, allocations: 0.8581 MB / 471.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.287, allocations: 10.25 kB / 471.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.482e-05/0.2871, allocations: 60.56 kB / 471.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.2872, allocations: 47.81 kB / 471.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.2886, allocations: 0.5132 MB / 472 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.2886, allocations: 23.31 kB / 472 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.2887, allocations: 29.98 kB / 472 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007601/0.2895, allocations: 359.9 kB / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2895, allocations: 0.5625 kB / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.2895, allocations: 10.78 kB / 472.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.2895, allocations: 6.406 kB / 472.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.2906, allocations: 372.1 kB / 472.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.2932, allocations: 1.42 MB / 474.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.2944, allocations: 444.5 kB / 474.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004852/0.2949, allocations: 163.8 kB / 474.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.295, allocations: 7.469 kB / 474.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.295, allocations: 43.81 kB / 474.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.295, allocations: 0 / 474.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00567/0.3007, allocations: 1.021 MB / 475.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.3007, allocations: 54.94 kB / 475.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.3012, allocations: 393.9 kB / 476.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.3013, allocations: 26.95 kB / 476.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.3014, allocations: 233 kB / 476.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.278e-05/0.3015, allocations: 70.78 kB / 476.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3016, allocations: 74.81 kB / 476.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.886e-05/0.3017, allocations: 350.6 kB / 477 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/0.3021, allocations: 141.3 kB / 477.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.3026, allocations: 182.4 kB / 477.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007887/0.3034, allocations: 313.3 kB / 477.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3034, allocations: 3.938 kB / 477.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.004301/0.3077, allocations: 0.8308 MB / 478.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.3078, allocations: 7.719 kB / 478.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3078, allocations: 5.125 kB / 478.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.3089, allocations: 332.6 kB / 478.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3092, allocations: 53 kB / 478.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.3172, allocations: 4.328 MB / 483.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005762/0.3179, allocations: 55.03 kB / 483.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.3179, allocations: 15.2 kB / 483.3 MB, free: 7.945 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 (31): * Single equations (assignments): 29 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.3181, allocations: 152.2 kB / 483.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.3182, allocations: 38.08 kB / 483.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.72e-05/0.3183, allocations: 44.2 kB / 483.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3183, allocations: 6.781 kB / 483.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3183, allocations: 0 / 483.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3184, allocations: 1.531 kB / 483.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.3226, allocations: 1.179 MB / 484.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.3226, allocations: 0 / 484.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.3228, allocations: 33.2 kB / 484.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006737/0.3235, allocations: 252.7 kB / 485 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.3235, allocations: 10.2 kB / 485 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006379/0.3299, allocations: 2.563 MB / 487.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.33, allocations: 4.969 kB / 487.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.3336, allocations: 0.7799 MB / 488.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.3339, allocations: 145 kB / 488.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.334, allocations: 0 / 488.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.3344, allocations: 29.75 kB / 488.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.287e-05/0.3345, allocations: 20.12 kB / 488.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.3345, allocations: 7.266 kB / 488.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003274/0.3348, allocations: 276.2 kB / 488.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3348, allocations: 4 kB / 488.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006264/0.3355, allocations: 118.2 kB / 488.9 MB, free: 3.875 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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003992/0.3395, allocations: 1.3 MB / 490.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.341, allocations: 0.615 MB / 490.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.341, allocations: 0 / 490.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.3416, allocations: 275.8 kB / 491.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007464/0.3424, allocations: 86.66 kB / 491.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.355, allocations: 4.375 MB / 495.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.3554, allocations: 0.7885 MB / 496.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.3557, allocations: 47.91 kB / 496.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.3559, allocations: 122.2 kB / 496.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3559, allocations: 1.031 kB / 496.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.397, allocations: 12.01 MB / 0.4966 GB, free: 2.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.31, allocations: 3.938 kB / 0.4966 GB, free: 2.789 MB / 366.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric_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_SimplePlantSymmetric.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe 2>&1)