Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line",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.00155/0.001556, allocations: 179 kB / 15.77 MB, free: 6.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001099/0.001099, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2718/0.2718, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004614, allocations: 12 kB / 422.8 MB, free: 26.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1116, allocations: 56.32 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.008549/0.1202, allocations: 5.118 MB / 484.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004925/0.1252, allocations: 1.927 MB / 486.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005243/0.1258, allocations: 27.81 kB / 486.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005792/0.1264, allocations: 139.2 kB / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.1275, allocations: 303 kB / 486.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.1289, allocations: 339.3 kB / 487 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008389/0.1298, allocations: 427.5 kB / 487.4 MB, free: 9.648 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.1311, allocations: 0.5787 MB / 488 MB, free: 9.039 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006225/0.1318, allocations: 255.1 kB / 488.2 MB, free: 8.789 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007237/0.1325, allocations: 347 kB / 488.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.996e-05/0.1326, allocations: 24 kB / 488.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000399/0.133, allocations: 107.8 kB / 488.7 MB, free: 8.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003476/0.1334, allocations: 235.4 kB / 488.9 MB, free: 8.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.1336, allocations: 133.4 kB / 489 MB, free: 7.953 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009229/0.1345, allocations: 0.6117 MB / 489.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1346, allocations: 0 / 489.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1346, allocations: 0 / 489.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.1346, allocations: 4 kB / 489.7 MB, free: 7.336 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.00227/0.1369, allocations: 0.8083 MB / 490.5 MB, free: 6.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.1369, allocations: 12.03 kB / 490.5 MB, free: 6.469 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.1371, allocations: 94.5 kB / 490.6 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.1387, allocations: 143 kB / 490.7 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.1401, allocations: 0.5031 MB / 491.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.1402, allocations: 33 kB / 491.2 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006606/0.1409, allocations: 131.8 kB / 491.4 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.1428, allocations: 0.8548 MB / 492.2 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.1429, allocations: 4 kB / 492.2 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.599e-05/0.143, allocations: 20 kB / 492.2 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008637/0.1438, allocations: 72.88 kB / 492.3 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.1455, allocations: 0.6165 MB / 492.9 MB, free: 3.883 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007428/0.153, allocations: 3.781 MB / 496.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.1549, allocations: 0.5346 MB / 497.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-05/0.1549, allocations: 12.42 kB / 497.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.425e-05/0.155, allocations: 39 kB / 497.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.537e-06/0.155, allocations: 0 / 497.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.005006/0.16, allocations: 1.829 MB / 499.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.1602, allocations: 85.55 kB / 499.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000666/0.1608, allocations: 425.6 kB / 499.6 MB, free: 12.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.1609, allocations: 33.7 kB / 499.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.1612, allocations: 370.2 kB / 0.4883 GB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.1615, allocations: 201.4 kB / 0.4885 GB, free: 12.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/0.1616, allocations: 15.94 kB / 0.4885 GB, free: 12.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.1618, allocations: 346.8 kB / 0.4888 GB, free: 11.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009422/0.1627, allocations: 373.5 kB / 0.4892 GB, free: 11.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.1639, allocations: 0.5901 MB / 0.4898 GB, free: 10.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.1651, allocations: 465.8 kB / 0.4902 GB, free: 10.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.1651, allocations: 4 kB / 0.4902 GB, free: 10.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.007869/0.173, allocations: 1.977 MB / 0.4922 GB, free: 8.453 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.1731, allocations: 12.12 kB / 0.4922 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.1731, allocations: 8 kB / 0.4922 GB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004182/0.1773, allocations: 0.9572 MB / 0.4931 GB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008392/0.1782, allocations: 115.8 kB / 0.4932 GB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01795/0.1961, allocations: 7.641 MB / 0.5007 GB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008446/0.197, allocations: 43.95 kB / 0.5007 GB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.1971, allocations: 32.23 kB / 0.5007 GB, free: 15.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * 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%) 6,(23,24.6%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005046/0.1977, allocations: 249.7 kB / 0.501 GB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.1978, allocations: 51.38 kB / 0.501 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.1998, allocations: 0.7256 MB / 0.5017 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.1999, allocations: 15.95 kB / 0.5018 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1999, allocations: 0 / 0.5018 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.1999, allocations: 3.984 kB / 0.5018 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004402/0.2043, allocations: 1.517 MB / 0.5032 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.2044, allocations: 7.938 kB / 0.5033 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002207/0.2066, allocations: 191.7 kB / 0.5034 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.2066, allocations: 4 kB / 0.5034 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.2067, allocations: 31.98 kB / 0.5035 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.344e-05/0.2068, allocations: 4 kB / 0.5035 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2068, allocations: 0 / 0.5035 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.2092, allocations: 1.036 MB / 0.5045 GB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.2094, allocations: 124.5 kB / 0.5046 GB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.2096, allocations: 23.98 kB / 0.5046 GB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.2102, allocations: 27.97 kB / 0.5047 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.2104, allocations: 36.34 kB / 0.5047 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.256e-05/0.2104, allocations: 16 kB / 0.5047 GB, free: 11.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004716/0.2109, allocations: 279.1 kB / 0.505 GB, free: 10.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2109, allocations: 0 / 0.505 GB, free: 10.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001229/0.2122, allocations: 212 kB / 0.5052 GB, free: 10.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * 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.002878/0.2151, allocations: 1.883 MB / 0.507 GB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004137/0.2192, allocations: 1.441 MB / 0.5084 GB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.2193, allocations: 4.625 kB / 0.5084 GB, free: 7.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008395/0.2201, allocations: 310.4 kB / 0.5087 GB, free: 6.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008664/0.221, allocations: 113.4 kB / 0.5088 GB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3094/0.5304, allocations: 11.82 MB / 0.5204 GB, free: 50.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007325/0.5312, allocations: 1.005 MB / 0.5214 GB, free: 49.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/0.5319, allocations: 230.4 kB / 0.5216 GB, free: 49.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5319, allocations: 0 / 0.5216 GB, free: 49.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.971/3.503, allocations: 13.75 MB / 0.535 GB, free: 44.93 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)