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.007212/0.007212, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001406/0.001406, allocations: 202.3 kB / 16.68 MB, free: 5.965 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1866/0.1866, allocations: 5.38 MB / 295.9 MB, free: 2.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 59.91 kB / 408.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2769, allocations: 50.61 MB / 459.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.SinglePhaseVoltageControlledConverter): time 0.005197/0.2822, allocations: 4.367 MB / 463.8 MB, free: 16.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.2849, allocations: 1.598 MB / 465.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004082/0.2853, allocations: 12.72 kB / 465.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002065/0.2875, allocations: 0.9055 MB / 466.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001428/0.2889, allocations: 0.6184 MB / 466.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.2894, allocations: 227 kB / 467.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006317/0.29, allocations: 0.5679 MB / 467.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009739/0.291, allocations: 0.6835 MB / 468.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.2914, allocations: 261.5 kB / 468.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.2918, allocations: 321 kB / 468.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.227e-05/0.2919, allocations: 70 kB / 469 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004862/0.2924, allocations: 216.4 kB / 469.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.2925, allocations: 141 kB / 469.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.2928, allocations: 308.6 kB / 469.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.2942, allocations: 0.9187 MB / 470.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2942, allocations: 4.734 kB / 470.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2942, allocations: 5.375 kB / 470.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.2942, allocations: 0 / 470.6 MB, free: 12.34 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.002371/0.2966, allocations: 1 MB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.2967, allocations: 13.41 kB / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.2968, allocations: 112.1 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/0.2988, allocations: 307.1 kB / 472 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.2994, allocations: 366.4 kB / 472.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.2995, allocations: 49.22 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2996, allocations: 63.38 kB / 472.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3008, allocations: 0.7064 MB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.3008, allocations: 0.875 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.448e-05/0.3009, allocations: 31.72 kB / 473.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.3009, allocations: 16.25 kB / 473.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.302, allocations: 0.575 MB / 473.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/0.3055, allocations: 2.752 MB / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.3067, allocations: 0.9049 MB / 477.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.3069, allocations: 132.7 kB / 477.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.534e-05/0.307, allocations: 90.8 kB / 477.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.307, allocations: 39.84 kB / 477.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.933e-06/0.307, allocations: 0 / 477.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007934/0.3078, allocations: 336.9 kB / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.3079, allocations: 85.14 kB / 478.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/0.3082, allocations: 298.3 kB / 478.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.3082, allocations: 25.7 kB / 478.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.3084, allocations: 330.8 kB / 478.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.784e-05/0.3085, allocations: 100.6 kB / 478.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.3086, allocations: 89.58 kB / 479 MB, free: 6.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.403e-05/0.3087, allocations: 333.5 kB / 479.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.309, allocations: 150.7 kB / 479.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.3094, allocations: 260.3 kB / 479.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005561/0.3099, allocations: 399.3 kB / 480.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3099, allocations: 1.219 kB / 480.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007813/0.3107, allocations: 462.5 kB / 480.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.3107, allocations: 7.344 kB / 480.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3108, allocations: 4.547 kB / 480.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.3108, allocations: 7.906 kB / 480.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.3113, allocations: 127.3 kB / 480.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.3113, allocations: 9.297 kB / 480.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3116, allocations: 60.08 kB / 480.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.3117, allocations: 21.16 kB / 480.8 MB, free: 5.605 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.0002603/0.3119, allocations: 195.2 kB / 480.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/0.312, allocations: 32.78 kB / 481 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006268/0.3126, allocations: 294 kB / 481.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.3127, allocations: 7.125 kB / 481.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3127, allocations: 1.062 kB / 481.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.3127, allocations: 2.344 kB / 481.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.3142, allocations: 0.8745 MB / 482.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.3142, allocations: 1.312 kB / 482.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003529/0.3146, allocations: 77.08 kB / 482.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.3146, allocations: 6.234 kB / 482.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3146, allocations: 10.52 kB / 482.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3146, allocations: 2.094 kB / 482.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3146, allocations: 4.453 kB / 482.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000732/0.3154, allocations: 0.5402 MB / 482.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-05/0.3154, allocations: 116.5 kB / 482.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.3155, allocations: 7.344 kB / 482.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.3157, allocations: 10.75 kB / 482.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/0.3158, allocations: 23.45 kB / 482.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3158, allocations: 11.12 kB / 483 MB, free: 4.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.316, allocations: 204.6 kB / 483.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.316, allocations: 0 / 483.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005847/0.3166, allocations: 142.8 kB / 483.3 MB, free: 4.059 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.001015/0.3176, allocations: 1.115 MB / 484.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006537/0.3183, allocations: 320 kB / 484.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3183, allocations: 0 / 484.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.3185, allocations: 117.2 kB / 484.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.319, allocations: 40.58 kB / 484.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/0.3234, allocations: 3.503 MB / 488.4 MB, free: 500 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.3237, allocations: 0.8203 MB / 489.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001836/0.3239, allocations: 46.14 kB / 489.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.3241, allocations: 163.8 kB / 489.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3241, allocations: 0 / 489.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.3528, allocations: 7.24 MB / 496.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.632/8.985, allocations: 14.19 kB / 496.7 MB, free: 11.7 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)