Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001302/0.001302, allocations: 95.77 kB / 16.3 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.001271/0.001271, allocations: 184 kB / 17.2 MB, free: 5.914 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.41/1.41, allocations: 205.4 MB / 223.4 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3338/0.3338, allocations: 38.05 MB / 309.7 MB, free: 8.863 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.000555/0.0005551, allocations: 12 kB / 376.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1297, allocations: 56.34 MB / 432.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005148/0.1349, allocations: 4.231 MB / 437.1 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1366, allocations: 1.139 MB / 438.3 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001802/0.1368, allocations: 31.75 kB / 438.3 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.137, allocations: 51.64 kB / 438.4 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005149/0.1375, allocations: 211.3 kB / 438.6 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.1377, allocations: 115.8 kB / 438.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003208/0.1381, allocations: 259.4 kB / 438.9 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.1383, allocations: 101.8 kB / 439 MB, free: 496 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.1385, allocations: 155.4 kB / 439.2 MB, free: 340 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.1389, allocations: 171.4 kB / 439.4 MB, free: 168 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.1389, allocations: 12 kB / 439.4 MB, free: 156 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.22e-05/0.139, allocations: 12 kB / 439.4 MB, free: 144 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.1391, allocations: 127.7 kB / 439.5 MB, free: 16 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.289e-05/0.1392, allocations: 85.56 kB / 439.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.1395, allocations: 275.2 kB / 439.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1395, allocations: 4 kB / 439.9 MB, free: 15.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1395, allocations: 0 / 439.9 MB, free: 15.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1395, allocations: 0 / 439.9 MB, free: 15.65 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009435/0.1405, allocations: 0.6048 MB / 440.5 MB, free: 15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1405, allocations: 16.03 kB / 440.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.554e-05/0.1406, allocations: 62.53 kB / 440.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.274e-05/0.1407, allocations: 35.53 kB / 440.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.1412, allocations: 350.7 kB / 440.9 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.1412, allocations: 20.56 kB / 440.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.1413, allocations: 27.98 kB / 441 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.1418, allocations: 352.7 kB / 441.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1418, allocations: 3.984 kB / 441.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.1418, allocations: 12 kB / 441.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.752e-05/0.1419, allocations: 24.53 kB / 441.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.1423, allocations: 238 kB / 441.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.144, allocations: 1.378 MB / 443 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.1444, allocations: 165.1 kB / 443.1 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.1444, allocations: 8 kB / 443.1 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1444, allocations: 30.56 kB / 443.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.1444, allocations: 0 / 443.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001298/0.1457, allocations: 0.7685 MB / 443.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1458, allocations: 77.11 kB / 444 MB, free: 11.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1461, allocations: 304.5 kB / 444.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.1461, allocations: 25.7 kB / 444.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1463, allocations: 219.7 kB / 444.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.1463, allocations: 55.28 kB / 444.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.1463, allocations: 4 kB / 444.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1465, allocations: 350.6 kB / 444.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.1466, allocations: 67.95 kB / 445 MB, free: 10.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.1468, allocations: 164.8 kB / 445.2 MB, free: 9.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.147, allocations: 95.84 kB / 445.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.147, allocations: 0 / 445.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004843/0.1475, allocations: 325.9 kB / 445.6 MB, free: 9.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1475, allocations: 4 kB / 445.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1475, allocations: 4 kB / 445.6 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.1477, allocations: 56.75 kB / 445.6 MB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1479, allocations: 51.91 kB / 445.7 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1492, allocations: 1.511 MB / 447.2 MB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.1494, allocations: 11.95 kB / 447.2 MB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1494, allocations: 15.97 kB / 447.2 MB, free: 7.723 MB / 382.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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.1496, allocations: 177.9 kB / 447.4 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.1496, allocations: 27.72 kB / 447.4 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004063/0.1501, allocations: 240.2 kB / 447.7 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1501, allocations: 0 / 447.7 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1501, allocations: 7.953 kB / 447.7 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1501, allocations: 0 / 447.7 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000826/0.1509, allocations: 0.6327 MB / 448.3 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.1509, allocations: 4 kB / 448.3 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.1511, allocations: 23.94 kB / 448.3 MB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000176/0.1513, allocations: 64.7 kB / 448.4 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1513, allocations: 0 / 448.4 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.1526, allocations: 1.503 MB / 449.9 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1526, allocations: 0 / 449.9 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000508/0.1531, allocations: 437 kB / 450.3 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-05/0.1532, allocations: 104.8 kB / 450.4 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.1533, allocations: 7.984 kB / 450.4 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.1534, allocations: 12 kB / 450.5 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.1534, allocations: 11.94 kB / 450.5 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.1535, allocations: 12.06 kB / 450.5 MB, free: 4.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.1537, allocations: 211 kB / 450.7 MB, free: 3.996 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1537, allocations: 3.938 kB / 450.7 MB, free: 3.992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003608/0.154, allocations: 64 kB / 450.8 MB, free: 3.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008864/0.1549, allocations: 1.101 MB / 451.9 MB, free: 2.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005002/0.1555, allocations: 295.2 kB / 452.1 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1555, allocations: 128 / 452.1 MB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.1558, allocations: 202.6 kB / 452.3 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.1562, allocations: 60.55 kB / 452.4 MB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2037/0.3599, allocations: 4.076 MB / 456.5 MB, free: 49.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3603, allocations: 0.8138 MB / 457.3 MB, free: 49.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.3605, allocations: 40.98 kB / 457.3 MB, free: 49.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3606, allocations: 102.4 kB / 457.4 MB, free: 49.18 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3606, allocations: 0 / 457.4 MB, free: 49.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.3776, allocations: 5.692 MB / 463.1 MB, free: 48.78 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/0.3778, allocations: 194.6 kB / 463.3 MB, free: 48.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.276, allocations: 0 / 463.3 MB, free: 48.54 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) Environment - environmentSimulation: