Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.001145/0.001145, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001178/0.001179, allocations: 198.9 kB / 18 MB, free: 5.078 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.34/1.34, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1825/0.1825, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001527/0.001527, allocations: 63.91 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09422, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007483/0.1017, allocations: 4.912 MB / 491.5 MB, free: 3.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.1041, allocations: 1.337 MB / 492.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.1044, allocations: 19.81 kB / 492.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005031/0.1049, allocations: 123.1 kB / 493 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008367/0.1058, allocations: 330.4 kB / 493.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.1063, allocations: 155.7 kB / 493.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008081/0.1071, allocations: 0.6892 MB / 494.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.1074, allocations: 160.1 kB / 494.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005097/0.1079, allocations: 318.7 kB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000679/0.1086, allocations: 434.8 kB / 495.1 MB, free: 356 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1087, allocations: 44 kB / 495.1 MB, free: 312 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.1089, allocations: 52 kB / 495.1 MB, free: 260 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.1091, allocations: 235.4 kB / 495.4 MB, free: 24 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003575/0.1095, allocations: 282.8 kB / 495.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005922/0.1101, allocations: 0.6113 MB / 496.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1101, allocations: 0 / 496.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1101, allocations: 0 / 496.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.1101, allocations: 0 / 496.3 MB, free: 15.13 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001909/0.112, allocations: 0.9478 MB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1121, allocations: 11.89 kB / 497.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.797e-05/0.1122, allocations: 70.72 kB / 497.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1123, allocations: 52.38 kB / 497.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.1134, allocations: 0.6187 MB / 498 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.1135, allocations: 24.66 kB / 498 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.1136, allocations: 43.91 kB / 498 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.1144, allocations: 0.5518 MB / 498.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1144, allocations: 3.938 kB / 498.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.1144, allocations: 15.98 kB / 498.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002937/0.1147, allocations: 88.53 kB / 498.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005195/0.1153, allocations: 354.3 kB / 499 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.118, allocations: 2.05 MB / 0.4893 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.1188, allocations: 389.2 kB / 0.4897 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.1193, allocations: 297.5 kB / 0.49 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1193, allocations: 7.984 kB / 0.49 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1193, allocations: 46.5 kB / 0.49 GB, free: 9.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=32): time 2.695e-06/0.1194, allocations: 0 / 0.49 GB, free: 9.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.004203/0.1236, allocations: 2.522 MB / 0.4925 GB, free: 6.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.1236, allocations: 81.11 kB / 0.4926 GB, free: 6.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.124, allocations: 385.5 kB / 0.493 GB, free: 6.117 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.1241, allocations: 33.7 kB / 0.493 GB, free: 6.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.1242, allocations: 252.2 kB / 0.4932 GB, free: 5.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.1244, allocations: 130.2 kB / 0.4934 GB, free: 5.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.1245, allocations: 98.16 kB / 0.4934 GB, free: 5.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1247, allocations: 366.7 kB / 0.4938 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003445/0.125, allocations: 241 kB / 0.494 GB, free: 4.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/0.1254, allocations: 358.7 kB / 0.4944 GB, free: 4.594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007918/0.1262, allocations: 0.6195 MB / 0.495 GB, free: 3.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1263, allocations: 3.938 kB / 0.495 GB, free: 3.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001675/0.1279, allocations: 1.009 MB / 0.496 GB, free: 2.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.128, allocations: 8 kB / 0.496 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.128, allocations: 4 kB / 0.496 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009488/0.129, allocations: 421.5 kB / 0.4964 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.1292, allocations: 75.89 kB / 0.4964 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005652/0.1349, allocations: 5.135 MB / 0.5015 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.1353, allocations: 39.95 kB / 0.5015 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.1354, allocations: 19.98 kB / 0.5015 GB, free: 12.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002869/0.1357, allocations: 205.8 kB / 0.5017 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.882e-05/0.1358, allocations: 43.52 kB / 0.5018 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.1372, allocations: 0.8346 MB / 0.5026 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1372, allocations: 4 kB / 0.5026 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.1372, allocations: 8 kB / 0.5026 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1372, allocations: 0 / 0.5026 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.1394, allocations: 1.418 MB / 0.504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.1394, allocations: 4.156 kB / 0.504 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1396, allocations: 35.98 kB / 0.504 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.1407, allocations: 449.2 kB / 0.5044 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/0.1408, allocations: 39.97 kB / 0.5045 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005432/0.1462, allocations: 6.695 MB / 0.511 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.1463, allocations: 8 kB / 0.511 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.148, allocations: 1.126 MB / 0.5121 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.1481, allocations: 112.6 kB / 0.5122 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.296e-05/0.1482, allocations: 31.98 kB / 0.5123 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.1485, allocations: 35.94 kB / 0.5123 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.843e-05/0.1486, allocations: 39.89 kB / 0.5123 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.1487, allocations: 15.92 kB / 0.5123 GB, free: 1.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.149, allocations: 267.1 kB / 0.5126 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.149, allocations: 4 kB / 0.5126 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.1496, allocations: 152 kB / 0.5127 GB, free: 0.6719 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (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.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]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001968/0.1516, allocations: 1.677 MB / 0.5144 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.1533, allocations: 0.8994 MB / 0.5153 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1533, allocations: 0 / 0.5153 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/0.1548, allocations: 1.083 MB / 0.5163 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007645/0.1556, allocations: 137.8 kB / 0.5165 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008499/0.1641, allocations: 6.252 MB / 0.5226 GB, free: 6.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.1646, allocations: 0.878 MB / 0.5234 GB, free: 5.336 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002283/0.1649, allocations: 76.33 kB / 0.5235 GB, free: 5.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.1651, allocations: 147.4 kB / 0.5236 GB, free: 5.117 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1651, allocations: 0 / 0.5236 GB, free: 5.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2423/0.4074, allocations: 12.68 MB / 0.536 GB, free: 51.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.743/10.15, allocations: 7.625 kB / 0.536 GB, free: 51.43 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)