Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.0009678/0.0009678, allocations: 92.73 kB / 16.32 MB, free: 6.457 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.001003/0.001002, allocations: 179.8 kB / 17.21 MB, free: 6.324 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.688/1.688, allocations: 205.4 MB / 223.4 MB, free: 5.277 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3526/0.3526, allocations: 38.05 MB / 309.7 MB, free: 9.191 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.0005188/0.0005189, allocations: 12 kB / 376.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1423, allocations: 56.33 MB / 433 MB, free: 6.715 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.006046/0.1484, allocations: 4.572 MB / 437.5 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003545/0.152, allocations: 1.696 MB / 439.2 MB, free: 428 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006376/0.1527, allocations: 27.81 kB / 439.3 MB, free: 400 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/0.1531, allocations: 83.38 kB / 439.3 MB, free: 316 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.1543, allocations: 286.5 kB / 439.6 MB, free: 28 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1554, allocations: 239.6 kB / 439.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.1565, allocations: 0.7326 MB / 440.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009886/0.1575, allocations: 442.9 kB / 441 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006419/0.1581, allocations: 219 kB / 441.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007676/0.1589, allocations: 323 kB / 441.5 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.317e-05/0.159, allocations: 16 kB / 441.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003826/0.1594, allocations: 95.78 kB / 441.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002941/0.1597, allocations: 203.5 kB / 441.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.1599, allocations: 113.4 kB / 442 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006418/0.1606, allocations: 458.9 kB / 442.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1606, allocations: 0 / 442.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1606, allocations: 0 / 442.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.1607, allocations: 0 / 442.4 MB, free: 13.18 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001638/0.1623, allocations: 0.6762 MB / 443.1 MB, free: 12.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.1624, allocations: 12.03 kB / 443.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.1626, allocations: 90.5 kB / 443.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007294/0.1633, allocations: 95.22 kB / 443.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.1641, allocations: 383 kB / 443.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/0.1641, allocations: 29 kB / 443.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.1643, allocations: 51.97 kB / 443.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.1656, allocations: 0.6638 MB / 444.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.1656, allocations: 0 / 444.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.133e-05/0.1657, allocations: 19.94 kB / 444.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001481/0.1659, allocations: 52.95 kB / 444.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009047/0.1668, allocations: 487.5 kB / 444.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.1709, allocations: 3.164 MB / 448.1 MB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.1715, allocations: 241.9 kB / 448.3 MB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.1717, allocations: 122 kB / 448.5 MB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.1718, allocations: 4.188 kB / 448.5 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.1718, allocations: 42.67 kB / 448.5 MB, free: 6.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.1719, allocations: 3.938 kB / 448.5 MB, free: 6.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.002093/0.174, allocations: 0.891 MB / 449.4 MB, free: 5.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.1741, allocations: 77.11 kB / 449.5 MB, free: 5.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.1745, allocations: 328.4 kB / 449.8 MB, free: 5.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.1746, allocations: 29.69 kB / 449.8 MB, free: 5.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.1749, allocations: 291.1 kB / 450.1 MB, free: 5.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.175, allocations: 94.73 kB / 450.2 MB, free: 4.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.969e-05/0.175, allocations: 4 kB / 450.2 MB, free: 4.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.1752, allocations: 354.9 kB / 450.6 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.1755, allocations: 128.8 kB / 450.7 MB, free: 4.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003683/0.1759, allocations: 321.1 kB / 451 MB, free: 4.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.1761, allocations: 191.8 kB / 451.2 MB, free: 3.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.1762, allocations: 4 kB / 451.2 MB, free: 3.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001094/0.1773, allocations: 0.5882 MB / 451.8 MB, free: 3.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.1773, allocations: 11.91 kB / 451.8 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006104/0.1779, allocations: 329.3 kB / 452.1 MB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004262/0.1784, allocations: 114 kB / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.1787, allocations: 91.81 kB / 452.3 MB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2964/0.4751, allocations: 3.021 MB / 455.3 MB, free: 49.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.4757, allocations: 20.84 kB / 455.4 MB, free: 49.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.761e-05/0.4758, allocations: 24.11 kB / 455.4 MB, free: 49.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004001/0.4762, allocations: 213.6 kB / 455.6 MB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.4763, allocations: 31.91 kB / 455.6 MB, free: 49.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006279/0.477, allocations: 315.1 kB / 455.9 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.477, allocations: 3.281 kB / 455.9 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.477, allocations: 4.469 kB / 455.9 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.477, allocations: 0 / 455.9 MB, free: 49.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.4785, allocations: 0.8227 MB / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4785, allocations: 0 / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.4789, allocations: 56.69 kB / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.4789, allocations: 3 kB / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.4789, allocations: 12.84 kB / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.4789, allocations: 0 / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4789, allocations: 3.156 kB / 456.8 MB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.4796, allocations: 0.506 MB / 457.3 MB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.4797, allocations: 118.8 kB / 457.4 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.4798, allocations: 17.19 kB / 457.5 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.48, allocations: 8.312 kB / 457.5 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.368e-05/0.48, allocations: 25.52 kB / 457.5 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.4801, allocations: 9.562 kB / 457.5 MB, free: 49.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.4803, allocations: 223.3 kB / 457.7 MB, free: 49.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4803, allocations: 0 / 457.7 MB, free: 49.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000546/0.4809, allocations: 99.75 kB / 457.8 MB, free: 49.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009371/0.4818, allocations: 1.034 MB / 458.9 MB, free: 48.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008698/0.4827, allocations: 0.573 MB / 459.4 MB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4827, allocations: 3.344 kB / 459.4 MB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.4829, allocations: 125.1 kB / 459.6 MB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.4834, allocations: 67.81 kB / 459.6 MB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.4873, allocations: 2.709 MB / 462.3 MB, free: 47.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.4877, allocations: 0.8669 MB / 463.2 MB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003469/0.488, allocations: 115.4 kB / 463.3 MB, free: 46.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.4883, allocations: 149.5 kB / 463.5 MB, free: 46.34 MB / 382.1 MB Notification: Performance of SimCode: time 2.655e-06/0.4883, allocations: 0 / 463.5 MB, free: 46.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.5115, allocations: 7.212 MB / 470.7 MB, free: 45.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002592/0.5118, allocations: 202.4 kB / 470.9 MB, free: 45.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.422, allocations: 6.469 kB / 470.9 MB, free: 45.49 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1) Environment - environmentSimulation: