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.0008114/0.0008114, allocations: 88.11 kB / 16.31 MB, free: 6.449 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.00117/0.00117, allocations: 182.8 kB / 17.21 MB, free: 6.32 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.593/1.593, allocations: 205.4 MB / 223.4 MB, free: 5.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.371/0.371, allocations: 38.07 MB / 309.7 MB, free: 8.898 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.0007404/0.0007405, allocations: 12 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1353, allocations: 56.33 MB / 433 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007115/0.1425, allocations: 5.083 MB / 438 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.1461, allocations: 1.517 MB / 439.5 MB, free: 108 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006801/0.1469, allocations: 31.75 kB / 439.6 MB, free: 76 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005857/0.1475, allocations: 127.1 kB / 439.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1486, allocations: 370.2 kB / 440.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006158/0.1492, allocations: 175.7 kB / 440.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.1504, allocations: 0.8412 MB / 441.1 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003028/0.1507, allocations: 122.2 kB / 441.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006964/0.1514, allocations: 266.9 kB / 441.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009577/0.1524, allocations: 438.8 kB / 441.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.1525, allocations: 24 kB / 441.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.1527, allocations: 24 kB / 441.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.153, allocations: 223.4 kB / 442.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.1532, allocations: 113.5 kB / 442.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.1537, allocations: 474.9 kB / 442.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.1538, allocations: 4 kB / 442.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.1538, allocations: 0 / 442.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.1538, allocations: 0 / 442.7 MB, free: 12.91 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.002372/0.1562, allocations: 0.8543 MB / 443.6 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.966e-05/0.1563, allocations: 12.02 kB / 443.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002261/0.1565, allocations: 70.53 kB / 443.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.1567, allocations: 59.34 kB / 443.7 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.1581, allocations: 0.5754 MB / 444.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.1582, allocations: 28.66 kB / 444.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.1583, allocations: 40 kB / 444.4 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009711/0.1593, allocations: 0.5439 MB / 444.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1593, allocations: 3.953 kB / 444.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.1593, allocations: 20 kB / 444.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002998/0.1596, allocations: 88.52 kB / 445 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006251/0.1603, allocations: 354.3 kB / 445.4 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.1635, allocations: 2.07 MB / 447.4 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000845/0.1643, allocations: 385.1 kB / 447.8 MB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005861/0.1649, allocations: 305.6 kB / 448.1 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.95e-05/0.165, allocations: 4 kB / 448.1 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.165, allocations: 34.56 kB / 448.1 MB, free: 7.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=32): time 2.374e-06/0.165, allocations: 4 kB / 448.2 MB, free: 7.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.004628/0.1697, allocations: 2.533 MB / 450.7 MB, free: 4.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.1698, allocations: 89.09 kB / 450.8 MB, free: 4.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.1703, allocations: 381.6 kB / 451.1 MB, free: 4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.1703, allocations: 33.7 kB / 451.2 MB, free: 3.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.1705, allocations: 256.2 kB / 451.4 MB, free: 3.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.1706, allocations: 130.2 kB / 451.6 MB, free: 3.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.064e-05/0.1707, allocations: 4 kB / 451.6 MB, free: 3.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1709, allocations: 370.7 kB / 451.9 MB, free: 3.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/0.1713, allocations: 241 kB / 452.2 MB, free: 2.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.1717, allocations: 366.7 kB / 452.5 MB, free: 2.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004395/0.1722, allocations: 293.7 kB / 452.8 MB, free: 2.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1722, allocations: 0 / 452.8 MB, free: 2.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001703/0.1739, allocations: 1.006 MB / 453.8 MB, free: 1.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.1739, allocations: 12.3 kB / 453.8 MB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.174, allocations: 11.98 kB / 453.8 MB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009625/0.1749, allocations: 413.2 kB / 454.2 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.1753, allocations: 87.89 kB / 454.3 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2487/0.424, allocations: 4.706 MB / 459 MB, free: 48.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003753/0.4244, allocations: 48.91 kB / 459.1 MB, free: 48.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.4244, allocations: 15.5 kB / 459.1 MB, free: 48.88 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 (48): * Single equations (assignments): 46 * 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,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002688/0.4247, allocations: 204.8 kB / 459.3 MB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.603e-05/0.4248, allocations: 46.11 kB / 459.3 MB, free: 48.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.426, allocations: 0.8404 MB / 460.2 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4261, allocations: 3.188 kB / 460.2 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4261, allocations: 3.188 kB / 460.2 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4261, allocations: 5.438 kB / 460.2 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.4279, allocations: 1.414 MB / 461.6 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4279, allocations: 0 / 461.6 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.4281, allocations: 44.58 kB / 461.6 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009719/0.4291, allocations: 443.2 kB / 462.1 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.4291, allocations: 35.98 kB / 462.1 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003902/0.433, allocations: 6.241 MB / 468.4 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4331, allocations: 0 / 468.4 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.4348, allocations: 1.119 MB / 469.5 MB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.435, allocations: 121.2 kB / 469.6 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.4351, allocations: 30.52 kB / 469.6 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.4353, allocations: 39.34 kB / 469.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.571e-05/0.4355, allocations: 33 kB / 469.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.4355, allocations: 15.75 kB / 469.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003285/0.4358, allocations: 264.3 kB / 470 MB, free: 42.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4358, allocations: 0 / 470 MB, free: 42.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000686/0.4365, allocations: 157.4 kB / 470.1 MB, free: 42.78 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 (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001644/0.4382, allocations: 1.691 MB / 471.8 MB, free: 41.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.4395, allocations: 0.8916 MB / 472.7 MB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4396, allocations: 2.844 kB / 472.7 MB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.4407, allocations: 1.085 MB / 473.8 MB, free: 40.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006671/0.4414, allocations: 123.3 kB / 473.9 MB, free: 40.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005436/0.4468, allocations: 4.68 MB / 478.6 MB, free: 38.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.4471, allocations: 0.8823 MB / 479.5 MB, free: 37.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.4474, allocations: 78.03 kB / 479.5 MB, free: 37.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.4476, allocations: 152 kB / 479.7 MB, free: 37.64 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4476, allocations: 4 kB / 479.7 MB, free: 37.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.4734, allocations: 11.76 MB / 491.5 MB, free: 36.82 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.4736, allocations: 203.5 kB / 491.7 MB, free: 36.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.387, allocations: 4 kB / 491.7 MB, free: 36.57 MB / 382.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/linux/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) Environment - environmentSimulation: