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.001437/0.001438, 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.00167/0.00167, allocations: 192.1 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1421/0.1421, allocations: 5.397 MB / 295.8 MB, free: 2.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.89 kB / 357.5 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08863, allocations: 50.61 MB / 408.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter): time 0.005624/0.09429, allocations: 4.365 MB / 412.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.09698, allocations: 1.593 MB / 414.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.09722, allocations: 16 kB / 414.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.09927, allocations: 0.8864 MB / 415 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.1006, allocations: 0.6335 MB / 415.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.101, allocations: 231.5 kB / 415.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005358/0.1016, allocations: 0.5648 MB / 416.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000961/0.1025, allocations: 0.6851 MB / 417.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.1028, allocations: 251.1 kB / 417.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.1032, allocations: 326.7 kB / 417.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.54e-05/0.1033, allocations: 72 kB / 417.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004246/0.1037, allocations: 211.9 kB / 417.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1038, allocations: 147.5 kB / 418.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.1041, allocations: 306.6 kB / 418.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009332/0.105, allocations: 0.8996 MB / 419.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1051, allocations: 3.938 kB / 419.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1051, allocations: 0 / 419.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.1051, allocations: 0 / 419.3 MB, free: 3.594 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.002143/0.1072, allocations: 0.9954 MB / 420.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1073, allocations: 12.03 kB / 420.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.1074, allocations: 118.6 kB / 420.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001957/0.1094, allocations: 300 kB / 420.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.1098, allocations: 368 kB / 421.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.644e-05/0.1099, allocations: 46.38 kB / 421.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.694e-05/0.11, allocations: 64.38 kB / 421.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.1112, allocations: 0.7007 MB / 421.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.1112, allocations: 3.938 kB / 421.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.1113, allocations: 32 kB / 421.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.1113, allocations: 16 kB / 421.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.1123, allocations: 0.5713 MB / 422.5 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1463/0.2586, allocations: 2.765 MB / 425.3 MB, free: 45.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.2598, allocations: 0.9024 MB / 426.2 MB, free: 45.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.26, allocations: 131.3 kB / 426.3 MB, free: 45.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.26, allocations: 86.2 kB / 426.4 MB, free: 45.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.429e-05/0.2601, allocations: 44.78 kB / 426.4 MB, free: 45.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.994e-06/0.2601, allocations: 0 / 426.4 MB, free: 45.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006751/0.2607, allocations: 332.3 kB / 426.7 MB, free: 45.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.2608, allocations: 84.17 kB / 426.8 MB, free: 44.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.261, allocations: 290 kB / 427.1 MB, free: 44.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.261, allocations: 32.89 kB / 427.1 MB, free: 44.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.539e-05/0.2611, allocations: 312.6 kB / 427.4 MB, free: 44.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.574e-05/0.2612, allocations: 96.17 kB / 427.5 MB, free: 44.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.2613, allocations: 90.02 kB / 427.6 MB, free: 44.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.2614, allocations: 347 kB / 428 MB, free: 44.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.2616, allocations: 143.1 kB / 428.1 MB, free: 43.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.2619, allocations: 268.6 kB / 428.4 MB, free: 43.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004717/0.2624, allocations: 396 kB / 428.8 MB, free: 43.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2624, allocations: 0 / 428.8 MB, free: 43.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006696/0.2631, allocations: 460.1 kB / 429.2 MB, free: 43.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2631, allocations: 5.141 kB / 429.2 MB, free: 43.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2631, allocations: 4.875 kB / 429.2 MB, free: 43.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.2631, allocations: 6.25 kB / 429.2 MB, free: 43.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004632/0.2636, allocations: 130.5 kB / 429.3 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.2636, allocations: 10.62 kB / 429.4 MB, free: 43.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.2639, allocations: 59.84 kB / 429.4 MB, free: 43.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.2639, allocations: 20.56 kB / 429.4 MB, free: 43.3 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.0002446/0.2642, allocations: 189.2 kB / 429.6 MB, free: 43.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.2643, allocations: 25.12 kB / 429.6 MB, free: 43.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000541/0.2648, allocations: 300.8 kB / 429.9 MB, free: 43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2648, allocations: 3.25 kB / 429.9 MB, free: 43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2648, allocations: 7.094 kB / 429.9 MB, free: 42.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2648, allocations: 3.422 kB / 430 MB, free: 42.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.266, allocations: 0.8728 MB / 430.8 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.266, allocations: 1.406 kB / 430.8 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.2663, allocations: 74.25 kB / 430.9 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.2663, allocations: 6.969 kB / 430.9 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.2664, allocations: 10.83 kB / 430.9 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2664, allocations: 0 / 430.9 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2664, allocations: 3.188 kB / 430.9 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.267, allocations: 0.5467 MB / 431.5 MB, free: 42.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.2671, allocations: 106.2 kB / 431.6 MB, free: 42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.528e-05/0.2672, allocations: 10.61 kB / 431.6 MB, free: 42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.2674, allocations: 10.22 kB / 431.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.2674, allocations: 21.27 kB / 431.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.2675, allocations: 6.406 kB / 431.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.2676, allocations: 205.2 kB / 431.8 MB, free: 41.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2676, allocations: 3.281 kB / 431.8 MB, free: 41.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.2681, allocations: 139.1 kB / 432 MB, free: 41.82 MB / 350.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.0008482/0.269, allocations: 1.125 MB / 433.1 MB, free: 40.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005936/0.2696, allocations: 319.3 kB / 433.4 MB, free: 40.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2696, allocations: 0 / 433.4 MB, free: 40.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.2698, allocations: 132.9 kB / 433.5 MB, free: 40.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.2702, allocations: 23.5 kB / 433.5 MB, free: 40.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.2737, allocations: 3.502 MB / 437 MB, free: 38.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002098/0.2739, allocations: 0.8227 MB / 437.9 MB, free: 37.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.2741, allocations: 49.78 kB / 437.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.2743, allocations: 163.4 kB / 438.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2743, allocations: 4 kB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.2967, allocations: 7.093 MB / 445.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.343/7.639, allocations: 19.97 kB / 445.2 MB, free: 36.79 MB / 350.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)