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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 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.001113/0.001113, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1227/0.1227, allocations: 5.381 MB / 295.8 MB, free: 2.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002585/0.002586, allocations: 67.89 kB / 361 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1139, allocations: 50.61 MB / 411.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimplePlantSymmetric): time 0.004704/0.1186, allocations: 3.502 MB / 415.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1207, allocations: 1.289 MB / 416.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003098/0.121, allocations: 4 kB / 416.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006026/0.1217, allocations: 210.7 kB / 416.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.1221, allocations: 174.7 kB / 416.8 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.1224, allocations: 111.8 kB / 416.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007409/0.1232, allocations: 0.6029 MB / 417.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.1234, allocations: 124.1 kB / 417.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.1238, allocations: 227.1 kB / 417.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.1241, allocations: 266.9 kB / 418.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.3e-05/0.1242, allocations: 56 kB / 418.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1244, allocations: 68 kB / 418.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.1245, allocations: 115.5 kB / 418.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.1248, allocations: 250.8 kB / 418.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.1253, allocations: 0.545 MB / 419.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1253, allocations: 0 / 419.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1253, allocations: 4 kB / 419.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1253, allocations: 0 / 419.1 MB, free: 3.785 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.00196/0.1273, allocations: 0.8374 MB / 420 MB, free: 2.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1273, allocations: 15.97 kB / 420 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.318e-05/0.1274, allocations: 62.73 kB / 420.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.241e-05/0.1275, allocations: 48.38 kB / 420.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.1288, allocations: 0.5024 MB / 420.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.1289, allocations: 28.5 kB / 420.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.1289, allocations: 27.98 kB / 420.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007673/0.1297, allocations: 361.3 kB / 421 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1297, allocations: 0 / 421 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.1298, allocations: 12 kB / 421 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.1298, allocations: 8 kB / 421 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.1308, allocations: 373.9 kB / 421.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1467/0.2775, allocations: 1.425 MB / 422.8 MB, free: 47.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2786, allocations: 439.1 kB / 423.3 MB, free: 47.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.2791, allocations: 165.7 kB / 423.4 MB, free: 47.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.2791, allocations: 2.531 kB / 423.4 MB, free: 47.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.2791, allocations: 43.75 kB / 423.5 MB, free: 47.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.264e-06/0.2791, allocations: 0 / 423.5 MB, free: 47.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0057/0.2849, allocations: 1.013 MB / 424.5 MB, free: 47.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/0.2849, allocations: 58.47 kB / 424.5 MB, free: 47.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.2852, allocations: 400.8 kB / 424.9 MB, free: 47.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.2853, allocations: 29.02 kB / 425 MB, free: 47.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.634e-05/0.2854, allocations: 224 kB / 425.2 MB, free: 47.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.2854, allocations: 72.33 kB / 425.2 MB, free: 47.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.2856, allocations: 68.16 kB / 425.3 MB, free: 47.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.74e-05/0.2857, allocations: 350.1 kB / 425.7 MB, free: 46.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.2861, allocations: 143.7 kB / 425.8 MB, free: 46.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003908/0.2865, allocations: 185.3 kB / 426 MB, free: 46.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007281/0.2872, allocations: 308.8 kB / 426.3 MB, free: 46.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2873, allocations: 0 / 426.3 MB, free: 46.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.004048/0.2913, allocations: 0.832 MB / 427.1 MB, free: 46.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.2913, allocations: 3.406 kB / 427.1 MB, free: 46.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2913, allocations: 3.375 kB / 427.1 MB, free: 46.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.2925, allocations: 330.7 kB / 427.4 MB, free: 46.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.2927, allocations: 51.64 kB / 427.5 MB, free: 46.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007607/0.3003, allocations: 4.329 MB / 431.8 MB, free: 43.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/0.3008, allocations: 52.16 kB / 431.9 MB, free: 43.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.3008, allocations: 18.33 kB / 431.9 MB, free: 43.3 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.0001506/0.301, allocations: 152.6 kB / 432 MB, free: 43.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.641e-05/0.3011, allocations: 37.88 kB / 432.1 MB, free: 43.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.328e-05/0.3011, allocations: 40.58 kB / 432.1 MB, free: 43.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3011, allocations: 10.58 kB / 432.1 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3012, allocations: 0 / 432.1 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3012, allocations: 0 / 432.1 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.3053, allocations: 1.174 MB / 433.3 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3053, allocations: 3.531 kB / 433.3 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.3054, allocations: 36.09 kB / 433.3 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006079/0.3061, allocations: 253.3 kB / 433.6 MB, free: 42.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3061, allocations: 11.67 kB / 433.6 MB, free: 42.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006068/0.3122, allocations: 2.555 MB / 436.1 MB, free: 40.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3122, allocations: 6.219 kB / 436.2 MB, free: 40.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003664/0.3159, allocations: 0.7715 MB / 436.9 MB, free: 40.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.316, allocations: 135.9 kB / 437.1 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.983e-05/0.3161, allocations: 7.25 kB / 437.1 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/0.3164, allocations: 31.47 kB / 437.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.3165, allocations: 21.17 kB / 437.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3165, allocations: 6.547 kB / 437.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002358/0.3168, allocations: 276.6 kB / 437.4 MB, free: 40.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3168, allocations: 3.188 kB / 437.4 MB, free: 40.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.3173, allocations: 108.1 kB / 437.5 MB, free: 40.18 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.003835/0.3211, allocations: 1.321 MB / 438.8 MB, free: 39.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.3224, allocations: 0.6017 MB / 439.4 MB, free: 39.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3224, allocations: 4.062 kB / 439.4 MB, free: 39.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004726/0.3228, allocations: 274.7 kB / 439.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005269/0.3234, allocations: 85.48 kB / 439.8 MB, free: 38.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.3344, allocations: 4.41 MB / 444.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000171/0.3346, allocations: 0.7924 MB / 445 MB, free: 35.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001947/0.3348, allocations: 43.45 kB / 445 MB, free: 35.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.3349, allocations: 124 kB / 445.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3349, allocations: 0 / 445.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03058/0.3655, allocations: 11.84 MB / 457 MB, free: 34.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.18, allocations: 10.73 kB / 457 MB, free: 34.81 MB / 350.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)