Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001533/0.001537, allocations: 184.5 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 90.88 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2679/0.2679, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.0004617, allocations: 23.98 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.007259/0.1192, allocations: 4.42 MB / 483.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004034/0.1233, allocations: 1.689 MB / 485.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003719/0.1237, allocations: 19.88 kB / 485.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.124, allocations: 83.42 kB / 485.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009128/0.1249, allocations: 239.3 kB / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009349/0.1259, allocations: 243.4 kB / 485.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005845/0.1265, allocations: 315.8 kB / 486.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009598/0.1274, allocations: 454.8 kB / 486.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004117/0.1279, allocations: 191.3 kB / 486.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005077/0.1284, allocations: 215.3 kB / 487 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.938e-05/0.1285, allocations: 24 kB / 487 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.1288, allocations: 91.8 kB / 487.1 MB, free: 9.938 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002673/0.1291, allocations: 183.5 kB / 487.3 MB, free: 9.758 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.1293, allocations: 109.5 kB / 487.4 MB, free: 9.645 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007055/0.13, allocations: 450.9 kB / 487.8 MB, free: 9.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.13, allocations: 0 / 487.8 MB, free: 9.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.13, allocations: 0 / 487.8 MB, free: 9.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.13, allocations: 0 / 487.8 MB, free: 9.203 MB / 330.7 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.001806/0.1318, allocations: 0.6879 MB / 488.5 MB, free: 8.469 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1319, allocations: 11.97 kB / 488.5 MB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.132, allocations: 82.48 kB / 488.6 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009237/0.133, allocations: 99.27 kB / 488.7 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009391/0.1339, allocations: 391 kB / 489.1 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.804e-05/0.134, allocations: 25 kB / 489.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.1342, allocations: 63.88 kB / 489.1 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1357, allocations: 0.6521 MB / 489.8 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/0.1357, allocations: 4 kB / 489.8 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.825e-05/0.1358, allocations: 12 kB / 489.8 MB, free: 7.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/0.1361, allocations: 52.97 kB / 489.9 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.1374, allocations: 491.4 kB / 490.3 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/0.1425, allocations: 3.152 MB / 493.5 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.1432, allocations: 241.9 kB / 493.7 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.1433, allocations: 8.234 kB / 493.7 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.1433, allocations: 34.75 kB / 493.8 MB, free: 2.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.787e-06/0.1434, allocations: 4 kB / 493.8 MB, free: 2.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.002268/0.1456, allocations: 0.9032 MB / 494.7 MB, free: 1.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.1457, allocations: 77.11 kB / 494.8 MB, free: 1.797 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/0.1462, allocations: 324.4 kB / 495.1 MB, free: 1.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.1463, allocations: 29.7 kB / 495.1 MB, free: 1.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.1466, allocations: 341.7 kB / 495.4 MB, free: 1.098 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1467, allocations: 98.73 kB / 495.5 MB, free: 1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.1467, allocations: 8 kB / 495.5 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1469, allocations: 330.8 kB / 495.9 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.1472, allocations: 128.8 kB / 496 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.1478, allocations: 321.1 kB / 496.3 MB, free: 136 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004796/0.1483, allocations: 192 kB / 496.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1483, allocations: 7.938 kB / 496.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001715/0.15, allocations: 0.5764 MB / 497.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.15, allocations: 15.92 kB / 497.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001027/0.1511, allocations: 321.9 kB / 497.4 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006718/0.1518, allocations: 125.6 kB / 497.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.1523, allocations: 91.83 kB / 497.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003994/0.1564, allocations: 3.057 MB / 0.4889 GB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.1568, allocations: 20 kB / 0.489 GB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6e-05/0.1569, allocations: 27.94 kB / 0.489 GB, free: 11.41 MB / 346.7 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.0003649/0.1572, allocations: 213.9 kB / 0.4892 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.1573, allocations: 31.62 kB / 0.4892 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008267/0.1582, allocations: 324.6 kB / 0.4895 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.1582, allocations: 4 kB / 0.4895 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1582, allocations: 3.984 kB / 0.4895 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1582, allocations: 4 kB / 0.4895 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/0.1599, allocations: 0.7966 MB / 0.4903 GB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1599, allocations: 4.062 kB / 0.4903 GB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006042/0.1605, allocations: 63.91 kB / 0.4904 GB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1606, allocations: 0 / 0.4904 GB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.1606, allocations: 8 kB / 0.4904 GB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.1606, allocations: 4 kB / 0.4904 GB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.1606, allocations: 11.94 kB / 0.4904 GB, free: 9.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1617, allocations: 0.5463 MB / 0.4909 GB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.1619, allocations: 124.8 kB / 0.4911 GB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.487e-05/0.162, allocations: 7.984 kB / 0.4911 GB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002848/0.1623, allocations: 8 kB / 0.4911 GB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.1624, allocations: 19.97 kB / 0.4911 GB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.1624, allocations: 12 kB / 0.4911 GB, free: 9.102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003221/0.1627, allocations: 219 kB / 0.4913 GB, free: 8.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1628, allocations: 0 / 0.4913 GB, free: 8.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006737/0.1634, allocations: 100 kB / 0.4914 GB, free: 8.793 MB / 346.7 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.001431/0.1649, allocations: 1.281 MB / 0.4927 GB, free: 7.465 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1662, allocations: 0.5761 MB / 0.4932 GB, free: 6.863 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1662, allocations: 0 / 0.4932 GB, free: 6.863 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.1666, allocations: 123.8 kB / 0.4933 GB, free: 6.742 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005547/0.1671, allocations: 74.11 kB / 0.4934 GB, free: 6.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007595/0.1747, allocations: 6.961 MB / 0.5002 GB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006781/0.1755, allocations: 0.8892 MB / 0.5011 GB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/0.1758, allocations: 147.4 kB / 0.5012 GB, free: 14.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1758, allocations: 0 / 0.5012 GB, free: 14.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.661/2.837, allocations: 8.325 MB / 0.5094 GB, free: 6.121 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)