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.005811/0.005811, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001345/0.001345, allocations: 201.5 kB / 16.68 MB, free: 5.93 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.05618/0.05618, allocations: 5.41 MB / 295.9 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 63.91 kB / 408.8 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0851/0.08694, allocations: 50.62 MB / 459.4 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter): time 0.006242/0.09322, allocations: 4.367 MB / 463.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002922/0.09618, allocations: 1.596 MB / 465.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003107/0.09651, allocations: 15.94 kB / 465.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.0988, allocations: 0.9014 MB / 466.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.1003, allocations: 0.6179 MB / 466.9 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.1008, allocations: 219.5 kB / 467.1 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006897/0.1015, allocations: 0.5725 MB / 467.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.1025, allocations: 0.693 MB / 468.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.1029, allocations: 247.1 kB / 468.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.1033, allocations: 322.7 kB / 468.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1034, allocations: 72 kB / 469 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004806/0.1039, allocations: 219.8 kB / 469.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.1041, allocations: 139.5 kB / 469.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.1044, allocations: 310.6 kB / 469.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.1057, allocations: 0.9185 MB / 470.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.1057, allocations: 8 kB / 470.6 MB, free: 12.64 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.00238/0.1081, allocations: 0.9983 MB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1082, allocations: 8.031 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.1083, allocations: 110.7 kB / 471.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002078/0.1104, allocations: 308.3 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.111, allocations: 373.4 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.1111, allocations: 50.38 kB / 472.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1112, allocations: 68.38 kB / 472.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.1125, allocations: 0.7045 MB / 473.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.1126, allocations: 4 kB / 473.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.1126, allocations: 32 kB / 473.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.1127, allocations: 16 kB / 473.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1138, allocations: 0.5751 MB / 473.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.118, allocations: 2.748 MB / 476.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.1195, allocations: 0.8993 MB / 477.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.1198, allocations: 133.7 kB / 477.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.369e-05/0.1199, allocations: 89.09 kB / 477.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.12, allocations: 46.44 kB / 477.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.405e-06/0.12, allocations: 0 / 477.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008545/0.1208, allocations: 331.2 kB / 478 MB, free: 4.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.1209, allocations: 85.22 kB / 478.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.1213, allocations: 298.5 kB / 478.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.1213, allocations: 29.7 kB / 478.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.1216, allocations: 320.2 kB / 478.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1217, allocations: 111.1 kB / 478.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.1219, allocations: 90.2 kB / 479 MB, free: 3.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.122, allocations: 334.8 kB / 479.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.1224, allocations: 146.9 kB / 479.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.1228, allocations: 265.8 kB / 479.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.1235, allocations: 400.1 kB / 480.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.1235, allocations: 0 / 480.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008978/0.1244, allocations: 464.7 kB / 480.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.1244, allocations: 4 kB / 480.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.1244, allocations: 4 kB / 480.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.1245, allocations: 8.562 kB / 480.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005273/0.125, allocations: 135.8 kB / 480.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.125, allocations: 4 kB / 480.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.1254, allocations: 51.62 kB / 480.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.1254, allocations: 27.92 kB / 480.8 MB, free: 1.805 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.0003707/0.1258, allocations: 185.7 kB / 480.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-05/0.1259, allocations: 35.75 kB / 481 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007187/0.1266, allocations: 299.4 kB / 481.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1266, allocations: 4 kB / 481.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1266, allocations: 0 / 481.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.1267, allocations: 0 / 481.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.1283, allocations: 0.8807 MB / 482.2 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1283, allocations: 4 kB / 482.2 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000357/0.1287, allocations: 75.88 kB / 482.2 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1287, allocations: 0 / 482.2 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.1287, allocations: 15.98 kB / 482.2 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1287, allocations: 0 / 482.2 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1287, allocations: 7.938 kB / 482.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008733/0.1296, allocations: 0.5342 MB / 482.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-05/0.1297, allocations: 112.9 kB / 482.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.1298, allocations: 12.06 kB / 482.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.13, allocations: 11.98 kB / 482.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.1301, allocations: 27.91 kB / 483 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.1301, allocations: 4 kB / 483 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.1303, allocations: 206 kB / 483.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.1303, allocations: 0 / 483.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005781/0.1309, allocations: 143.5 kB / 483.3 MB, free: 15.16 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.001433/0.1324, allocations: 1.11 MB / 484.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007097/0.1331, allocations: 320.1 kB / 484.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1331, allocations: 0 / 484.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.1334, allocations: 119.8 kB / 484.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.1338, allocations: 32.5 kB / 484.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005068/0.1389, allocations: 3.5 MB / 488.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.1395, allocations: 0.8263 MB / 489.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.1397, allocations: 42.97 kB / 489.2 MB, free: 8.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.14, allocations: 163.4 kB / 489.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.14, allocations: 0 / 489.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03227/0.1722, allocations: 7.256 MB / 496.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.967/9.139, allocations: 15.66 kB / 496.7 MB, free: 1.691 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)