Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002175/0.002175, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.313/2.313, allocations: 205.3 MB / 213.7 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001673/0.001672, allocations: 78.73 kB / 261.8 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2889/0.2889, allocations: 38 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.171e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4927/0.6006, allocations: 97.85 MB / 0.5509 GB, free: 9.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.6009, allocations: 87.86 kB / 0.551 GB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04948/0.6504, allocations: 11.01 MB / 0.5617 GB, free: 3.477 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.6505, allocations: 0 / 0.5617 GB, free: 3.477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.304e-05/0.6505, allocations: 11.94 kB / 0.5617 GB, free: 3.465 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.002433/0.653, allocations: 0.7827 MB / 0.5625 GB, free: 2.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.6531, allocations: 16.03 kB / 0.5625 GB, free: 2.652 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.6534, allocations: 51.44 kB / 0.5626 GB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005331/0.6587, allocations: 1.249 MB / 0.5638 GB, free: 1.539 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.6588, allocations: 16 kB / 0.5638 GB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.6591, allocations: 35.91 kB / 0.5638 GB, free: 1.488 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009598/0.66, allocations: 408.3 kB / 0.5642 GB, free: 1.207 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.6615, allocations: 0.7324 MB / 0.5649 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.6615, allocations: 0.75 kB / 0.5649 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.601e-05/0.6616, allocations: 11.94 kB / 0.565 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.6616, allocations: 8 kB / 0.565 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006865/0.6685, allocations: 2.637 MB / 0.5675 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.6697, allocations: 460 kB / 0.568 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.671, allocations: 426.8 kB / 0.5684 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.591e-05/0.6711, allocations: 7.984 kB / 0.5684 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.6711, allocations: 41.06 kB / 0.5684 GB, free: 13.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.427e-06/0.6712, allocations: 3.938 kB / 0.5684 GB, free: 13.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.01297/0.6841, allocations: 3.031 MB / 0.5714 GB, free: 10.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.6843, allocations: 88.77 kB / 0.5715 GB, free: 10.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/0.6848, allocations: 292.9 kB / 0.5718 GB, free: 10.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.685, allocations: 29.7 kB / 0.5718 GB, free: 10.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.6852, allocations: 292.4 kB / 0.5721 GB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.6855, allocations: 150.8 kB / 0.5722 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.6856, allocations: 4 kB / 0.5722 GB, free: 10.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.6858, allocations: 329.3 kB / 0.5725 GB, free: 9.891 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009065/0.6867, allocations: 410 kB / 0.5729 GB, free: 9.605 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.6877, allocations: 0.511 MB / 0.5734 GB, free: 9.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.6889, allocations: 467.7 kB / 0.5739 GB, free: 8.848 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.6889, allocations: 0 / 0.5739 GB, free: 8.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.006757/0.6957, allocations: 2.055 MB / 0.5759 GB, free: 7.176 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.6958, allocations: 8 kB / 0.5759 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.939e-05/0.6958, allocations: 7.984 kB / 0.5759 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/0.7069, allocations: 2.69 MB / 0.5785 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006839/0.7077, allocations: 87.39 kB / 0.5786 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.7077, allocations: 7.938 kB / 0.5786 GB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000635/0.7083, allocations: 27.88 kB / 0.5786 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/0.7085, allocations: 75.3 kB / 0.5787 GB, free: 4.688 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): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.7088, allocations: 113 kB / 0.5788 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01035/0.7192, allocations: 2.099 MB / 0.5809 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.7195, allocations: 47.47 kB / 0.5809 GB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/0.73, allocations: 2.17 MB / 0.583 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.7301, allocations: 4 kB / 0.583 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.7301, allocations: 3.984 kB / 0.583 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.7301, allocations: 4 kB / 0.583 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/0.7427, allocations: 2.913 MB / 0.5859 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.7428, allocations: 32 / 0.5859 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/0.7432, allocations: 43.67 kB / 0.5859 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01796/0.7612, allocations: 3.209 MB / 0.5891 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003237/0.7616, allocations: 98.34 kB / 0.5892 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/0.7799, allocations: 8.732 MB / 0.5977 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.78, allocations: 0 / 0.5977 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/0.7914, allocations: 2.586 MB / 0.6002 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.7917, allocations: 116.6 kB / 0.6003 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003876/0.7921, allocations: 86.44 kB / 0.6004 GB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006148/0.7927, allocations: 16.28 kB / 0.6004 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.7931, allocations: 75.08 kB / 0.6005 GB, free: 1.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.7932, allocations: 67.52 kB / 0.6005 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004056/0.7937, allocations: 227.6 kB / 0.6008 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.62e-07/0.7937, allocations: 7.938 kB / 0.6008 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00118/0.7949, allocations: 172 kB / 0.6009 GB, free: 0.6367 MB / 394.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.01129/0.8062, allocations: 3.187 MB / 0.604 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002802/0.8091, allocations: 1.058 MB / 0.6051 GB, free: 12.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.8091, allocations: 0 / 0.6051 GB, free: 12.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003091/0.8122, allocations: 0.8957 MB / 0.606 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.8133, allocations: 108.5 kB / 0.6061 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005992/0.8193, allocations: 2.181 MB / 0.6082 GB, free: 9.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.8201, allocations: 0.8898 MB / 0.6091 GB, free: 9.016 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003868/0.8206, allocations: 159.4 kB / 0.6092 GB, free: 8.859 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8206, allocations: 0 / 0.6092 GB, free: 8.859 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.66/4.481, allocations: 18.38 MB / 0.6272 GB, free: 6.465 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)