Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001231/0.001231, allocations: 109.2 kB / 16.92 MB, free: 6.145 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.001356/0.001356, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.324/1.324, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1746/0.1746, allocations: 38.03 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 66.83 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1045, allocations: 58.07 MB / 457 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008313/0.1129, allocations: 6.472 MB / 463.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004215/0.1171, allocations: 1.881 MB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006088/0.1178, allocations: 23.88 kB / 465.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001811/0.1196, allocations: 445.9 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.1212, allocations: 413.8 kB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1224, allocations: 351.2 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.1235, allocations: 1.028 MB / 467.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006992/0.1242, allocations: 0.4965 MB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006757/0.1249, allocations: 462.1 kB / 468.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008496/0.1258, allocations: 0.5646 MB / 469.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.126, allocations: 68 kB / 469.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005799/0.1266, allocations: 271.6 kB / 469.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.1269, allocations: 375 kB / 469.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005713/0.1275, allocations: 425.9 kB / 470.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1286, allocations: 1.024 MB / 471.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1286, allocations: 7.922 kB / 471.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1286, allocations: 0 / 471.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.558e-05/0.1287, allocations: 4 kB / 471.2 MB, free: 9.609 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002423/0.1311, allocations: 1.117 MB / 472.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1311, allocations: 11.89 kB / 472.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.1313, allocations: 114.8 kB / 472.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007707/0.1321, allocations: 127.8 kB / 472.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.1332, allocations: 0.5767 MB / 473.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.1332, allocations: 49.67 kB / 473.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.1334, allocations: 75.92 kB / 473.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1349, allocations: 1.014 MB / 474.3 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.1349, allocations: 7.938 kB / 474.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.135, allocations: 20 kB / 474.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002108/0.1352, allocations: 77.94 kB / 474.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.1367, allocations: 0.9719 MB / 475.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004868/0.1416, allocations: 3.279 MB / 478.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1427, allocations: 0.684 MB / 479.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006079/0.1434, allocations: 423.5 kB / 479.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.989e-05/0.1434, allocations: 9.484 kB / 479.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.1435, allocations: 47.06 kB / 479.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 3.346e-06/0.1435, allocations: 0 / 479.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003861/0.1473, allocations: 2.427 MB / 482.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.1474, allocations: 89.67 kB / 482.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004822/0.1479, allocations: 437.8 kB / 482.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.148, allocations: 41.69 kB / 482.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.1482, allocations: 363.5 kB / 483.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.1484, allocations: 256.2 kB / 483.4 MB, free: 13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.1486, allocations: 146.6 kB / 483.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1488, allocations: 382.7 kB / 483.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005329/0.1493, allocations: 341.8 kB / 484.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006335/0.15, allocations: 0.5224 MB / 484.8 MB, free: 11.54 MB / 366.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.004977/0.155, allocations: 2.249 MB / 487 MB, free: 9.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.155, allocations: 0 / 487 MB, free: 9.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001687/0.1567, allocations: 1.101 MB / 488.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.1567, allocations: 8 kB / 488.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.1567, allocations: 4.656 kB / 488.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.1569, allocations: 52.7 kB / 488.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.1576, allocations: 183.8 kB / 488.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.1589, allocations: 1.496 MB / 489.9 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.1594, allocations: 39.88 kB / 489.9 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-05/0.1594, allocations: 31.98 kB / 489.9 MB, free: 6.117 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000407/0.1599, allocations: 293.4 kB / 490.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.16, allocations: 63.19 kB / 490.3 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.1614, allocations: 0.97 MB / 491.2 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/0.1615, allocations: 12 kB / 491.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1615, allocations: 11.94 kB / 491.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.1615, allocations: 3.984 kB / 491.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.1646, allocations: 1.993 MB / 493.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.1646, allocations: 12 kB / 493.3 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006554/0.1653, allocations: 147.8 kB / 493.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.1654, allocations: 45.39 kB / 493.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.1655, allocations: 16 kB / 493.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.1665, allocations: 1.504 MB / 495 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1666, allocations: 4 kB / 495 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.1684, allocations: 1.529 MB / 496.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001712/0.1686, allocations: 140.4 kB / 496.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.349e-05/0.1687, allocations: 16 kB / 496.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.1691, allocations: 39.95 kB / 496.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.542e-05/0.1692, allocations: 56.36 kB / 496.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.1693, allocations: 32 kB / 496.8 MB, free: 14.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003288/0.1696, allocations: 295.1 kB / 497.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1696, allocations: 0 / 497.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007517/0.1704, allocations: 184 kB / 497.3 MB, free: 14.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002267/0.1726, allocations: 2.124 MB / 499.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.1746, allocations: 1.172 MB / 0.4888 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.1746, allocations: 3.938 kB / 0.4888 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006843/0.1753, allocations: 0.527 MB / 0.4893 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008604/0.1762, allocations: 148.4 kB / 0.4895 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009113/0.1853, allocations: 7.154 MB / 0.4965 GB, free: 2.703 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.186, allocations: 1.012 MB / 0.4975 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00063/0.1866, allocations: 213.3 kB / 0.4977 GB, free: 1.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.187, allocations: 275.3 kB / 0.4979 GB, free: 1.184 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1871, allocations: 0 / 0.4979 GB, free: 1.184 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.2253, allocations: 14.27 MB / 0.5119 GB, free: 3.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.415/9.641, allocations: 7.938 kB / 0.5119 GB, free: 3.047 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)