Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001368/0.001368, allocations: 105.8 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.001511/0.001511, 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.331/1.331, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1819/0.1819, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002076, allocations: 60.64 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1292, allocations: 58.06 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.00712/0.1364, allocations: 4.576 MB / 461.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002685/0.1391, allocations: 1.468 MB / 463 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004177/0.1396, allocations: 15.88 kB / 463 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.1409, allocations: 385.9 kB / 463.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008803/0.1418, allocations: 234.8 kB / 463.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009224/0.1428, allocations: 251.4 kB / 463.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000841/0.1436, allocations: 0.5573 MB / 464.4 MB, free: 456 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005724/0.1442, allocations: 334.4 kB / 464.8 MB, free: 128 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.1447, allocations: 263 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006393/0.1454, allocations: 315 kB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.1455, allocations: 36 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003621/0.1459, allocations: 139.8 kB / 465.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002839/0.1462, allocations: 231.4 kB / 465.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.1466, allocations: 242.8 kB / 466 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008004/0.1474, allocations: 0.5879 MB / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1474, allocations: 0 / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1474, allocations: 0 / 466.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.92e-05/0.1474, allocations: 0 / 466.5 MB, free: 14.33 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001587/0.149, allocations: 0.766 MB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1491, allocations: 11.89 kB / 467.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.1492, allocations: 90.64 kB / 467.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006513/0.1499, allocations: 92.22 kB / 467.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.1506, allocations: 407.9 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.1506, allocations: 33.38 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.1507, allocations: 55.92 kB / 468 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009079/0.1517, allocations: 0.648 MB / 468.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.1517, allocations: 0 / 468.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.1517, allocations: 16 kB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001204/0.1519, allocations: 32.98 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007672/0.1526, allocations: 483.5 kB / 469.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003668/0.1563, allocations: 3.018 MB / 472.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.1567, allocations: 185.1 kB / 472.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.1568, allocations: 101.7 kB / 472.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.1569, allocations: 7.922 kB / 472.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.1569, allocations: 42.55 kB / 472.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.004e-06/0.1569, allocations: 0 / 472.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001466/0.1584, allocations: 0.8343 MB / 473.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.1584, allocations: 81.06 kB / 473.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.1588, allocations: 357.4 kB / 473.8 MB, free: 6.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1588, allocations: 25.7 kB / 473.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.159, allocations: 303 kB / 474.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.521e-05/0.1591, allocations: 78.98 kB / 474.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.1592, allocations: 89.94 kB / 474.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1593, allocations: 350.8 kB / 474.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1595, allocations: 124.8 kB / 474.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.1599, allocations: 326.8 kB / 475 MB, free: 5.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.1604, allocations: 0.493 MB / 475.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.1605, allocations: 7.938 kB / 475.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001046/0.1615, allocations: 0.5565 MB / 476.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1615, allocations: 8 kB / 476.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005399/0.1621, allocations: 278.9 kB / 476.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.1625, allocations: 80.78 kB / 476.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.1629, allocations: 91.83 kB / 476.5 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/0.1646, allocations: 1.735 MB / 478.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.1649, allocations: 12 kB / 478.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.165, allocations: 31.92 kB / 478.3 MB, free: 1.738 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.1653, allocations: 213.5 kB / 478.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8e-05/0.1653, allocations: 35.53 kB / 478.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005596/0.1659, allocations: 300.6 kB / 478.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1659, allocations: 4.141 kB / 478.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1659, allocations: 3.984 kB / 478.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1659, allocations: 4 kB / 478.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.1673, allocations: 0.7871 MB / 479.6 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.1673, allocations: 11.92 kB / 479.7 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.1676, allocations: 55.97 kB / 479.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.1676, allocations: 4 kB / 479.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.1677, allocations: 4 kB / 479.7 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.1677, allocations: 7.938 kB / 479.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1677, allocations: 0 / 479.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006306/0.1683, allocations: 484.8 kB / 480.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1684, allocations: 104.7 kB / 480.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.1685, allocations: 7.938 kB / 480.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1687, allocations: 12.03 kB / 480.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.1687, allocations: 15.98 kB / 480.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.1687, allocations: 11.98 kB / 480.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002869/0.169, allocations: 235.2 kB / 480.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.169, allocations: 0 / 480.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005015/0.1695, allocations: 96 kB / 480.7 MB, free: 15.26 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000937/0.1705, allocations: 1.003 MB / 481.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007861/0.1713, allocations: 467.8 kB / 482.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.1713, allocations: 0 / 482.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.1715, allocations: 116.2 kB / 482.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.172, allocations: 73.41 kB / 482.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.1776, allocations: 4.005 MB / 486.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.1781, allocations: 0.8662 MB / 487.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003243/0.1785, allocations: 119 kB / 487.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.1787, allocations: 147.4 kB / 487.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of SimCode: time 2.104e-06/0.1787, allocations: 0 / 487.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.2098, allocations: 7.264 MB / 494.7 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.3/9.51, allocations: 3.234 kB / 494.7 MB, free: 0.9492 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)