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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001577/0.001577, allocations: 182.3 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.789/1.789, allocations: 194.2 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001695/0.001695, allocations: 120.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1902/0.1902, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.614e-05/6.638e-05, allocations: 4 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3532, allocations: 53.22 MB / 450.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.8385, allocations: 93.49 MB / 0.5316 GB, free: 31.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004157/0.839, allocations: 92.92 kB / 0.5317 GB, free: 31.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03931/0.8783, allocations: 11.08 MB / 0.5425 GB, free: 30.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.8784, allocations: 0 / 0.5425 GB, free: 30.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.757e-05/0.8784, allocations: 14.09 kB / 0.5425 GB, free: 30.08 MB / 378.7 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.001595/0.88, allocations: 0.7673 MB / 0.5433 GB, free: 29.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.8801, allocations: 9.719 kB / 0.5433 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.8802, allocations: 74.5 kB / 0.5433 GB, free: 29.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.8804, allocations: 54.69 kB / 0.5434 GB, free: 29.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003463/0.8838, allocations: 1.26 MB / 0.5446 GB, free: 29.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.8839, allocations: 27.69 kB / 0.5446 GB, free: 29.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.884, allocations: 56.05 kB / 0.5447 GB, free: 29.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.8852, allocations: 0.7775 MB / 0.5455 GB, free: 29.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.8853, allocations: 3.938 kB / 0.5455 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.8853, allocations: 11.53 kB / 0.5455 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.8853, allocations: 19.7 kB / 0.5455 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005982/0.8859, allocations: 440.2 kB / 0.5459 GB, free: 29.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003609/0.8896, allocations: 2.751 MB / 0.5486 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008719/0.8905, allocations: 478.6 kB / 0.5491 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007802/0.8912, allocations: 443.5 kB / 0.5495 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.8913, allocations: 4.25 kB / 0.5495 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.8913, allocations: 51.31 kB / 0.5495 GB, free: 27.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.166e-06/0.8914, allocations: 0 / 0.5495 GB, free: 27.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006677/0.898, allocations: 3.092 MB / 0.5526 GB, free: 27.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.8981, allocations: 85.03 kB / 0.5526 GB, free: 27.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/0.8986, allocations: 331.9 kB / 0.5529 GB, free: 27.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.508e-05/0.8986, allocations: 33.52 kB / 0.553 GB, free: 27.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.8988, allocations: 249.4 kB / 0.5532 GB, free: 27.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.899, allocations: 162.7 kB / 0.5534 GB, free: 27.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.899, allocations: 11.66 kB / 0.5534 GB, free: 27.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.8991, allocations: 354.3 kB / 0.5537 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/0.8996, allocations: 436.6 kB / 0.5541 GB, free: 26.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005727/0.9002, allocations: 0.5385 MB / 0.5547 GB, free: 26.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.9008, allocations: 481.9 kB / 0.5551 GB, free: 26.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.9008, allocations: 0 / 0.5551 GB, free: 26.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.005525/0.9063, allocations: 2.488 MB / 0.5576 GB, free: 26.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.9064, allocations: 7.828 kB / 0.5576 GB, free: 26.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.9064, allocations: 3.906 kB / 0.5576 GB, free: 26.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006477/0.9129, allocations: 2.078 MB / 0.5596 GB, free: 26.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004358/0.9134, allocations: 89.22 kB / 0.5597 GB, free: 26.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009819/0.9232, allocations: 8.898 MB / 0.5684 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/0.9239, allocations: 36.58 kB / 0.5684 GB, free: 23.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.9241, allocations: 68.53 kB / 0.5685 GB, free: 23.71 MB / 378.7 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 () * 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003094/0.9244, allocations: 135.2 kB / 0.5686 GB, free: 23.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.9247, allocations: 50.45 kB / 0.5686 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/0.9303, allocations: 2.199 MB / 0.5708 GB, free: 23.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.9304, allocations: 7.906 kB / 0.5708 GB, free: 23.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.9304, allocations: 7.969 kB / 0.5708 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.9304, allocations: 3.047 kB / 0.5708 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006914/0.9373, allocations: 2.99 MB / 0.5737 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.9374, allocations: 0 / 0.5737 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.9377, allocations: 45.84 kB / 0.5738 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009065/0.9468, allocations: 3.242 MB / 0.5769 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002355/0.947, allocations: 107.8 kB / 0.577 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00991/0.957, allocations: 8.927 MB / 0.5858 GB, free: 18.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.957, allocations: 3.953 kB / 0.5858 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005932/0.963, allocations: 2.63 MB / 0.5883 GB, free: 17.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.9633, allocations: 119.7 kB / 0.5884 GB, free: 17.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.9635, allocations: 80.27 kB / 0.5885 GB, free: 17.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003769/0.9639, allocations: 31.02 kB / 0.5886 GB, free: 17.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.9642, allocations: 71.08 kB / 0.5886 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.9643, allocations: 74.33 kB / 0.5887 GB, free: 17.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003654/0.9647, allocations: 252 kB / 0.5889 GB, free: 17.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9647, allocations: 0 / 0.5889 GB, free: 17.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001248/0.9659, allocations: 233.6 kB / 0.5892 GB, free: 17.58 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005703/0.9717, allocations: 3.222 MB / 0.5923 GB, free: 16.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.9744, allocations: 1.342 MB / 0.5936 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.9744, allocations: 0 / 0.5936 GB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.9762, allocations: 0.9079 MB / 0.5945 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008991/0.9771, allocations: 113.5 kB / 0.5946 GB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.9808, allocations: 2.186 MB / 0.5967 GB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.9814, allocations: 0.8996 MB / 0.5976 GB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000345/0.9817, allocations: 70.69 kB / 0.5977 GB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/0.982, allocations: 153.6 kB / 0.5978 GB, free: 13.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.412e-06/0.982, allocations: 0 / 0.5978 GB, free: 13.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04778/1.03, allocations: 21.61 MB / 0.6189 GB, free: 8.906 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/1.03, allocations: 180.9 kB / 0.6191 GB, free: 8.676 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.573/3.603, allocations: 0 / 0.6191 GB, free: 8.676 MB / 394.7 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)