Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_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.0007808/0.0007808, allocations: 94.41 kB / 16.32 MB, free: 5.605 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.0009379/0.000938, allocations: 185.2 kB / 17.21 MB, free: 5.523 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.45/1.45, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1751/0.1751, allocations: 38.1 MB / 330.4 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 9.094 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1204, allocations: 59.17 MB / 459.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007553/0.1279, allocations: 6.516 MB / 465.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003342/0.1313, allocations: 1.719 MB / 467.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004688/0.1318, allocations: 47.69 kB / 467.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004671/0.1323, allocations: 146.9 kB / 467.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009941/0.1333, allocations: 449.7 kB / 468.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005648/0.1339, allocations: 223.6 kB / 468.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.135, allocations: 1.102 MB / 469.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.1353, allocations: 180.3 kB / 469.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004838/0.1358, allocations: 350.3 kB / 470 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007231/0.1366, allocations: 454.5 kB / 470.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.1366, allocations: 24 kB / 470.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.363e-05/0.1367, allocations: 27.94 kB / 470.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.137, allocations: 235.4 kB / 470.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.1371, allocations: 137.4 kB / 470.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.1376, allocations: 0.4948 MB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1376, allocations: 0 / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1377, allocations: 4 kB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1377, allocations: 0 / 471.4 MB, free: 11.2 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001588/0.1393, allocations: 0.8511 MB / 472.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1393, allocations: 12.03 kB / 472.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.1394, allocations: 90.52 kB / 472.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.1396, allocations: 67.16 kB / 472.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/0.1404, allocations: 0.517 MB / 472.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/0.1404, allocations: 37 kB / 473 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.76e-05/0.1405, allocations: 48 kB / 473 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009244/0.1414, allocations: 0.6171 MB / 473.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1415, allocations: 4 kB / 473.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.1415, allocations: 20 kB / 473.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.1416, allocations: 32.97 kB / 473.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008254/0.1425, allocations: 0.5034 MB / 474.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.1457, allocations: 2.245 MB / 476.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008526/0.1466, allocations: 493 kB / 476.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005718/0.1472, allocations: 341.6 kB / 477.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.1472, allocations: 4 kB / 477.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1472, allocations: 46.52 kB / 477.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.1473, allocations: 0 / 477.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003343/0.1506, allocations: 1.757 MB / 479.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.1507, allocations: 89.09 kB / 479.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004297/0.1511, allocations: 409.9 kB / 479.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/0.1512, allocations: 37.83 kB / 479.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.1514, allocations: 296.4 kB / 479.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.1515, allocations: 165.6 kB / 480 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.1516, allocations: 12 kB / 480 MB, free: 2.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1517, allocations: 366.7 kB / 480.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.152, allocations: 185 kB / 480.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003503/0.1524, allocations: 303.7 kB / 480.9 MB, free: 1.277 MB / 350.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.001825/0.1542, allocations: 0.7701 MB / 481.7 MB, free: 500 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1542, allocations: 0 / 481.7 MB, free: 500 kB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001125/0.1553, allocations: 0.7028 MB / 482.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1554, allocations: 8 kB / 482.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1554, allocations: 3.938 kB / 482.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003797/0.1558, allocations: 141.1 kB / 482.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.1562, allocations: 115.7 kB / 482.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/0.1591, allocations: 2.358 MB / 485 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.1594, allocations: 24.02 kB / 485 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.1594, allocations: 24 kB / 485 MB, free: 12.96 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 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 (54): * Single equations (assignments): 53 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003611/0.1598, allocations: 226.5 kB / 485.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.1599, allocations: 51.3 kB / 485.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.1612, allocations: 0.6583 MB / 486 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.1613, allocations: 11.98 kB / 486 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1613, allocations: 3.938 kB / 486 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.1613, allocations: 7.984 kB / 486 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.1636, allocations: 1.357 MB / 487.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1636, allocations: 7.984 kB / 487.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/0.1639, allocations: 79.8 kB / 487.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.1644, allocations: 152.8 kB / 487.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1644, allocations: 16 kB / 487.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.1674, allocations: 2.369 MB / 490 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1674, allocations: 8 kB / 490 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.1689, allocations: 0.9731 MB / 490.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.169, allocations: 128.5 kB / 491.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.1691, allocations: 11.94 kB / 491.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.1693, allocations: 20.03 kB / 491.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.26e-05/0.1694, allocations: 39.89 kB / 491.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.1694, allocations: 16 kB / 491.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003127/0.1697, allocations: 287.1 kB / 491.4 MB, free: 6.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1698, allocations: 0 / 491.4 MB, free: 6.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.1704, allocations: 148 kB / 491.6 MB, free: 6.117 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (41): * Single equations (assignments): 39 * 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,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001665/0.1721, allocations: 1.523 MB / 493.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.1732, allocations: 0.6608 MB / 493.8 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1732, allocations: 0 / 493.8 MB, free: 3.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.1739, allocations: 442.2 kB / 494.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.1746, allocations: 122.3 kB / 494.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006009/0.1806, allocations: 3.685 MB / 498 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.1813, allocations: 0.9295 MB / 498.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003818/0.1817, allocations: 108.7 kB / 499 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002777/0.182, allocations: 195.4 kB / 499.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.182, allocations: 0 / 499.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.2083, allocations: 11.24 MB / 0.4985 GB, free: 3.258 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/0.2086, allocations: 222.7 kB / 0.4987 GB, free: 3.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.286, allocations: 0 / 0.4987 GB, free: 3.02 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat does not exist to compare? outputFormat=mat