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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00148/0.00148, allocations: 106.9 kB / 16.92 MB, free: 6.199 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.001767/0.001767, allocations: 191.4 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1815/0.1815, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.2 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09499, allocations: 58.08 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.008534/0.1036, allocations: 4.903 MB / 461.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.1061, allocations: 1.289 MB / 463.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004027/0.1065, allocations: 15.88 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.1071, allocations: 131 kB / 463.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000965/0.1081, allocations: 334.4 kB / 463.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004959/0.1086, allocations: 151.7 kB / 463.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008836/0.1095, allocations: 0.6971 MB / 464.5 MB, free: 420 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.1098, allocations: 156.1 kB / 464.6 MB, free: 268 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005869/0.1104, allocations: 306.8 kB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007619/0.1112, allocations: 434.7 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1114, allocations: 48 kB / 465.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.1116, allocations: 52 kB / 465.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003576/0.1119, allocations: 239.4 kB / 465.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004673/0.1124, allocations: 286.6 kB / 466 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.1131, allocations: 0.5919 MB / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1131, allocations: 0 / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1132, allocations: 4 kB / 466.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.1132, allocations: 0 / 466.6 MB, free: 14.32 MB / 350.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.002321/0.1155, allocations: 0.944 MB / 467.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1156, allocations: 15.89 kB / 467.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.1157, allocations: 78.66 kB / 467.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.1158, allocations: 48.38 kB / 467.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.117, allocations: 0.5914 MB / 468.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.1171, allocations: 32.66 kB / 468.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.1172, allocations: 43.91 kB / 468.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009935/0.1182, allocations: 0.5479 MB / 468.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1182, allocations: 0 / 468.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-05/0.1183, allocations: 12 kB / 468.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003458/0.1186, allocations: 88.52 kB / 469 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006995/0.1193, allocations: 358.3 kB / 469.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.1225, allocations: 2.062 MB / 471.4 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008354/0.1233, allocations: 381.2 kB / 471.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/0.1239, allocations: 321.5 kB / 472.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.124, allocations: 7.984 kB / 472.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.124, allocations: 34.56 kB / 472.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.154e-06/0.124, allocations: 0 / 472.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004649/0.1287, allocations: 2.541 MB / 474.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.1287, allocations: 85.05 kB / 474.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003901/0.1291, allocations: 381.6 kB / 475.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.1292, allocations: 33.7 kB / 475.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.1294, allocations: 248.2 kB / 475.4 MB, free: 5.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1295, allocations: 134.2 kB / 475.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.1296, allocations: 106.1 kB / 475.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1298, allocations: 362.7 kB / 476 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.1301, allocations: 245 kB / 476.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.1306, allocations: 366.7 kB / 476.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008294/0.1314, allocations: 0.6235 MB / 477.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1314, allocations: 0 / 477.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001667/0.1331, allocations: 1.017 MB / 478.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1331, allocations: 4 kB / 478.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1332, allocations: 4 kB / 478.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009854/0.1341, allocations: 409.5 kB / 478.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1344, allocations: 83.83 kB / 478.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005444/0.1399, allocations: 5.135 MB / 483.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.1403, allocations: 48 kB / 483.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.717e-05/0.1404, allocations: 20 kB / 483.9 MB, free: 12.09 MB / 366.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.0003317/0.1407, allocations: 201.6 kB / 484.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.1408, allocations: 39.53 kB / 484.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.1423, allocations: 0.8388 MB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.1424, allocations: 4 kB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.1424, allocations: 4 kB / 485 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1424, allocations: 3.984 kB / 485 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.1445, allocations: 1.414 MB / 486.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1445, allocations: 0 / 486.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.1447, allocations: 43.91 kB / 486.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.1458, allocations: 445.3 kB / 486.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.437e-05/0.1459, allocations: 35.91 kB / 486.9 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005469/0.1513, allocations: 6.718 MB / 493.6 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1514, allocations: 4.062 kB / 493.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.1531, allocations: 1.128 MB / 494.7 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.1532, allocations: 120.5 kB / 494.9 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.1534, allocations: 31.97 kB / 494.9 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00032/0.1537, allocations: 35.95 kB / 494.9 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1538, allocations: 35.88 kB / 495 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.1538, allocations: 15.98 kB / 495 MB, free: 224 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003255/0.1542, allocations: 263.1 kB / 495.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1542, allocations: 4 kB / 495.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007151/0.1549, allocations: 164 kB / 495.4 MB, free: 15.8 MB / 382.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.00208/0.157, allocations: 1.683 MB / 497.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.1588, allocations: 0.9777 MB / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.1588, allocations: 0 / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001504/0.1603, allocations: 1.083 MB / 499.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.1611, allocations: 130.8 kB / 499.3 MB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008912/0.17, allocations: 6.322 MB / 0.4937 GB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/0.1705, allocations: 0.882 MB / 0.4946 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.1708, allocations: 76.33 kB / 0.4947 GB, free: 4.242 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.171, allocations: 155.4 kB / 0.4948 GB, free: 4.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.171, allocations: 3.938 kB / 0.4948 GB, free: 4.086 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.2105, allocations: 12.3 MB / 0.5069 GB, free: 7.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.115/9.325, allocations: 11.86 kB / 0.5069 GB, free: 7.883 MB / 398.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)