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.001438/0.001438, allocations: 180.7 kB / 8.011 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.341/2.341, allocations: 205.3 MB / 213.7 MB, free: 1.723 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.001082/0.001081, allocations: 78.39 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2639/0.2639, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.028e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5072/0.6187, allocations: 99.46 MB / 0.5525 GB, free: 9.375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.6191, allocations: 77.28 kB / 0.5525 GB, free: 9.367 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04985/0.669, allocations: 12.12 MB / 0.5644 GB, free: 1.328 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6691, allocations: 0 / 0.5644 GB, free: 1.328 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.132e-05/0.6691, allocations: 19.94 kB / 0.5644 GB, free: 1.309 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001229/0.6703, allocations: 0.6303 MB / 0.565 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.6704, allocations: 12.03 kB / 0.565 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007271/0.6711, allocations: 83.38 kB / 0.5651 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.6742, allocations: 0.834 MB / 0.5659 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.6742, allocations: 16.75 kB / 0.5659 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.6743, allocations: 31.5 kB / 0.566 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009804/0.6753, allocations: 362.6 kB / 0.5663 GB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.6765, allocations: 0.5397 MB / 0.5668 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.6765, allocations: 4 kB / 0.5668 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.129e-05/0.6766, allocations: 0 / 0.5668 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-05/0.6767, allocations: 32.05 kB / 0.5669 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.6814, allocations: 2.788 MB / 0.5696 GB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.6819, allocations: 212.5 kB / 0.5698 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.6822, allocations: 135 kB / 0.5699 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.6823, allocations: 15.67 kB / 0.5699 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.6823, allocations: 34.5 kB / 0.57 GB, free: 12.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.796e-06/0.6823, allocations: 0 / 0.57 GB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.002072/0.6844, allocations: 0.8327 MB / 0.5708 GB, free: 11.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.6845, allocations: 81.11 kB / 0.5709 GB, free: 11.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.685, allocations: 265.8 kB / 0.5711 GB, free: 11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.685, allocations: 25.7 kB / 0.5711 GB, free: 10.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003248/0.6853, allocations: 326.7 kB / 0.5714 GB, free: 10.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.6855, allocations: 104.3 kB / 0.5715 GB, free: 10.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.292e-05/0.6855, allocations: 0 / 0.5715 GB, free: 10.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6857, allocations: 349.7 kB / 0.5719 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.686, allocations: 130.5 kB / 0.572 GB, free: 10.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004776/0.6865, allocations: 324.5 kB / 0.5723 GB, free: 9.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000524/0.6871, allocations: 210.3 kB / 0.5725 GB, free: 9.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.6871, allocations: 0 / 0.5725 GB, free: 9.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001178/0.6883, allocations: 470.7 kB / 0.573 GB, free: 9.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.6883, allocations: 8 kB / 0.573 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.6883, allocations: 8 kB / 0.573 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.028e-05/0.6884, allocations: 8 kB / 0.573 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007719/0.6892, allocations: 118.6 kB / 0.5731 GB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.6892, allocations: 11.98 kB / 0.5731 GB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.6896, allocations: 19.98 kB / 0.5731 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.6897, allocations: 18.94 kB / 0.5731 GB, free: 9.09 MB / 378.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 () * 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.000153/0.6899, allocations: 128.9 kB / 0.5733 GB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007707/0.6906, allocations: 296.4 kB / 0.5735 GB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/0.6907, allocations: 35.06 kB / 0.5736 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009098/0.6917, allocations: 342.3 kB / 0.5739 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.6917, allocations: 4 kB / 0.5739 GB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6917, allocations: 0 / 0.5739 GB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.6917, allocations: 4 kB / 0.5739 GB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.6938, allocations: 0.8005 MB / 0.5747 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.6938, allocations: 0 / 0.5747 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006214/0.6945, allocations: 67.14 kB / 0.5748 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.6945, allocations: 7.984 kB / 0.5748 GB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.6945, allocations: 4 kB / 0.5748 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.6946, allocations: 4 kB / 0.5748 GB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.6946, allocations: 7.891 kB / 0.5748 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.6958, allocations: 0.625 MB / 0.5754 GB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.696, allocations: 100.7 kB / 0.5755 GB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.6961, allocations: 6.875 kB / 0.5755 GB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.6964, allocations: 16.02 kB / 0.5755 GB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.6965, allocations: 11.98 kB / 0.5755 GB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.6965, allocations: 11.25 kB / 0.5755 GB, free: 6.922 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002952/0.6968, allocations: 195.7 kB / 0.5757 GB, free: 6.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6968, allocations: 0 / 0.5757 GB, free: 6.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007449/0.6976, allocations: 99.95 kB / 0.5758 GB, free: 6.672 MB / 378.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 () * 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.001775/0.6994, allocations: 1.45 MB / 0.5772 GB, free: 5.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008487/0.7003, allocations: 336.1 kB / 0.5776 GB, free: 5.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.7003, allocations: 0.625 kB / 0.5776 GB, free: 5.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003114/0.7006, allocations: 147.1 kB / 0.5777 GB, free: 4.949 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.7012, allocations: 59.64 kB / 0.5777 GB, free: 4.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.7038, allocations: 0.9331 MB / 0.5787 GB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006351/0.7045, allocations: 0.8667 MB / 0.5795 GB, free: 3.129 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.7048, allocations: 139.3 kB / 0.5796 GB, free: 3.086 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.7048, allocations: 0 / 0.5796 GB, free: 3.086 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.475, allocations: 6.82 MB / 0.5863 GB, free: 12.33 MB / 394.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)