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.005247/0.005247, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.00132/0.00132, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.508/1.508, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1424/0.1424, allocations: 5.387 MB / 295.9 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 71.89 kB / 412.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2563, allocations: 50.61 MB / 462.9 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimplePlantSymmetric): time 0.004698/0.261, allocations: 3.511 MB / 466.4 MB, free: 18.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.2633, allocations: 1.286 MB / 467.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002758/0.2636, allocations: 4.562 kB / 467.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005571/0.2642, allocations: 220.3 kB / 467.9 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003652/0.2646, allocations: 163.5 kB / 468.1 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.2648, allocations: 125.4 kB / 468.2 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.2654, allocations: 0.5981 MB / 468.8 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.2656, allocations: 130.3 kB / 468.9 MB, free: 17.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.2658, allocations: 224.5 kB / 469.2 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.2662, allocations: 268.9 kB / 469.4 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.811e-05/0.2663, allocations: 56.5 kB / 469.5 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.2664, allocations: 64.98 kB / 469.5 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.2665, allocations: 117.9 kB / 469.7 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.2668, allocations: 244 kB / 469.9 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00076/0.2675, allocations: 0.5557 MB / 470.5 MB, free: 16.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2675, allocations: 1.375 kB / 470.5 MB, free: 16.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.2675, allocations: 4 kB / 470.5 MB, free: 16.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.2676, allocations: 0 / 470.5 MB, free: 16.51 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.001929/0.2695, allocations: 0.8511 MB / 471.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.2696, allocations: 9.438 kB / 471.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.509e-05/0.2696, allocations: 62.36 kB / 471.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/0.2697, allocations: 50.22 kB / 471.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.2711, allocations: 0.5177 MB / 471.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.2711, allocations: 22.59 kB / 472 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.656e-05/0.2712, allocations: 25.38 kB / 472 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008565/0.272, allocations: 364.8 kB / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.272, allocations: 0 / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2721, allocations: 15.47 kB / 472.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2721, allocations: 7 kB / 472.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.2731, allocations: 367.9 kB / 472.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.2755, allocations: 1.415 MB / 474.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.2767, allocations: 452.7 kB / 474.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.2772, allocations: 159.4 kB / 474.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.2772, allocations: 6.375 kB / 474.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.2772, allocations: 36.48 kB / 474.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.2772, allocations: 1.25 kB / 474.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.005559/0.2828, allocations: 1.02 MB / 475.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.2829, allocations: 54.22 kB / 475.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.2834, allocations: 394.6 kB / 476.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.2835, allocations: 31.14 kB / 476.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2836, allocations: 228.5 kB / 476.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.389e-05/0.2837, allocations: 75.98 kB / 476.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.2838, allocations: 69.03 kB / 476.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.202e-05/0.2839, allocations: 350.4 kB / 477 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.2843, allocations: 150.9 kB / 477.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.2847, allocations: 184.9 kB / 477.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00079/0.2855, allocations: 308.7 kB / 477.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2856, allocations: 0 / 477.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.004016/0.2896, allocations: 0.8344 MB / 478.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2896, allocations: 9.547 kB / 478.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2896, allocations: 1.156 kB / 478.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.2907, allocations: 327.4 kB / 478.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.291, allocations: 54.41 kB / 478.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007462/0.2985, allocations: 4.325 MB / 483.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.299, allocations: 54.78 kB / 483.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.2991, allocations: 11.61 kB / 483.2 MB, free: 8 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.0002317/0.2993, allocations: 158.2 kB / 483.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.2994, allocations: 37.73 kB / 483.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.892e-05/0.2995, allocations: 49.61 kB / 483.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2995, allocations: 6.312 kB / 483.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2995, allocations: 96 / 483.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2995, allocations: 3.938 kB / 483.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/0.3036, allocations: 1.177 MB / 484.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.3036, allocations: 5.094 kB / 484.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.3038, allocations: 33.91 kB / 484.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006788/0.3045, allocations: 249 kB / 484.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.3045, allocations: 8.922 kB / 484.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0062/0.3107, allocations: 2.567 MB / 487.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3108, allocations: 1.094 kB / 487.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003633/0.3144, allocations: 0.7728 MB / 488.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.3146, allocations: 137.2 kB / 488.4 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.582e-05/0.3147, allocations: 6.078 kB / 488.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/0.3151, allocations: 28.94 kB / 488.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.3151, allocations: 16.42 kB / 488.5 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.3152, allocations: 11.64 kB / 488.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003207/0.3155, allocations: 280 kB / 488.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3155, allocations: 0 / 488.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005825/0.3161, allocations: 117.3 kB / 488.9 MB, free: 3.926 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.003771/0.3199, allocations: 1.313 MB / 490.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3212, allocations: 0.6096 MB / 490.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3212, allocations: 1.25 kB / 490.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005185/0.3218, allocations: 275.9 kB / 491.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006726/0.3225, allocations: 87.84 kB / 491.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.3344, allocations: 4.369 MB / 495.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.3349, allocations: 0.7908 MB / 496.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.3351, allocations: 47.16 kB / 496.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/0.3354, allocations: 123 kB / 496.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3354, allocations: 3.938 kB / 496.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04542/0.3808, allocations: 12 MB / 0.4966 GB, free: 2.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.61, allocations: 3.25 kB / 0.4966 GB, free: 2.832 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)