Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001026/0.001026, allocations: 90 kB / 16.31 MB, free: 6.008 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.00106/0.00106, allocations: 180.9 kB / 17.2 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 223.4 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3112/0.3112, allocations: 38.04 MB / 309.7 MB, free: 8.992 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005343/0.0005343, allocations: 14.19 kB / 376.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09809, allocations: 56.34 MB / 432.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006939/0.1051, allocations: 6.222 MB / 439.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003303/0.1084, allocations: 1.809 MB / 441 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007571/0.1092, allocations: 43.69 kB / 441 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004343/0.1097, allocations: 147 kB / 441.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008743/0.1105, allocations: 362.9 kB / 441.5 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005963/0.1112, allocations: 223.6 kB / 441.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005794/0.1117, allocations: 491 kB / 442.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.112, allocations: 184.3 kB / 442.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003965/0.1124, allocations: 302.9 kB / 442.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.1129, allocations: 330.8 kB / 443 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.113, allocations: 24 kB / 443 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.464e-05/0.1131, allocations: 24 kB / 443 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.1133, allocations: 215.5 kB / 443.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.1134, allocations: 141.4 kB / 443.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004341/0.1139, allocations: 0.4909 MB / 443.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1139, allocations: 0 / 443.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1139, allocations: 0 / 443.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1139, allocations: 0 / 443.9 MB, free: 11.73 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001446/0.1153, allocations: 0.8511 MB / 444.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1154, allocations: 8.031 kB / 444.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1155, allocations: 94.52 kB / 444.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.1156, allocations: 67.16 kB / 444.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000871/0.1165, allocations: 0.5054 MB / 445.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.1165, allocations: 37 kB / 445.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/0.1166, allocations: 51.94 kB / 445.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008492/0.1175, allocations: 0.6171 MB / 446.1 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1175, allocations: 4 kB / 446.1 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.1175, allocations: 20 kB / 446.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.937e-05/0.1176, allocations: 32.97 kB / 446.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007376/0.1184, allocations: 0.5034 MB / 446.7 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003021/0.1214, allocations: 2.238 MB / 448.9 MB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008294/0.1223, allocations: 0.4932 MB / 449.4 MB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.1223, allocations: 4.062 kB / 449.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.1223, allocations: 42.5 kB / 449.4 MB, free: 5.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.1223, allocations: 3.938 kB / 449.5 MB, free: 5.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.00322/0.1256, allocations: 1.723 MB / 451.2 MB, free: 4.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.1256, allocations: 81.11 kB / 451.3 MB, free: 4.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004195/0.1261, allocations: 417.8 kB / 451.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.1261, allocations: 33.7 kB / 451.7 MB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1263, allocations: 296.6 kB / 452 MB, free: 3.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.1264, allocations: 161.7 kB / 452.1 MB, free: 3.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.253e-05/0.1265, allocations: 12 kB / 452.2 MB, free: 3.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1266, allocations: 362.8 kB / 452.5 MB, free: 2.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.1269, allocations: 181 kB / 452.7 MB, free: 2.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003705/0.1273, allocations: 307.6 kB / 453 MB, free: 2.199 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.1291, allocations: 0.7568 MB / 453.7 MB, free: 1.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1291, allocations: 0 / 453.7 MB, free: 1.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001058/0.1302, allocations: 0.6951 MB / 454.4 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1302, allocations: 11.98 kB / 454.4 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.1302, allocations: 4 kB / 454.5 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000346/0.1306, allocations: 128.7 kB / 454.6 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.131, allocations: 120 kB / 454.7 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.183/0.314, allocations: 2.334 MB / 457 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000394/0.3145, allocations: 24.89 kB / 457.1 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.3145, allocations: 20.47 kB / 457.1 MB, free: 50.05 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.3148, allocations: 227.9 kB / 457.3 MB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.956e-05/0.3149, allocations: 57.12 kB / 457.4 MB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009684/0.3158, allocations: 0.6456 MB / 458 MB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3158, allocations: 5.969 kB / 458 MB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3159, allocations: 3.094 kB / 458 MB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3159, allocations: 5.703 kB / 458 MB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.3175, allocations: 1.357 MB / 459.4 MB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3176, allocations: 0 / 459.4 MB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.3179, allocations: 78.7 kB / 459.4 MB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003317/0.3182, allocations: 137.4 kB / 459.6 MB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.3183, allocations: 14.81 kB / 459.6 MB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.3204, allocations: 2.349 MB / 461.9 MB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3204, allocations: 3.094 kB / 461.9 MB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.3216, allocations: 1.029 MB / 463 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.047e-05/0.3217, allocations: 124.2 kB / 463.1 MB, free: 47.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.3218, allocations: 17.48 kB / 463.1 MB, free: 47.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.322, allocations: 19.91 kB / 463.1 MB, free: 47.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.605e-05/0.3221, allocations: 44.47 kB / 463.2 MB, free: 47.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.3221, allocations: 16.75 kB / 463.2 MB, free: 47.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.3223, allocations: 283.1 kB / 463.5 MB, free: 47.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3223, allocations: 0 / 463.5 MB, free: 47.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005414/0.3229, allocations: 142.9 kB / 463.6 MB, free: 47.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001569/0.3245, allocations: 1.929 MB / 465.5 MB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.3255, allocations: 0.6588 MB / 466.2 MB, free: 46.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3255, allocations: 0 / 466.2 MB, free: 46.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005087/0.326, allocations: 424.6 kB / 466.6 MB, free: 46.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/0.3266, allocations: 114 kB / 466.7 MB, free: 46.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.331, allocations: 5.913 MB / 472.6 MB, free: 42.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.3314, allocations: 0.9418 MB / 473.6 MB, free: 41.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.3317, allocations: 103.9 kB / 473.7 MB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.3319, allocations: 195.3 kB / 473.9 MB, free: 41.18 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3319, allocations: 3.938 kB / 473.9 MB, free: 41.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.3528, allocations: 11.06 MB / 484.9 MB, free: 40.31 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001286/0.3529, allocations: 208.2 kB / 485.1 MB, free: 40.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.245, allocations: 0 / 485.1 MB, free: 40.07 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: