Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",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.002184/0.002183, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001842/0.001842, allocations: 94.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2666/0.2666, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004824/0.0004826, allocations: 12 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 56.33 MB / 479.1 MB, free: 1.961 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.6027, allocations: 100.2 MB / 0.5658 GB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.603, allocations: 85.95 kB / 0.5658 GB, free: 15.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05641/0.6594, allocations: 12.23 MB / 0.5778 GB, free: 5.105 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6595, allocations: 0 / 0.5778 GB, free: 5.105 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.67e-05/0.6596, allocations: 15.94 kB / 0.5778 GB, free: 5.09 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001814/0.6614, allocations: 0.6906 MB / 0.5785 GB, free: 4.379 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.6614, allocations: 8.031 kB / 0.5785 GB, free: 4.371 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.6616, allocations: 86.52 kB / 0.5786 GB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008199/0.6625, allocations: 83.38 kB / 0.5786 GB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003553/0.666, allocations: 0.8446 MB / 0.5795 GB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.6661, allocations: 30.12 kB / 0.5795 GB, free: 3.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.6663, allocations: 36.88 kB / 0.5795 GB, free: 3.422 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.6677, allocations: 0.6035 MB / 0.5801 GB, free: 2.898 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.6677, allocations: 7.938 kB / 0.5801 GB, free: 2.891 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.534e-05/0.6678, allocations: 20.55 kB / 0.5802 GB, free: 2.883 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.047e-05/0.6679, allocations: 28.97 kB / 0.5802 GB, free: 2.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.669, allocations: 453.2 kB / 0.5806 GB, free: 2.535 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005415/0.6745, allocations: 2.875 MB / 0.5834 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006284/0.6752, allocations: 231.5 kB / 0.5836 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.075e-05/0.6752, allocations: 4.062 kB / 0.5836 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.6753, allocations: 41.72 kB / 0.5837 GB, free: 15.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 4.228e-06/0.6753, allocations: 0 / 0.5837 GB, free: 15.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=30): time 0.002638/0.6779, allocations: 1.041 MB / 0.5847 GB, free: 14.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.6781, allocations: 85.14 kB / 0.5848 GB, free: 14.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004863/0.6786, allocations: 283.9 kB / 0.5851 GB, free: 14.31 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.6786, allocations: 33.27 kB / 0.5851 GB, free: 14.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.6789, allocations: 334.4 kB / 0.5854 GB, free: 13.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.679, allocations: 107.2 kB / 0.5855 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.6791, allocations: 7.062 kB / 0.5855 GB, free: 13.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6792, allocations: 343.8 kB / 0.5858 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.6796, allocations: 143.8 kB / 0.586 GB, free: 13.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005559/0.6802, allocations: 343.4 kB / 0.5863 GB, free: 13.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.6808, allocations: 213.7 kB / 0.5865 GB, free: 12.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.6808, allocations: 4 kB / 0.5865 GB, free: 12.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001322/0.6821, allocations: 0.51 MB / 0.587 GB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.6822, allocations: 12.03 kB / 0.587 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.6822, allocations: 4 kB / 0.587 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.178e-05/0.6823, allocations: 12 kB / 0.587 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008314/0.6831, allocations: 111.2 kB / 0.5871 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.6831, allocations: 15.94 kB / 0.5872 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/0.6836, allocations: 26.48 kB / 0.5872 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.6837, allocations: 27.17 kB / 0.5872 GB, free: 12.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004116/0.6841, allocations: 212.8 kB / 0.5874 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-05/0.6842, allocations: 31.62 kB / 0.5874 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.6852, allocations: 351.3 kB / 0.5878 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/0.6853, allocations: 8 kB / 0.5878 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.6853, allocations: 7.922 kB / 0.5878 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.6853, allocations: 4 kB / 0.5878 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.6877, allocations: 0.8732 MB / 0.5887 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.6877, allocations: 4 kB / 0.5887 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006295/0.6884, allocations: 67.52 kB / 0.5887 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/0.6884, allocations: 3.938 kB / 0.5887 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.6884, allocations: 7.188 kB / 0.5887 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.01e-05/0.6885, allocations: 4 kB / 0.5887 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.6885, allocations: 3.953 kB / 0.5887 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.6898, allocations: 0.655 MB / 0.5894 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.69, allocations: 100.7 kB / 0.5895 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.6901, allocations: 11.75 kB / 0.5895 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.6904, allocations: 19.95 kB / 0.5895 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.6905, allocations: 15.8 kB / 0.5895 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.6906, allocations: 8 kB / 0.5895 GB, free: 10.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004157/0.691, allocations: 220.2 kB / 0.5897 GB, free: 10.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.691, allocations: 0 / 0.5897 GB, free: 10.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007051/0.6917, allocations: 107.1 kB / 0.5898 GB, free: 10.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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): 27 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/0.6936, allocations: 1.478 MB / 0.5913 GB, free: 8.629 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.6947, allocations: 372.1 kB / 0.5916 GB, free: 8.352 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6947, allocations: 0.5625 kB / 0.5916 GB, free: 8.352 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.6951, allocations: 151.9 kB / 0.5918 GB, free: 8.242 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006056/0.6957, allocations: 57.64 kB / 0.5918 GB, free: 8.203 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008208/0.704, allocations: 7.083 MB / 0.5988 GB, free: 1.301 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006751/0.7047, allocations: 0.867 MB / 0.5996 GB, free: 432 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.7051, allocations: 140.1 kB / 0.5997 GB, free: 388 kB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7051, allocations: 0 / 0.5997 GB, free: 388 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.661/3.366, allocations: 6.893 MB / 0.6065 GB, free: 9.543 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)