Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.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.ComponentTesting.SinglePhaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_SinglePhaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_SinglePhaseVoltageControlledConverter",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.005955/0.005955, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001163/0.001163, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03475/0.03475, allocations: 5.398 MB / 295.9 MB, free: 9.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 57.22 kB / 408.8 MB, free: 26.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08958, allocations: 50.62 MB / 459.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter): time 0.005926/0.09554, allocations: 4.363 MB / 463.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002957/0.09854, allocations: 1.596 MB / 465.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005105/0.09908, allocations: 12 kB / 465.4 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.1015, allocations: 0.9091 MB / 466.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.1033, allocations: 0.6179 MB / 466.9 MB, free: 236 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006157/0.104, allocations: 223.4 kB / 467.1 MB, free: 12 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008234/0.1048, allocations: 0.5726 MB / 467.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.106, allocations: 0.6891 MB / 468.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.1063, allocations: 247.1 kB / 468.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004378/0.1068, allocations: 326.7 kB / 468.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.1069, allocations: 72 kB / 469 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004786/0.1074, allocations: 215.9 kB / 469.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1075, allocations: 139.5 kB / 469.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.1078, allocations: 318.5 kB / 469.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.109, allocations: 0.9107 MB / 470.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.109, allocations: 0 / 470.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1091, allocations: 0 / 470.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.441e-05/0.1091, allocations: 4 kB / 470.6 MB, free: 12.53 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002412/0.1115, allocations: 0.9983 MB / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1116, allocations: 12.03 kB / 471.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.1117, allocations: 114.6 kB / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002079/0.1138, allocations: 316.2 kB / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.1144, allocations: 361.5 kB / 472.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.1145, allocations: 50.38 kB / 472.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.1146, allocations: 68.38 kB / 472.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.1159, allocations: 0.7007 MB / 473.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.116, allocations: 0 / 473.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/0.1161, allocations: 28 kB / 473.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.1161, allocations: 16 kB / 473.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.1172, allocations: 0.5751 MB / 473.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.1212, allocations: 2.759 MB / 476.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.1226, allocations: 0.9075 MB / 477.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.1228, allocations: 129.7 kB / 477.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.524e-05/0.1229, allocations: 85.11 kB / 477.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.123, allocations: 42.5 kB / 477.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.084e-06/0.123, allocations: 0 / 477.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008111/0.1238, allocations: 331.2 kB / 478 MB, free: 4.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.1239, allocations: 81.11 kB / 478.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.1242, allocations: 302.6 kB / 478.4 MB, free: 4.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.1243, allocations: 33.64 kB / 478.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/0.1246, allocations: 320.2 kB / 478.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.1247, allocations: 107.1 kB / 478.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.1248, allocations: 94.14 kB / 479 MB, free: 3.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.125, allocations: 334.8 kB / 479.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.1253, allocations: 146.9 kB / 479.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.1257, allocations: 265.8 kB / 479.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/0.1264, allocations: 400.1 kB / 480.1 MB, free: 2.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1264, allocations: 0 / 480.1 MB, free: 2.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009496/0.1273, allocations: 464.7 kB / 480.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1274, allocations: 7.938 kB / 480.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1274, allocations: 4 kB / 480.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.1274, allocations: 8 kB / 480.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005181/0.1279, allocations: 124.4 kB / 480.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.128, allocations: 11.92 kB / 480.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.1283, allocations: 55.62 kB / 480.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.1284, allocations: 19.98 kB / 480.8 MB, free: 1.691 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004416/0.1288, allocations: 193 kB / 480.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-05/0.1289, allocations: 31.75 kB / 481 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006931/0.1296, allocations: 291.5 kB / 481.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.1296, allocations: 7.984 kB / 481.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.1297, allocations: 4 kB / 481.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1297, allocations: 0 / 481.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.1312, allocations: 0.8846 MB / 482.2 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.1313, allocations: 4 kB / 482.2 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.1316, allocations: 71.94 kB / 482.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.1316, allocations: 0 / 482.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.1317, allocations: 8 kB / 482.2 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1317, allocations: 4 kB / 482.2 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.1317, allocations: 11.88 kB / 482.3 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008624/0.1326, allocations: 0.5342 MB / 482.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.1327, allocations: 112.9 kB / 482.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.347e-05/0.1328, allocations: 8 kB / 482.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.133, allocations: 16.05 kB / 482.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.021e-05/0.1331, allocations: 23.92 kB / 482.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1331, allocations: 4 kB / 483 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002841/0.1334, allocations: 209.9 kB / 483.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1334, allocations: 0 / 483.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006419/0.1341, allocations: 143.5 kB / 483.3 MB, free: 15.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (voltageSource.pin_p.reference.gamma,converter.integrator.y) * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/0.1355, allocations: 1.11 MB / 484.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.1363, allocations: 316.4 kB / 484.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1363, allocations: 0 / 484.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.1366, allocations: 127.8 kB / 484.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/0.1371, allocations: 36.38 kB / 484.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005575/0.1427, allocations: 3.503 MB / 488.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.1433, allocations: 0.8263 MB / 489.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.1436, allocations: 42.97 kB / 489.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.1439, allocations: 163.4 kB / 489.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1439, allocations: 0 / 489.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.1749, allocations: 7.247 MB / 496.7 MB, free: 1.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.579/8.754, allocations: 23.2 kB / 496.7 MB, free: 1.562 MB / 366.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter_res.csv --start-time 0 --stop-time 180 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.072 PhotoVoltaics_PhotoVoltaics_ComponentTesting_SinglePhaseVoltageControlledConverter.fmu > PhotoVoltaics_PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter.pipe 2>&1)