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.001313/0.001313, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001371/0.001371, allocations: 196 kB / 18 MB, free: 5.105 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.409/1.409, allocations: 205.1 MB / 223.9 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1729/0.1729, allocations: 37.99 MB / 309.2 MB, free: 5.973 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.001498/0.001498, allocations: 67.91 kB / 431.4 MB, free: 16.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1009, allocations: 55.25 MB / 486.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007034/0.108, allocations: 4.904 MB / 491.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0024/0.1104, allocations: 1.333 MB / 492.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004565/0.1109, allocations: 23.81 kB / 492.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005867/0.1115, allocations: 115.1 kB / 493 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.1126, allocations: 338.3 kB / 493.3 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006408/0.1132, allocations: 155.7 kB / 493.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.1144, allocations: 0.6892 MB / 494.2 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003277/0.1148, allocations: 164.1 kB / 494.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005455/0.1153, allocations: 306.8 kB / 494.6 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006108/0.1159, allocations: 434.7 kB / 495 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.178e-05/0.116, allocations: 48 kB / 495.1 MB, free: 460 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.791e-05/0.1161, allocations: 48 kB / 495.1 MB, free: 412 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.1163, allocations: 239.4 kB / 495.4 MB, free: 172 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.1166, allocations: 282.7 kB / 495.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005796/0.1172, allocations: 0.6074 MB / 496.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1172, allocations: 0 / 496.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1172, allocations: 0 / 496.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1172, allocations: 0 / 496.3 MB, free: 15.28 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.001837/0.1191, allocations: 0.9439 MB / 497.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1191, allocations: 15.89 kB / 497.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.1192, allocations: 70.72 kB / 497.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.324e-05/0.1193, allocations: 52.36 kB / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1205, allocations: 0.6187 MB / 498 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.1205, allocations: 32.66 kB / 498 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-05/0.1206, allocations: 43.91 kB / 498 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007259/0.1213, allocations: 0.5518 MB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.1214, allocations: 3.938 kB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.1214, allocations: 12 kB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003055/0.1217, allocations: 84.52 kB / 498.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.1222, allocations: 358.3 kB / 499 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.1251, allocations: 2.054 MB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007686/0.1259, allocations: 389.2 kB / 0.4897 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004757/0.1264, allocations: 293.5 kB / 0.49 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.1265, allocations: 11.97 kB / 0.49 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.1265, allocations: 42.5 kB / 0.49 GB, free: 9.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=32): time 1.894e-06/0.1265, allocations: 0 / 0.49 GB, free: 9.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.004117/0.1306, allocations: 2.522 MB / 0.4925 GB, free: 6.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.1307, allocations: 81.11 kB / 0.4926 GB, free: 6.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003665/0.1311, allocations: 389.5 kB / 0.493 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.1311, allocations: 33.7 kB / 0.493 GB, free: 6.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1313, allocations: 248.2 kB / 0.4932 GB, free: 5.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1314, allocations: 134.2 kB / 0.4934 GB, free: 5.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.1315, allocations: 102.2 kB / 0.4935 GB, free: 5.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1317, allocations: 366.7 kB / 0.4938 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.132, allocations: 241 kB / 0.494 GB, free: 5.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.1324, allocations: 362.7 kB / 0.4944 GB, free: 4.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007103/0.1331, allocations: 0.6156 MB / 0.495 GB, free: 4.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1331, allocations: 0 / 0.495 GB, free: 4.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001529/0.1346, allocations: 1.009 MB / 0.496 GB, free: 3.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1347, allocations: 8 kB / 0.496 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1347, allocations: 4 kB / 0.496 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009338/0.1356, allocations: 409.5 kB / 0.4964 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.1359, allocations: 83.89 kB / 0.4964 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00488/0.1408, allocations: 5.135 MB / 0.5015 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.1412, allocations: 43.94 kB / 0.5015 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/0.1412, allocations: 16 kB / 0.5015 GB, free: 13.08 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.0002808/0.1415, allocations: 209.8 kB / 0.5017 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-05/0.1416, allocations: 39.53 kB / 0.5018 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/0.1429, allocations: 0.8346 MB / 0.5026 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.143, allocations: 4 kB / 0.5026 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.143, allocations: 8 kB / 0.5026 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.143, allocations: 3.984 kB / 0.5026 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.1452, allocations: 1.418 MB / 0.504 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1452, allocations: 4.031 kB / 0.504 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.1453, allocations: 31.98 kB / 0.504 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.1465, allocations: 445.2 kB / 0.5044 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/0.1466, allocations: 35.97 kB / 0.5045 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00517/0.1517, allocations: 6.702 MB / 0.511 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1518, allocations: 8.094 kB / 0.511 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.1534, allocations: 1.126 MB / 0.5121 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.1535, allocations: 116.6 kB / 0.5122 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.799e-05/0.1536, allocations: 31.97 kB / 0.5123 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/0.1539, allocations: 39.89 kB / 0.5123 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.595e-05/0.1541, allocations: 31.94 kB / 0.5123 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.1541, allocations: 19.92 kB / 0.5123 GB, free: 1.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002842/0.1544, allocations: 259.2 kB / 0.5126 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1544, allocations: 4 kB / 0.5126 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006536/0.1551, allocations: 160 kB / 0.5127 GB, free: 0.8125 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.001875/0.1569, allocations: 1.677 MB / 0.5144 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.1585, allocations: 0.8955 MB / 0.5153 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1586, allocations: 0 / 0.5153 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.16, allocations: 1.079 MB / 0.5163 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.1607, allocations: 138.1 kB / 0.5164 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00834/0.169, allocations: 6.252 MB / 0.5226 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.1695, allocations: 0.8858 MB / 0.5234 GB, free: 5.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.1697, allocations: 76.33 kB / 0.5235 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.1699, allocations: 155.4 kB / 0.5236 GB, free: 5.25 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.17, allocations: 3.938 kB / 0.5236 GB, free: 5.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2338/0.4038, allocations: 12.67 MB / 0.536 GB, free: 51.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.966/10.37, allocations: 12.08 kB / 0.536 GB, free: 51.39 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)