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.001116/0.001116, allocations: 178.5 kB / 16.38 MB, free: 5.766 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.471/1.471, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001669/0.001669, allocations: 108.8 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1765/0.1765, allocations: 38 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004002, allocations: 8 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 53.24 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4514, allocations: 93.58 MB / 0.5378 GB, free: 1.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.4516, allocations: 95.44 kB / 0.5379 GB, free: 1.562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02944/0.4811, allocations: 11.07 MB / 0.5487 GB, free: 7.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4811, allocations: 0 / 0.5487 GB, free: 7.941 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.762e-05/0.4811, allocations: 12 kB / 0.5487 GB, free: 7.93 MB / 362.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.001934/0.4831, allocations: 0.8851 MB / 0.5496 GB, free: 7.035 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4831, allocations: 12.02 kB / 0.5496 GB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.4833, allocations: 71.91 kB / 0.5496 GB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.4835, allocations: 55.34 kB / 0.5497 GB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003233/0.4867, allocations: 1.271 MB / 0.5509 GB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.197e-05/0.4868, allocations: 31.72 kB / 0.551 GB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.4869, allocations: 46.27 kB / 0.551 GB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.488, allocations: 0.7882 MB / 0.5518 GB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.488, allocations: 0 / 0.5518 GB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-05/0.4881, allocations: 18.88 kB / 0.5518 GB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.4881, allocations: 12 kB / 0.5518 GB, free: 5.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000649/0.4888, allocations: 449.6 kB / 0.5522 GB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003862/0.4926, allocations: 2.763 MB / 0.5549 GB, free: 2.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/0.4933, allocations: 489.7 kB / 0.5554 GB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.4934, allocations: 4.062 kB / 0.5554 GB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.4934, allocations: 38.41 kB / 0.5554 GB, free: 1.965 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 2.195e-06/0.4934, allocations: 0 / 0.5554 GB, free: 1.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00907/0.5025, allocations: 3.791 MB / 0.5591 GB, free: 14.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.5026, allocations: 85.61 kB / 0.5592 GB, free: 14.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004443/0.503, allocations: 339.1 kB / 0.5596 GB, free: 14.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.319e-05/0.5031, allocations: 36.33 kB / 0.5596 GB, free: 14.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.5033, allocations: 251.5 kB / 0.5598 GB, free: 14.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5035, allocations: 159.4 kB / 0.56 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.611e-05/0.5035, allocations: 6.25 kB / 0.56 GB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5037, allocations: 360 kB / 0.5603 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005307/0.5042, allocations: 436.4 kB / 0.5607 GB, free: 13.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.5048, allocations: 0.5441 MB / 0.5613 GB, free: 12.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.5054, allocations: 494.7 kB / 0.5617 GB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.5054, allocations: 4 kB / 0.5618 GB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.005528/0.511, allocations: 2.479 MB / 0.5642 GB, free: 10.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.511, allocations: 12.23 kB / 0.5642 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.511, allocations: 15.89 kB / 0.5642 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006524/0.5176, allocations: 2.076 MB / 0.5662 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.518, allocations: 91.77 kB / 0.5663 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.5286, allocations: 9.438 MB / 0.5755 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004912/0.5292, allocations: 38.25 kB / 0.5756 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.5293, allocations: 70.66 kB / 0.5756 GB, free: 124 kB / 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 () * 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): 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.0004288/0.5298, allocations: 197.6 kB / 0.5758 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.5299, allocations: 47.42 kB / 0.5759 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005455/0.5354, allocations: 2.207 MB / 0.578 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.5354, allocations: 4 kB / 0.578 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.5354, allocations: 4 kB / 0.578 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.5354, allocations: 3.984 kB / 0.578 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006584/0.542, allocations: 3.001 MB / 0.581 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.542, allocations: 0 / 0.581 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.5423, allocations: 35.98 kB / 0.581 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008998/0.5513, allocations: 3.248 MB / 0.5842 GB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.5515, allocations: 103.2 kB / 0.5843 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.5626, allocations: 9.482 MB / 0.5935 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5626, allocations: 0 / 0.5935 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005867/0.5685, allocations: 2.641 MB / 0.5961 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.5687, allocations: 120.5 kB / 0.5962 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.5689, allocations: 91.94 kB / 0.5963 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003516/0.5693, allocations: 24.47 kB / 0.5963 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.5696, allocations: 71.89 kB / 0.5964 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.5697, allocations: 67.95 kB / 0.5965 GB, free: 12.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003383/0.57, allocations: 259.2 kB / 0.5967 GB, free: 12.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.57, allocations: 0 / 0.5967 GB, free: 12.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009875/0.571, allocations: 228.1 kB / 0.5969 GB, free: 11.88 MB / 410.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 () * Number of clocked 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.005959/0.577, allocations: 3.221 MB / 0.6001 GB, free: 8.617 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.5795, allocations: 1.374 MB / 0.6014 GB, free: 7.211 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5795, allocations: 4.125 kB / 0.6014 GB, free: 7.207 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.5812, allocations: 0.9126 MB / 0.6023 GB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006106/0.5818, allocations: 113.4 kB / 0.6024 GB, free: 6.148 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.5937, allocations: 9.039 MB / 0.6113 GB, free: 12.99 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.5942, allocations: 0.9015 MB / 0.6121 GB, free: 12.06 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002699/0.5945, allocations: 72.34 kB / 0.6122 GB, free: 11.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.5947, allocations: 155.4 kB / 0.6123 GB, free: 11.83 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5947, allocations: 0 / 0.6123 GB, free: 11.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1143/0.709, allocations: 21.7 MB / 0.6335 GB, free: 6.117 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.7093, allocations: 198.3 kB / 0.6337 GB, free: 5.879 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.153, allocations: 11.88 kB / 0.6337 GB, free: 5.867 MB / 442.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)